add first get method

This commit is contained in:
Wolfgang Hottgenroth 2021-07-01 19:37:24 +02:00
parent b500b81d80
commit 1bddff4a23
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F

View File

@ -26,7 +26,22 @@ paths:
$ref: '#/components/schemas/TestOutput' $ref: '#/components/schemas/TestOutput'
security: security:
- jwt: ['secret'] - jwt: ['secret']
/v1/accounts:
get:
tags: [ "Account" ]
summary: Return all normalized accounts
operationId: account.getAccounts
responses:
'200':
description: accounts response
content:
'application/json':
schema:
type: array
items:
$ref: '#/components/schemas/Account'
security:
- jwt: ['secret']
components: components:
securitySchemes: securitySchemes:
@ -44,3 +59,11 @@ components:
type: string type: string
details: details:
type: string type: string
Account:
description: Account
type: object
properties:
id:
type: integer
description:
type: string