mirror of
https://github.com/plankanban/planka.git
synced 2025-12-19 09:13:20 +03:00
docs: Add missing details to Swagger
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
* type: string
|
||||
* maxLength: 512
|
||||
* description: URL endpoint for notifications
|
||||
* example: https://example.service.com/planka
|
||||
* example: https://service.example.com/planka
|
||||
* format:
|
||||
* type: string
|
||||
* enum: [text, markdown, html]
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
* type: string
|
||||
* maxLength: 512
|
||||
* description: URL endpoint for notifications
|
||||
* example: https://example.service.com/planka
|
||||
* example: https://service.example.com/planka
|
||||
* format:
|
||||
* type: string
|
||||
* enum: [text, markdown, html]
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
* type: string
|
||||
* maxLength: 512
|
||||
* description: URL endpoint for notifications
|
||||
* example: https://example.service.com/planka
|
||||
* example: https://service.example.com/planka
|
||||
* format:
|
||||
* type: string
|
||||
* enum: [text, markdown, html]
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
* format: url
|
||||
* maxLength: 2048
|
||||
* description: URL endpoint for the webhook
|
||||
* example: https://example.service.com/planka
|
||||
* example: https://service.example.com/planka
|
||||
* accessToken:
|
||||
* type: string
|
||||
* maxLength: 512
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
* format: url
|
||||
* maxLength: 2048
|
||||
* description: URL endpoint for the webhook
|
||||
* example: https://example.service.com/planka
|
||||
* example: https://service.example.com/planka
|
||||
* accessToken:
|
||||
* type: string
|
||||
* maxLength: 512
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
* Action:
|
||||
* type: object
|
||||
* required:
|
||||
* - id
|
||||
* - cardId
|
||||
* - type
|
||||
* - data
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
* Attachment:
|
||||
* type: object
|
||||
* required:
|
||||
* - id
|
||||
* - cardId
|
||||
* - type
|
||||
* - data
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
* BackgroundImage:
|
||||
* type: object
|
||||
* required:
|
||||
* - id
|
||||
* - projectId
|
||||
* - size
|
||||
* - url
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
* BaseCustomFieldGroup:
|
||||
* type: object
|
||||
* required:
|
||||
* - id
|
||||
* - projectId
|
||||
* - name
|
||||
* properties:
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
* Board:
|
||||
* type: object
|
||||
* required:
|
||||
* - id
|
||||
* - projectId
|
||||
* - position
|
||||
* - name
|
||||
|
||||
@@ -17,10 +17,11 @@
|
||||
* BoardMembership:
|
||||
* type: object
|
||||
* required:
|
||||
* - role
|
||||
* - id
|
||||
* - projectId
|
||||
* - boardId
|
||||
* - userId
|
||||
* - role
|
||||
* properties:
|
||||
* id:
|
||||
* type: string
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
* Card:
|
||||
* type: object
|
||||
* required:
|
||||
* - id
|
||||
* - boardId
|
||||
* - listId
|
||||
* - type
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
* CardLabel:
|
||||
* type: object
|
||||
* required:
|
||||
* - id
|
||||
* - cardId
|
||||
* - labelId
|
||||
* properties:
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
* CardMembership:
|
||||
* type: object
|
||||
* required:
|
||||
* - id
|
||||
* - cardId
|
||||
* - userId
|
||||
* properties:
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
* Comment:
|
||||
* type: object
|
||||
* required:
|
||||
* - id
|
||||
* - cardId
|
||||
* - text
|
||||
* properties:
|
||||
|
||||
@@ -17,18 +17,8 @@
|
||||
* Config:
|
||||
* type: object
|
||||
* required:
|
||||
* - id
|
||||
* - isInitialized
|
||||
* - version
|
||||
* 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:
|
||||
* type: string
|
||||
* description: Current version of the PLANKA application
|
||||
@@ -38,18 +28,30 @@
|
||||
* nullable: true
|
||||
* description: Maximum number of active users allowed (conditionally added for admins if configured)
|
||||
* example: 100
|
||||
* createdAt:
|
||||
* type: string
|
||||
* format: date-time
|
||||
* oidc:
|
||||
* type: object
|
||||
* required:
|
||||
* - authorizationUrl
|
||||
* - endSessionUrl
|
||||
* - isEnforced
|
||||
* nullable: true
|
||||
* description: When the config was created
|
||||
* example: 2024-01-01T00:00:00.000Z
|
||||
* updatedAt:
|
||||
* type: string
|
||||
* format: date-time
|
||||
* nullable: true
|
||||
* description: When the config was last updated
|
||||
* example: 2024-01-01T00:00:00.000Z
|
||||
* description: OpenID Connect configuration (null if not configured)
|
||||
* properties:
|
||||
* authorizationUrl:
|
||||
* type: string
|
||||
* format: uri
|
||||
* description: OIDC authorization URL for initiating authentication
|
||||
* example: https://oidc.example.com/auth
|
||||
* 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';
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
* CustomField:
|
||||
* type: object
|
||||
* required:
|
||||
* - id
|
||||
* - position
|
||||
* - name
|
||||
* - showOnFrontOfCard
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
* CustomFieldGroup:
|
||||
* type: object
|
||||
* required:
|
||||
* - id
|
||||
* - position
|
||||
* properties:
|
||||
* id:
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
* CustomFieldValue:
|
||||
* type: object
|
||||
* required:
|
||||
* - id
|
||||
* - cardId
|
||||
* - customFieldGroupId
|
||||
* - customFieldId
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
* Label:
|
||||
* type: object
|
||||
* required:
|
||||
* - id
|
||||
* - boardId
|
||||
* - position
|
||||
* - color
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
* List:
|
||||
* type: object
|
||||
* required:
|
||||
* - id
|
||||
* - boardId
|
||||
* - type
|
||||
* properties:
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
* NotificationService:
|
||||
* type: object
|
||||
* required:
|
||||
* - id
|
||||
* - url
|
||||
* - format
|
||||
* properties:
|
||||
@@ -37,7 +38,7 @@
|
||||
* url:
|
||||
* type: string
|
||||
* description: URL endpoint for notifications
|
||||
* example: https://example.service.com/planka
|
||||
* example: https://service.example.com/planka
|
||||
* format:
|
||||
* type: string
|
||||
* enum: [text, markdown, html]
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
* Project:
|
||||
* type: object
|
||||
* required:
|
||||
* - id
|
||||
* - name
|
||||
* properties:
|
||||
* id:
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
* ProjectManager:
|
||||
* type: object
|
||||
* required:
|
||||
* - id
|
||||
* - projectId
|
||||
* - userId
|
||||
* properties:
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
* Task:
|
||||
* type: object
|
||||
* required:
|
||||
* - id
|
||||
* - taskListId
|
||||
* - position
|
||||
* - name
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
* TaskList:
|
||||
* type: object
|
||||
* required:
|
||||
* - id
|
||||
* - cardId
|
||||
* - position
|
||||
* - name
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
* Webhook:
|
||||
* type: object
|
||||
* required:
|
||||
* - id
|
||||
* - name
|
||||
* - url
|
||||
* properties:
|
||||
@@ -31,7 +32,7 @@
|
||||
* url:
|
||||
* type: string
|
||||
* description: URL endpoint for the webhook
|
||||
* example: https://example.service.com/planka
|
||||
* example: https://webhook.example.com/planka
|
||||
* accessToken:
|
||||
* type: string
|
||||
* nullable: true
|
||||
|
||||
Reference in New Issue
Block a user