openapi: 3.2.0 info: title: Genialis base Annotation Preset API version: 0.0.0 description: Backend of the Genialis platform. servers: - url: https://app.genialis.com description: Base URL declared by the provider in apis.yml (roadmap#122). tags: - name: Annotation Preset paths: /api/annotation_preset: get: operationId: api_annotation_preset_list description: API view for :class:`DescriptorSchema` objects. parameters: - name: limit required: false in: query description: Number of results to return per page. schema: type: integer - in: query name: name schema: type: string - in: query name: name__contains schema: type: string - in: query name: name__icontains schema: type: string - in: query name: name__iexact schema: type: string - in: query name: name__in schema: type: array items: type: string description: Multiple values may be separated by commas. explode: false style: form - in: query name: name__isnull schema: type: boolean - in: query name: name__istartswith schema: type: string - in: query name: name__startswith schema: type: string - name: offset required: false in: query description: The initial index from which to return the results. schema: type: integer - name: ordering required: false in: query description: Which field to use when ordering the results. schema: type: string tags: - Annotation Preset security: - cookieAuth: [] responses: '200': content: application/json: schema: $ref: '#/components/schemas/PaginatedAnnotationPresetSerializerWithPermissionsList' description: '' summary: Api annotation preset list x-summary-source: derived post: operationId: api_annotation_preset_create description: Create a resource. tags: - Annotation Preset requestBody: content: application/json: schema: $ref: '#/components/schemas/AnnotationPresetSerializerWithPermissions' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/AnnotationPresetSerializerWithPermissions' multipart/form-data: schema: $ref: '#/components/schemas/AnnotationPresetSerializerWithPermissions' required: true security: - cookieAuth: [] responses: '201': content: application/json: schema: $ref: '#/components/schemas/AnnotationPresetSerializerWithPermissions' description: '' summary: Api annotation preset create x-summary-source: derived /api/annotation_preset/{id}: get: operationId: api_annotation_preset_retrieve description: API view for :class:`DescriptorSchema` objects. parameters: - in: path name: id schema: type: integer description: A unique integer value identifying this annotation preset. required: true tags: - Annotation Preset security: - cookieAuth: [] responses: '200': content: application/json: schema: $ref: '#/components/schemas/AnnotationPresetSerializerWithPermissions' description: '' summary: Api annotation preset retrieve x-summary-source: derived put: operationId: api_annotation_preset_update description: Update a resource. parameters: - in: path name: id schema: type: integer description: A unique integer value identifying this annotation preset. required: true tags: - Annotation Preset requestBody: content: application/json: schema: $ref: '#/components/schemas/AnnotationPresetSerializerWithPermissions' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/AnnotationPresetSerializerWithPermissions' multipart/form-data: schema: $ref: '#/components/schemas/AnnotationPresetSerializerWithPermissions' required: true security: - cookieAuth: [] responses: '200': content: application/json: schema: $ref: '#/components/schemas/AnnotationPresetSerializerWithPermissions' description: '' summary: Api annotation preset update x-summary-source: derived patch: operationId: api_annotation_preset_partial_update description: API view for :class:`DescriptorSchema` objects. parameters: - in: path name: id schema: type: integer description: A unique integer value identifying this annotation preset. required: true tags: - Annotation Preset requestBody: content: application/json: schema: $ref: '#/components/schemas/PatchedAnnotationPresetSerializerWithPermissions' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/PatchedAnnotationPresetSerializerWithPermissions' multipart/form-data: schema: $ref: '#/components/schemas/PatchedAnnotationPresetSerializerWithPermissions' security: - cookieAuth: [] responses: '200': content: application/json: schema: $ref: '#/components/schemas/AnnotationPresetSerializerWithPermissions' description: '' summary: Api annotation preset partial update x-summary-source: derived /api/annotation_preset/{id}/permissions: get: operationId: api_annotation_preset_permissions_retrieve description: Get or set permissions API endpoint. parameters: - in: path name: id schema: type: integer description: A unique integer value identifying this annotation preset. required: true tags: - Annotation Preset security: - cookieAuth: [] responses: '200': content: application/json: schema: $ref: '#/components/schemas/CurrentUserPermissions' description: '' summary: Api annotation preset permissions retrieve x-summary-source: derived post: operationId: api_annotation_preset_permissions_create description: Get or set permissions API endpoint. parameters: - in: path name: id schema: type: integer description: A unique integer value identifying this annotation preset. required: true tags: - Annotation Preset requestBody: content: application/json: schema: $ref: '#/components/schemas/Permission' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/Permission' multipart/form-data: schema: $ref: '#/components/schemas/Permission' security: - cookieAuth: [] responses: '200': content: application/json: schema: $ref: '#/components/schemas/CurrentUserPermissions' description: '' summary: Api annotation preset permissions create x-summary-source: derived components: schemas: CurrentUserPermissionsTypeEnum: enum: - user - group - public type: string description: '* `user` - user * `group` - group * `public` - public' PatchedAnnotationPresetSerializerWithPermissions: type: object description: Serializer for AnnotationPreset objects. properties: id: type: integer readOnly: true name: type: string fields: type: array items: type: integer contributor: $ref: '#/components/schemas/Contributor' current_user_permissions: type: array items: $ref: '#/components/schemas/CurrentUserPermissions' readOnly: true PaginatedAnnotationPresetSerializerWithPermissionsList: type: object required: - count - results properties: count: type: integer example: 123 next: type: - string - 'null' format: uri example: http://api.example.org/accounts/?offset=400&limit=100 previous: type: - string - 'null' format: uri example: http://api.example.org/accounts/?offset=200&limit=100 results: type: array items: $ref: '#/components/schemas/AnnotationPresetSerializerWithPermissions' AnnotationPresetSerializerWithPermissions: type: object description: Serializer for AnnotationPreset objects. properties: id: type: integer readOnly: true name: type: string fields: type: array items: type: integer contributor: $ref: '#/components/schemas/Contributor' current_user_permissions: type: array items: $ref: '#/components/schemas/CurrentUserPermissions' readOnly: true required: - contributor - current_user_permissions - fields - id Permission: type: object description: 'Permission serializer. Dictionary keys for users and groups are either ids or usernames (emails) or group names.' properties: users: type: object additionalProperties: enum: - VIEW - EDIT - SHARE - OWNER type: string description: '* `VIEW` - VIEW * `EDIT` - EDIT * `SHARE` - SHARE * `OWNER` - OWNER' groups: type: object additionalProperties: enum: - VIEW - EDIT - SHARE - OWNER type: string description: '* `VIEW` - VIEW * `EDIT` - EDIT * `SHARE` - SHARE * `OWNER` - OWNER' public: $ref: '#/components/schemas/PublicEnum' PermissionsEnum: enum: - none - view - edit - share - owner type: string description: '* `none` - none * `view` - view * `edit` - edit * `share` - share * `owner` - owner' Contributor: type: object description: Serializer for contributor User objects. properties: first_name: type: string maxLength: 150 id: type: integer readOnly: true last_name: type: string maxLength: 150 username: type: string description: Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. pattern: ^[\w.@+-]+$ maxLength: 150 required: - id - username CurrentUserPermissions: type: object description: Current user permissions serializer. properties: id: type: integer type: $ref: '#/components/schemas/CurrentUserPermissionsTypeEnum' name: type: string maxLength: 100 username: type: string maxLength: 150 permissions: type: array items: $ref: '#/components/schemas/PermissionsEnum' required: - permissions - type PublicEnum: enum: - VIEW - EDIT - SHARE - OWNER type: string description: '* `VIEW` - VIEW * `EDIT` - EDIT * `SHARE` - SHARE * `OWNER` - OWNER' securitySchemes: cookieAuth: type: apiKey in: cookie name: sessionid