23 lines
450 B
Plaintext
23 lines
450 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);
|
||
|
}
|