ProjectManagmentTool/api/pmt.yml

50 lines
1 KiB
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
2024-09-27 10:17:17 +00:00
security:
- JWTAuth: []
2024-09-12 22:01:00 +00:00
components:
2024-09-27 10:17:17 +00:00
securitySchemes:
JWTAuth:
type: http
scheme: bearer
bearerFormat: JWT
schemas:
ProjectInfo:
2024-09-12 22:01:00 +00:00
type: object
properties:
id:
type: integer
format: int64
name:
2024-09-12 22:01:00 +00:00
type: string
GetAllProjectsDTO:
type: array
items:
$ref: "#/components/schemas/ProjectInfo"
2024-09-12 22:01:00 +00:00
responses:
InternalError:
description: "Internal Server Error"
content:
text/plain:
schema:
type: string
paths:
/project:
2024-09-12 22:01:00 +00:00
get:
operationId: "getAllProjects"
description: "Get a List of all Projects"
2024-09-12 22:01:00 +00:00
responses:
200:
description: ""
2024-09-12 22:01:00 +00:00
content:
application/json:
schema:
$ref: "#/components/schemas/GetAllProjectsDTO"
2024-09-12 22:01:00 +00:00
500:
$ref: "#/components/responses/InternalError"