This commit is contained in:
2021-06-17 11:52:13 +02:00
commit 215eb69395
11 changed files with 214 additions and 0 deletions

29
openapi.yaml Normal file
View File

@ -0,0 +1,29 @@
openapi: 3.0.0
info:
title: hv2-api
version: "0.1"
paths:
/test:
get:
tags: [ "Test" ]
summary: Return secret string
operationId: auth.testToken
responses:
'200':
description: secret response
content:
'text/plain':
schema:
type: string
security:
- jwt: ['secret']
components:
securitySchemes:
jwt:
type: http
scheme: bearer
bearerFormat: JWT
x-bearerInfoFunc: auth.decodeToken