db refactoring, one and many

This commit is contained in:
2021-07-02 14:52:07 +02:00
parent 32a66dc189
commit daca7eca9b
3 changed files with 82 additions and 18 deletions

View File

@ -42,6 +42,28 @@ paths:
$ref: '#/components/schemas/Account'
security:
- jwt: ['secret']
/v1/accounts/{accountId}:
get:
tags: [ "Account" ]
summary: Return the normalized account with given id
operationId: account.getAccount
parameters:
- name: accountId
in: path
required: true
schema:
type: integer
responses:
'200':
description: accounts response
content:
'application/json':
schema:
type: array
items:
$ref: '#/components/schemas/Account'
security:
- jwt: ['secret']
components:
securitySchemes: