mirror of
https://github.com/plankanban/planka.git
synced 2025-12-20 01:14:12 +03:00
docs: Add full Swagger JSDoc coverage
This commit is contained in:
@@ -10,6 +10,57 @@
|
||||
* @docs :: https://sailsjs.com/docs/concepts/models-and-orm/models
|
||||
*/
|
||||
|
||||
/**
|
||||
* @swagger
|
||||
* components:
|
||||
* schemas:
|
||||
* CustomField:
|
||||
* type: object
|
||||
* required:
|
||||
* - position
|
||||
* - name
|
||||
* - showOnFrontOfCard
|
||||
* properties:
|
||||
* id:
|
||||
* type: string
|
||||
* description: Unique identifier for the custom field
|
||||
* example: 1357158568008091264
|
||||
* baseCustomFieldGroupId:
|
||||
* type: string
|
||||
* nullable: true
|
||||
* description: ID of the base custom field group the custom field belongs to
|
||||
* example: 1357158568008091265
|
||||
* customFieldGroupId:
|
||||
* type: string
|
||||
* nullable: true
|
||||
* description: ID of the custom field group the custom field belongs to
|
||||
* example: 1357158568008091266
|
||||
* position:
|
||||
* type: number
|
||||
* description: Position of the custom field within the group
|
||||
* example: 65536
|
||||
* name:
|
||||
* type: string
|
||||
* description: Name/title of the custom field
|
||||
* example: Priority
|
||||
* showOnFrontOfCard:
|
||||
* type: boolean
|
||||
* description: Whether to show the field on the front of cards
|
||||
* example: true
|
||||
* createdAt:
|
||||
* type: string
|
||||
* format: date-time
|
||||
* nullable: true
|
||||
* description: When the custom field was created
|
||||
* example: 2024-01-01T00:00:00.000Z
|
||||
* updatedAt:
|
||||
* type: string
|
||||
* format: date-time
|
||||
* nullable: true
|
||||
* description: When the custom field was last updated
|
||||
* example: 2024-01-01T00:00:00.000Z
|
||||
*/
|
||||
|
||||
module.exports = {
|
||||
attributes: {
|
||||
// ╔═╗╦═╗╦╔╦╗╦╔╦╗╦╦ ╦╔═╗╔═╗
|
||||
|
||||
Reference in New Issue
Block a user