43 lines
933 B
YAML
43 lines
933 B
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
|
||
|
|
||
|
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"
|