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.
17 lines
309 B
Plaintext
17 lines
309 B
Plaintext
3 years ago
|
type Request struct {
|
||
|
Name string `path:"name,options=you|me"`
|
||
|
}
|
||
|
|
||
|
type Response struct {
|
||
|
Message string `json:"message"`
|
||
|
}
|
||
|
|
||
|
@server(
|
||
|
jwt: Auth
|
||
|
jwtTransition: Trans
|
||
|
middleware: TokenValidate
|
||
|
)
|
||
|
service A-api {
|
||
|
@handler GreetHandler
|
||
|
get /greet/from/:name(Request) returns (Response)
|
||
|
}
|