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.
20 lines
335 B
Plaintext
20 lines
335 B
Plaintext
type Inline struct {
|
|
|
|
}
|
|
|
|
type Request struct {
|
|
Inline
|
|
Name string `path:"name,options=you|me"` // name in path
|
|
}
|
|
|
|
type Response struct {
|
|
Message string `json:"msg"` // message
|
|
}
|
|
|
|
service A-api {
|
|
@doc ("helloworld")
|
|
@server(
|
|
handler: GreetHandler
|
|
)
|
|
get /greet/from/:name(Request) returns (Response)
|
|
} |