50 lines
No EOL
1 KiB
YAML
50 lines
No EOL
1 KiB
YAML
openapi: 3.0.0
|
|
info:
|
|
title: Project Management API
|
|
description: An API for Managing Internal tools
|
|
version: 1.0.0
|
|
servers:
|
|
- url: /api/v1
|
|
security:
|
|
- JWTAuth: []
|
|
|
|
components:
|
|
securitySchemes:
|
|
JWTAuth:
|
|
type: http
|
|
scheme: bearer
|
|
bearerFormat: JWT
|
|
schemas:
|
|
HelloOut:
|
|
description: "A Test Schema"
|
|
type: object
|
|
properties:
|
|
msg:
|
|
type: string
|
|
responses:
|
|
OK:
|
|
description: "OK"
|
|
content:
|
|
text/plain:
|
|
schema:
|
|
type: string
|
|
InternalError:
|
|
description: "Internal Server Error"
|
|
content:
|
|
text/plain:
|
|
schema:
|
|
type: string
|
|
paths:
|
|
/hello:
|
|
get:
|
|
operationId: "GetHello"
|
|
description: "A Simple Hello World Endpoint"
|
|
responses:
|
|
200:
|
|
description: "A Hello Response"
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: "#/components/schemas/HelloOut"
|
|
500:
|
|
$ref: "#/components/responses/InternalError" |