ProjectManagmentTool/api/pmt.yml
Ole Kück 524bd99fd5
All checks were successful
Quality Check / Validate OAS (push) Successful in 44s
Quality Check / Validate OAS (pull_request) Successful in 57s
Quality Check / Linting (push) Successful in 1m43s
Quality Check / Linting (pull_request) Successful in 1m48s
Quality Check / Testing (pull_request) Successful in 1m46s
Quality Check / Static Analysis (push) Successful in 1m59s
Quality Check / Static Analysis (pull_request) Successful in 1m52s
Quality Check / Testing (push) Successful in 34s
PMT-32: Added Description to Valid Get All Projects Response
2024-10-02 10:02:10 +02:00

54 lines
No EOL
1.2 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:
ProjectInfo:
type: object
properties:
id:
type: integer
format: int64
name:
type: string
GetAllProjectsDTO:
type: array
items:
$ref: "#/components/schemas/ProjectInfo"
responses:
UnAuthorized:
description: "Un Authorized"
InternalError:
description: "Internal Server Error"
content:
text/plain:
schema:
type: string
paths:
/project:
get:
operationId: "getAllProjects"
description: "Get a List of all Projects"
responses:
200:
description: "Returns a List of all Projects"
content:
application/json:
schema:
$ref: "#/components/schemas/GetAllProjectsDTO"
401:
$ref: "#/components/responses/UnAuthorized"
500:
$ref: "#/components/responses/InternalError"