26 lines
529 B
Plaintext
26 lines
529 B
Plaintext
syntax = "v1"
|
|
|
|
info (
|
|
title: // TODO: add title
|
|
desc: // TODO: add description
|
|
author: ""
|
|
email: ""
|
|
)
|
|
|
|
type request {
|
|
// TODO: add members here and delete this comment
|
|
Name string `path:"name,options=you|me"` // parameters are auto validated
|
|
}
|
|
|
|
type response {
|
|
// TODO: add members here and delete this comment
|
|
Message string `json:"message"`
|
|
}
|
|
|
|
service user-auth {
|
|
@handler GreetHandler
|
|
get /greet/from/:name(request) returns (response);
|
|
|
|
@handler GreetHandler2
|
|
get /greet/from2/:name(request) returns (response);
|
|
} |