chore: Embed unit test data (#1812)
* Embed unit test data * Add testdata Co-authored-by: anqiansong <anqiansong@bytedance.com>
This commit is contained in:
16
tools/goctl/api/gogen/testdata/api_route_test.api
vendored
Normal file
16
tools/goctl/api/gogen/testdata/api_route_test.api
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
type Request struct {
|
||||
Name string `path:"name,options=you|me"`
|
||||
}
|
||||
type Response struct {
|
||||
Message string `json:"message"`
|
||||
}
|
||||
service A-api {
|
||||
@handler NormalHandler
|
||||
get /greet/from/:name(Request) returns (Response)
|
||||
@handler NoResponseHandler
|
||||
get /greet/from/:sex(Request)
|
||||
@handler NoRequestHandler
|
||||
get /greet/from/request returns (Response)
|
||||
@handler NoRequestNoResponseHandler
|
||||
get /greet/from
|
||||
}
|
||||
Reference in New Issue
Block a user