You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
386 B
Plaintext
18 lines
386 B
Plaintext
// syntax doc
|
|
syntax = "v1" // syntax comment
|
|
|
|
// type doc
|
|
type Request {
|
|
Name string `path:"name,options=you|me"`
|
|
}
|
|
|
|
type Response {
|
|
Message string `json:"message"`
|
|
}
|
|
|
|
// service doc
|
|
service greet-api {
|
|
// handler doc
|
|
@handler GreetHandler // handler comment
|
|
get /from/:name(Request) returns (Response);
|
|
} |