type Request {
Name string `path:"name"`
}
type Response {
Message string `json:"message"`
}
service greet-api {
@handler NoResponseHandler
get /greet/to/:name
@handler RemoveHandler
delete /greet/remove/:name(Request)
@handler NoRequestHandler
put /greet/talk returns (Response)
@handler NormalHandler
post /greet/from/:name(Request) returns (Response)
}
1
DoctorCat 2020-11-22 20:19:35 +08:00
看着觉得累,不知为何。 话说怎么跟 swagger 结合呢
|