30 lines
526 B
YAML
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
|