.yaml changes to add project

controller changes to add project in creation / updates
This commit is contained in:
2025-05-26 14:24:01 +02:00
parent b1013ea1c1
commit de15af4302
6 changed files with 106 additions and 62 deletions
+32 -49
View File
@@ -22,27 +22,6 @@ paths:
format: date
type: string
style: form
- description: Maximum number of items to return
explode: true
in: query
name: limit
required: false
schema:
default: 20
maximum: 100
minimum: 1
type: integer
style: form
- description: Pagination offset
explode: true
in: query
name: offset
required: false
schema:
default: 0
minimum: 0
type: integer
style: form
responses:
"200":
content:
@@ -86,6 +65,24 @@ paths:
tags:
- Patchnotes
x-openapi-router-controller: openapi_server.controllers.patchnotes_controller
/patchnotes/all:
get:
operationId: list_all_patchnotes
responses:
"200":
content:
application/json:
schema:
items:
$ref: '#/components/schemas/patch_notes'
type: array
description: list of all patch notes
"404":
description: no Patch notes found
summary: Returns **all** patch notes (admin area)
tags:
- Patchnotes
x-openapi-router-controller: openapi_server.controllers.patchnotes_controller
/patchnotes/{patchID}:
delete:
operationId: delete_patchnote
@@ -176,29 +173,6 @@ components:
format: date
type: string
style: form
LimitParam:
description: Maximum number of items to return
explode: true
in: query
name: limit
required: false
schema:
default: 20
maximum: 100
minimum: 1
type: integer
style: form
OffsetParam:
description: Pagination offset
explode: true
in: query
name: offset
required: false
schema:
default: 0
minimum: 0
type: integer
style: form
responses:
Error400:
description: Invalid request payload
@@ -212,6 +186,7 @@ components:
changes: Fixed export bug
version: 1.0.0
patch_date: 2025-01-02
project: Test-Projekt
properties:
patchID:
format: uuid
@@ -225,33 +200,41 @@ components:
patch_date:
format: date
type: string
project:
type: string
required:
- changes
- patchID
- patch_date
- project
- title
- version
title: patch_notes
type: object
patch_notes_input:
description: Schema for POST/PUT (server generates patchID & patch_date if omitted)
description: Schema for POST/PUT (server generates patchID if omitted)
example:
title: Patch note 1
changes: Fixed export bug
version: 1.0.0
patch_date: 2025-01-02
project: Test-Projekt
properties:
title:
title: title
type: string
changes:
title: changes
type: string
version:
title: version
type: string
patch_date:
format: date
title: patch_date
type: string
project:
type: string
required:
- changes
- patch_date
- project
- title
- version
title: patch_notes_input