docs: Add missing details to Swagger

This commit is contained in:
Maksim Eltyshev
2025-09-08 23:40:36 +02:00
parent 9a81c83f03
commit dca4b65921
27 changed files with 52 additions and 29 deletions

View File

@@ -33,7 +33,7 @@
* type: string * type: string
* maxLength: 512 * maxLength: 512
* description: URL endpoint for notifications * description: URL endpoint for notifications
* example: https://example.service.com/planka * example: https://service.example.com/planka
* format: * format:
* type: string * type: string
* enum: [text, markdown, html] * enum: [text, markdown, html]

View File

@@ -33,7 +33,7 @@
* type: string * type: string
* maxLength: 512 * maxLength: 512
* description: URL endpoint for notifications * description: URL endpoint for notifications
* example: https://example.service.com/planka * example: https://service.example.com/planka
* format: * format:
* type: string * type: string
* enum: [text, markdown, html] * enum: [text, markdown, html]

View File

@@ -30,7 +30,7 @@
* type: string * type: string
* maxLength: 512 * maxLength: 512
* description: URL endpoint for notifications * description: URL endpoint for notifications
* example: https://example.service.com/planka * example: https://service.example.com/planka
* format: * format:
* type: string * type: string
* enum: [text, markdown, html] * enum: [text, markdown, html]

View File

@@ -31,7 +31,7 @@
* format: url * format: url
* maxLength: 2048 * maxLength: 2048
* description: URL endpoint for the webhook * description: URL endpoint for the webhook
* example: https://example.service.com/planka * example: https://service.example.com/planka
* accessToken: * accessToken:
* type: string * type: string
* maxLength: 512 * maxLength: 512

View File

@@ -36,7 +36,7 @@
* format: url * format: url
* maxLength: 2048 * maxLength: 2048
* description: URL endpoint for the webhook * description: URL endpoint for the webhook
* example: https://example.service.com/planka * example: https://service.example.com/planka
* accessToken: * accessToken:
* type: string * type: string
* maxLength: 512 * maxLength: 512

View File

@@ -17,6 +17,7 @@
* Action: * Action:
* type: object * type: object
* required: * required:
* - id
* - cardId * - cardId
* - type * - type
* - data * - data

View File

@@ -17,6 +17,7 @@
* Attachment: * Attachment:
* type: object * type: object
* required: * required:
* - id
* - cardId * - cardId
* - type * - type
* - data * - data

View File

@@ -17,6 +17,7 @@
* BackgroundImage: * BackgroundImage:
* type: object * type: object
* required: * required:
* - id
* - projectId * - projectId
* - size * - size
* - url * - url

View File

@@ -17,6 +17,7 @@
* BaseCustomFieldGroup: * BaseCustomFieldGroup:
* type: object * type: object
* required: * required:
* - id
* - projectId * - projectId
* - name * - name
* properties: * properties:

View File

@@ -17,6 +17,7 @@
* Board: * Board:
* type: object * type: object
* required: * required:
* - id
* - projectId * - projectId
* - position * - position
* - name * - name

View File

@@ -17,10 +17,11 @@
* BoardMembership: * BoardMembership:
* type: object * type: object
* required: * required:
* - role * - id
* - projectId * - projectId
* - boardId * - boardId
* - userId * - userId
* - role
* properties: * properties:
* id: * id:
* type: string * type: string

View File

@@ -17,6 +17,7 @@
* Card: * Card:
* type: object * type: object
* required: * required:
* - id
* - boardId * - boardId
* - listId * - listId
* - type * - type

View File

@@ -17,6 +17,7 @@
* CardLabel: * CardLabel:
* type: object * type: object
* required: * required:
* - id
* - cardId * - cardId
* - labelId * - labelId
* properties: * properties:

View File

@@ -17,6 +17,7 @@
* CardMembership: * CardMembership:
* type: object * type: object
* required: * required:
* - id
* - cardId * - cardId
* - userId * - userId
* properties: * properties:

View File

@@ -17,6 +17,7 @@
* Comment: * Comment:
* type: object * type: object
* required: * required:
* - id
* - cardId * - cardId
* - text * - text
* properties: * properties:

View File

