ProjectManagmentTool/src/main/resources/api.yml

43 lines
933 B
YAML
Raw Normal View History

2024-09-12 22:01:00 +00:00
openapi: 3.0.0
info:
title: Project Management API
description: An API for Managing Internal tools
version: 1.0.0
servers:
- url: /api/v1
components:
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"