go-zero/tools/goctl/api/parser/testdata/test.api

23 lines
470 B
Plaintext
Raw Normal View History

// 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
2023-03-28 23:45:26 +08:00
@server(
group: test
middleware: m1,m2
prefix: v1
)
service greet-api {
// handler doc
@handler GreetHandler // handler comment
get /from/:name(Request) returns (Response);
}