@@ -17,18 +17,8 @@
* Config: * Config:
* type: object * type: object
* required: * required:
* - id
* - isInitialized
* - version * - version
* properties: * properties:
* id:
* type: string
* description: Unique identifier for the config (always set to '1')
* example: 1
* isInitialized:
* type: boolean
* description: Whether the PLANKA instance has been initialized
* example: true
* version: * version:
* type: string * type: string
* description: Current version of the PLANKA application * description: Current version of the PLANKA application
@@ -38,18 +28,30 @@
* nullable: true * nullable: true
* description: Maximum number of active users allowed (conditionally added for admins if configured) * description: Maximum number of active users allowed (conditionally added for admins if configured)
* example: 100 * example: 100
* createdAt: * oidc:
* type: string * type: object
* format: date-time * required:
* - authorizationUrl
* - endSessionUrl
* - isEnforced
* nullable: true * nullable: true
* description: When the config was created * description: OpenID Connect configuration (null if not configured)
* example: 2024-01-01T00:00:00.000Z * properties:
* updatedAt: * authorizationUrl:
* type: string * type: string
* format: date-time * format: uri
* nullable: true * description: OIDC authorization URL for initiating authentication
* description: When the config was last updated * example: https://oidc.example.com/auth
* example: 2024-01-01T00:00:00.000Z * endSessionUrl:
* type: string
* format: uri
* nullable: true
* description: OIDC end session URL for logout (null if not supported by provider)
* example: https://oidc.example.com/logout
* isEnforced:
* type: boolean
* description: Whether OIDC authentication is enforced (users must use OIDC to login)
* example: false
*/ */
const MAIN_ID = '1'; const MAIN_ID = '1';

View File

@@ -17,6 +17,7 @@
* CustomField: * CustomField:
* type: object * type: object
* required: * required:
* - id
* - position * - position
* - name * - name
* - showOnFrontOfCard * - showOnFrontOfCard

View File

@@ -17,6 +17,7 @@
* CustomFieldGroup: * CustomFieldGroup:
* type: object * type: object
* required: * required:
* - id
* - position * - position
* properties: * properties:
* id: * id:

View File

@@ -17,6 +17,7 @@
* CustomFieldValue: * CustomFieldValue:
* type: object * type: object
* required: * required:
* - id
* - cardId * - cardId
* - customFieldGroupId * - customFieldGroupId
* - customFieldId * - customFieldId

View File

@@ -17,6 +17,7 @@
* Label: * Label:
* type: object * type: object
* required: * required:
* - id
* - boardId * - boardId
* - position * - position
* - color * - color

View File

@@ -17,6 +17,7 @@
* List: * List:
* type: object * type: object
* required: * required:
* - id
* - boardId * - boardId
* - type * - type
* properties: * properties:

View File

@@ -17,6 +17,7 @@
* NotificationService: * NotificationService:
* type: object * type: object
* required: * required:
* - id
* - url * - url
* - format * - format
* properties: * properties:
@@ -37,7 +38,7 @@
* url: * url:
* type: string * type: string
* description: URL endpoint for notifications * description: URL endpoint for notifications
* example: https://example.service.com/planka * example: https://service.example.com/planka
* format: * format:
* type: string * type: string
* enum: [text, markdown, html] * enum: [text, markdown, html]

View File

@@ -17,6 +17,7 @@
* Project: * Project:
* type: object * type: object
* required: * required:
* - id
* - name * - name
* properties: * properties:
* id: * id:

View File

@@ -17,6 +17,7 @@
* ProjectManager: * ProjectManager:
* type: object * type: object
* required: * required:
* - id
* - projectId * - projectId
* - userId * - userId
* properties: * properties:

View File

@@ -17,6 +17,7 @@
* Task: * Task:
* type: object * type: object
* required: * required:
* - id
* - taskListId * - taskListId
* - position * - position
* - name * - name

View File

@@ -17,6 +17,7 @@
* TaskList: * TaskList:
* type: object * type: object
* required: * required:
* - id
* - cardId * - cardId
* - position * - position
* - name * - name

View File

@@ -17,6 +17,7 @@
* Webhook: * Webhook:
* type: object * type: object
* required: * required:
* - id
* - name * - name
* - url * - url
* properties: * properties:
@@ -31,7 +32,7 @@
* url: * url:
* type: string * type: string
* description: URL endpoint for the webhook * description: URL endpoint for the webhook
* example: https://example.service.com/planka * example: https://webhook.example.com/planka
* accessToken: * accessToken:
* type: string * type: string
* nullable: true * nullable: true