docs: add OpenAPI documentation
This commit is contained in:
23
openapi/paths/account-register.yaml
Normal file
23
openapi/paths/account-register.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
post:
|
||||
tags:
|
||||
- Account
|
||||
summary: "Register an account"
|
||||
operationId: "RegisterAccount"
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "../schemas/Account.yaml"
|
||||
examples:
|
||||
accountIn:
|
||||
$ref: "../examples/AccountIn.yaml"
|
||||
required: true
|
||||
responses:
|
||||
"200":
|
||||
description: "OK"
|
||||
"400":
|
||||
description: "Bad Request"
|
||||
content:
|
||||
"application/json":
|
||||
schema:
|
||||
$ref: "../schemas/ProblemDetail.yaml"
|
||||
Reference in New Issue
Block a user