1234567891011121314151617181920212223242526272829 |
- type (
- addReq {
- book string `form:"book"`
- price int64 `form:"price"`
- }
-
- addResp {
- ok bool `json:"ok"`
- }
- )
- type (
- checkReq {
- book string `form:"book"`
- }
-
- checkResp {
- found bool `json:"found"`
- price int64 `json:"price"`
- }
- )
- service bookstore-api {
- @handler AddHandler
- get /add (addReq) returns (addResp)
-
- @handler CheckHandler
- get /check (checkReq) returns (checkResp)
- }
|