hv2-api/openapi.yaml
2021-06-17 11:52:13 +02:00

30 lines
526 B
YAML

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