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
|
* 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]
|
||||||
|
|||||||
@@ -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]
|
||||||
|
|||||||
@@ -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]
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
* Action:
|
* Action:
|
||||||
* type: object
|
* type: object
|
||||||
* required:
|
* required:
|
||||||
|
* - id
|
||||||
* - cardId
|
* - cardId
|
||||||
* - type
|
* - type
|
||||||
* - data
|
* - data
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
* Attachment:
|
* Attachment:
|
||||||
* type: object
|
* type: object
|
||||||
* required:
|
* required:
|
||||||
|
* - id
|
||||||
* - cardId
|
* - cardId
|
||||||
* - type
|
* - type
|
||||||
* - data
|
* - data
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
* BackgroundImage:
|
* BackgroundImage:
|
||||||
* type: object
|
* type: object
|
||||||
* required:
|
* required:
|
||||||
|
* - id
|
||||||
* - projectId
|
* - projectId
|
||||||
* - size
|
* - size
|
||||||
* - url
|
* - url
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
* BaseCustomFieldGroup:
|
* BaseCustomFieldGroup:
|
||||||
* type: object
|
* type: object
|
||||||
* required:
|
* required:
|
||||||
|
* - id
|
||||||
* - projectId
|
* - projectId
|
||||||
* - name
|
* - name
|
||||||
* properties:
|
* properties:
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
* Board:
|
* Board:
|
||||||
* type: object
|
* type: object
|
||||||
* required:
|
* required:
|
||||||
|
* - id
|
||||||
* - projectId
|
* - projectId
|
||||||
* - position
|
* - position
|
||||||
* - name
|
* - name
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
* Card:
|
* Card:
|
||||||
* type: object
|
* type: object
|
||||||
* required:
|
* required:
|
||||||
|
* - id
|
||||||
* - boardId
|
* - boardId
|
||||||
* - listId
|
* - listId
|
||||||
* - type
|
* - type
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
* CardLabel:
|
* CardLabel:
|
||||||
* type: object
|
* type: object
|
||||||
* required:
|
* required:
|
||||||
|
* - id
|
||||||
* - cardId
|
* - cardId
|
||||||
* - labelId
|
* - labelId
|
||||||
* properties:
|
* properties:
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
* CardMembership:
|
* CardMembership:
|
||||||
* type: object
|
* type: object
|
||||||
* required:
|
* required:
|
||||||
|
* - id
|
||||||
* - cardId
|
* - cardId
|
||||||
* - userId
|
* - userId
|
||||||
* properties:
|
* properties:
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
* Comment:
|
* Comment:
|
||||||
* type: object
|
* type: object
|
||||||
* required:
|
* required:
|
||||||
|
* - id
|
||||||
* - cardId
|
* - cardId
|
||||||
* - text
|
* - text
|
||||||
* properties:
|
* properties:
|
||||||
|
|||||||
@@ -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';
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
* CustomField:
|
* CustomField:
|
||||||
* type: object
|
* type: object
|
||||||
* required:
|
* required:
|
||||||
|
* - id
|
||||||
* - position
|
* - position
|
||||||
* - name
|
* - name
|
||||||
* - showOnFrontOfCard
|
* - showOnFrontOfCard
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
* CustomFieldGroup:
|
* CustomFieldGroup:
|
||||||
* type: object
|
* type: object
|
||||||
* required:
|
* required:
|
||||||
|
* - id
|
||||||
* - position
|
* - position
|
||||||
* properties:
|
* properties:
|
||||||
* id:
|
* id:
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
* CustomFieldValue:
|
* CustomFieldValue:
|
||||||
* type: object
|
* type: object
|
||||||
* required:
|
* required:
|
||||||
|
* - id
|
||||||
* - cardId
|
* - cardId
|
||||||
* - customFieldGroupId
|
* - customFieldGroupId
|
||||||
* - customFieldId
|
* - customFieldId
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
* Label:
|
* Label:
|
||||||
* type: object
|
* type: object
|
||||||
* required:
|
* required:
|
||||||
|
* - id
|
||||||
* - boardId
|
* - boardId
|
||||||
* - position
|
* - position
|
||||||
* - color
|
* - color
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
* List:
|
* List:
|
||||||
* type: object
|
* type: object
|
||||||
* required:
|
* required:
|
||||||
|
* - id
|
||||||
* - boardId
|
* - boardId
|
||||||
* - type
|
* - type
|
||||||
* properties:
|
* properties:
|
||||||
|
|||||||
@@ -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]
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
* Project:
|
* Project:
|
||||||
* type: object
|
* type: object
|
||||||
* required:
|
* required:
|
||||||
|
* - id
|
||||||
* - name
|
* - name
|
||||||
* properties:
|
* properties:
|
||||||
* id:
|
* id:
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
* ProjectManager:
|
* ProjectManager:
|
||||||
* type: object
|
* type: object
|
||||||
* required:
|
* required:
|
||||||
|
* - id
|
||||||
* - projectId
|
* - projectId
|
||||||
* - userId
|
* - userId
|
||||||
* properties:
|
* properties:
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
* Task:
|
* Task:
|
||||||
* type: object
|
* type: object
|
||||||
* required:
|
* required:
|
||||||
|
* - id
|
||||||
* - taskListId
|
* - taskListId
|
||||||
* - position
|
* - position
|
||||||
* - name
|
* - name
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
* TaskList:
|
* TaskList:
|
||||||
* type: object
|
* type: object
|
||||||
* required:
|
* required:
|
||||||
|
* - id
|
||||||
* - cardId
|
* - cardId
|
||||||
* - position
|
* - position
|
||||||
* - name
|
* - name
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user