Skip to content
Snippets Groups Projects
Verified Commit 476b9008 authored by Andrej Ramašeuski's avatar Andrej Ramašeuski
Browse files

Reorganizace, pridani eventu

parent 279764e7
No related branches found
No related tags found
No related merge requests found
openapi: 3.0.3 openapi: 3.0.3
info: info:
version: 1.10.2 version: 1.12
title: CF Online title: CF Online
description: CF Online description: CF Online
license: license:
...@@ -44,6 +44,27 @@ components: ...@@ -44,6 +44,27 @@ components:
default: 100 default: 100
minimum: 1 minimum: 1
schemas: 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: ConfigEntry:
type: object type: object
properties: properties:
...@@ -55,6 +76,109 @@ components: ...@@ -55,6 +76,109 @@ components:
readOnly: true readOnly: true
value: value:
type: string 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: ProgramScheduleEntry:
type: object type: object
properties: properties:
...@@ -98,26 +222,6 @@ components: ...@@ -98,26 +222,6 @@ components:
type: integer type: integer
my_vote: my_vote:
type: integer 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: User:
type: object type: object
properties: properties:
...@@ -136,58 +240,6 @@ components: ...@@ -136,58 +240,6 @@ components:
nullable: true nullable: true
is_banned: is_banned:
type: boolean 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: paths:
/config: /config:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment