diff --git a/openapi.yaml b/openapi.yaml index dfc73fddf788eaf1cc8ce1dcbab0671a10aa0d64..c7294af660bf7a59f61d668ae4d8e99afcef8531 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -1,7 +1,7 @@ openapi: 3.0.3 info: - version: 1.10.2 + version: 1.12 title: CF Online description: CF Online license: @@ -44,6 +44,27 @@ components: default: 100 minimum: 1 schemas: + Announcement: + type: object + description: Notifikace + properties: + id: + type: integer + readOnly: true + datetime: + type: string + readOnly: true + type: + type: integer + enum: [0, 1, 2, 3, 4, 5] + content: + type: string + maxLength: 1024 + link: + type: string + maxLength: 256 + related_post_id: + type: integer ConfigEntry: type: object properties: @@ -55,6 +76,109 @@ components: readOnly: true value: type: string + Event: + type: object + description: Udalost + properties: + id: + type: integer + readOnly: true + uuid: + type: string + readOnly: true + type: + type: integer + enum: [1, 2, 3] + start: + type: string + maxLength: 20 + finish: + type: string + maxLength: 20 + nullable: true + name: + type: string + description: + type: string + organizer: + type: string + stream_url: + type: string + meet_url: + type: string + readOnly: true + record_url: + type: string + readOnly: true + acl: + type: array + items: + $ref: '#/components/schemas/EventRole' + EventRole: + type: object + properties: + id: + type: integer + readOnly: true + subject: + type: string + class: + type: string + enum: ['user', 'group'] + role: + type: string + enum: ['chairmain', 'member', 'guest'] + Option: + type: object + properties: + class: + type: string + value: + type: string + label: + type: string + Post: + type: object + description: Prispevek + properties: + id: + type: integer + readOnly: true + datetime: + type: string + readOnly: true + type: + type: integer + enum: [0, 1] + state: + type: integer + enum: [0, 1, 2, 3, 4] + content: + type: string + maxLength: 1024 + is_changed: + type: boolean + is_archived: + type: boolean + author: + $ref: '#/components/schemas/User' + ranking: + $ref: '#/components/schemas/Ranking' + history_log: + type: array + items: + $ref: '#/components/schemas/PostHistoryItem' + PostHistoryItem: + type: object + properties: + attribute: + type: string + value: + type: string + datetime: + type: string + originator: + type: string ProgramScheduleEntry: type: object properties: @@ -98,26 +222,6 @@ components: type: integer my_vote: type: integer - Option: - type: object - properties: - class: - type: string - value: - type: string - label: - type: string - PostHistoryItem: - type: object - properties: - attribute: - type: string - value: - type: string - datetime: - type: string - originator: - type: string User: type: object properties: @@ -136,58 +240,6 @@ components: nullable: true is_banned: type: boolean - Announcement: - type: object - description: Notifikace - properties: - id: - type: integer - readOnly: true - datetime: - type: string - readOnly: true - type: - type: integer - enum: [0, 1, 2, 3, 4, 5] - content: - type: string - maxLength: 1024 - link: - type: string - maxLength: 256 - related_post_id: - type: integer - Post: - type: object - description: Prispevek - properties: - id: - type: integer - readOnly: true - datetime: - type: string - readOnly: true - type: - type: integer - enum: [0, 1] - state: - type: integer - enum: [0, 1, 2, 3, 4] - content: - type: string - maxLength: 1024 - is_changed: - type: boolean - is_archived: - type: boolean - author: - $ref: '#/components/schemas/User' - ranking: - $ref: '#/components/schemas/Ranking' - history_log: - type: array - items: - $ref: '#/components/schemas/PostHistoryItem' paths: /config: