Open podhmo opened 1 year ago
text/html
GET /hello3/{name}
with response header
name | value |
---|---|
operationId | main.HelloHTML3 |
endpoint | GET /hello3/{name} |
input | Input |
output | string |
tags | main |
// GET /hello3/{name}
type Input struct {
name string `in:"path"`
}
html with greeting message
application/json
POST /api/hello
name | value |
---|---|
operationId | main.Hello |
endpoint | POST /api/hello |
input | Input |
output | <Anonymous> |
tags | main |
// POST /api/hello
type Input struct {
JSONBody struct { //
name string
}
}
// POST /api/hello (200)
type Output200 struct { //
message string
}
name | value |
---|---|
operationId | main.HelloHTML3 |
endpoint | GET /hello3/{name} |
input | Input |
output | Output[string] text/html |
tags | main |
// GET /hello3 (200) text/html
type Output200 struct {
TextBody string
X_SOMETHING string `in:"header" header:"X-SOMETHING"`
}
name | value |
---|---|
operationId | main.Hello |
endpoint | POST /api/hello |
input | Input |
output | Output[<Anonymous> ] |
tags | main |
// POST /api/hello (200) application/json
type Output200 struct { //
message string
}