2023-12-04 19:58:00 +01:00
|
|
|
openapi: 3.0.0
|
|
|
|
info:
|
|
|
|
title: ClydeAPI
|
2023-12-10 21:21:11 +01:00
|
|
|
description:
|
|
|
|
This is the Clyde's api documentation. <br/>
|
|
|
|
Each endpoints are organised by endpoints **AND** by extensions making it easier to navigate.
|
2023-12-04 19:58:00 +01:00
|
|
|
version: 0.0.1
|
|
|
|
|
|
|
|
servers:
|
|
|
|
- url: https://clyde.herisson.ovh/api
|
|
|
|
description: default api point for clyde's service
|
|
|
|
|
2023-12-14 13:56:04 +01:00
|
|
|
tags:
|
|
|
|
- name: default
|
|
|
|
- name: General
|
|
|
|
description: General endpoints
|
|
|
|
- name: Ext (scientific articles)
|
|
|
|
description: Scientifics articles extension's endpoints
|
|
|
|
- name: Ext (Schedule)
|
|
|
|
description: Schedule extension's endpoints
|
|
|
|
|
2023-12-04 19:58:00 +01:00
|
|
|
paths:
|
|
|
|
/ping:
|
|
|
|
get:
|
2023-12-08 15:48:09 +01:00
|
|
|
summary: Check the API status
|
2023-12-04 19:58:00 +01:00
|
|
|
responses:
|
|
|
|
default:
|
2023-12-08 15:48:09 +01:00
|
|
|
description: pong
|
2023-12-04 19:58:00 +01:00
|
|
|
content:
|
|
|
|
text/plain:
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
example: pong
|
2023-12-05 20:47:12 +01:00
|
|
|
/users:
|
|
|
|
get:
|
2023-12-08 15:48:09 +01:00
|
|
|
summary: list all users
|
2023-12-05 20:47:12 +01:00
|
|
|
tags:
|
2023-12-10 21:26:51 +01:00
|
|
|
- General
|
2023-12-05 20:47:12 +01:00
|
|
|
- SI
|
2023-12-04 19:58:00 +01:00
|
|
|
security:
|
|
|
|
- bearer: []
|
2023-12-07 23:27:23 +01:00
|
|
|
parameters:
|
|
|
|
- in: query
|
|
|
|
name: type
|
|
|
|
required: false
|
|
|
|
schema:
|
2023-12-14 13:57:06 +01:00
|
|
|
$ref: '#components/schemas/Roles'
|
2023-12-05 20:47:12 +01:00
|
|
|
responses:
|
2023-12-07 23:27:23 +01:00
|
|
|
'200':
|
2023-12-08 13:34:12 +01:00
|
|
|
description: OK
|
2023-12-07 23:27:23 +01:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/User"
|
|
|
|
'401':
|
|
|
|
$ref: '#/components/responses/UnauthorizedError'
|
2023-12-05 20:47:12 +01:00
|
|
|
|
2023-12-07 23:27:23 +01:00
|
|
|
/user:
|
|
|
|
get:
|
2023-12-08 15:48:09 +01:00
|
|
|
summary: get informations about yourself
|
2023-12-07 23:27:23 +01:00
|
|
|
tags:
|
2023-12-10 21:26:51 +01:00
|
|
|
- General
|
2023-12-07 23:27:23 +01:00
|
|
|
- Users
|
2023-12-10 21:21:11 +01:00
|
|
|
security:
|
|
|
|
- bearer: []
|
2023-12-11 11:02:29 +01:00
|
|
|
responses:
|
2023-12-07 23:27:23 +01:00
|
|
|
'200':
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/User"
|
2023-12-10 21:21:11 +01:00
|
|
|
'401':
|
|
|
|
$ref: '#/components/responses/UnauthorizedError'
|
2023-12-05 20:47:12 +01:00
|
|
|
post:
|
2023-12-08 15:48:09 +01:00
|
|
|
summary: Create user
|
2023-12-05 20:47:12 +01:00
|
|
|
tags:
|
2023-12-10 21:26:51 +01:00
|
|
|
- General
|
2023-12-07 23:27:23 +01:00
|
|
|
- Users
|
|
|
|
requestBody:
|
2023-12-08 13:34:12 +01:00
|
|
|
required: true
|
2023-12-07 23:27:23 +01:00
|
|
|
content:
|
|
|
|
application/x-www-form-urlencoded:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
LastName:
|
|
|
|
type: string
|
|
|
|
FirstName:
|
|
|
|
type: string
|
|
|
|
Email:
|
|
|
|
type: string
|
|
|
|
Address:
|
|
|
|
$ref: "#/components/schemas/Address"
|
|
|
|
BirthDate:
|
|
|
|
type: string
|
|
|
|
description: Follow the iso 8601 ("YYYY-MM-DD")
|
2023-12-14 13:57:06 +01:00
|
|
|
Role:
|
|
|
|
$ref: "#/components/schemas/Roles"
|
2023-12-07 23:27:23 +01:00
|
|
|
example:
|
|
|
|
{
|
|
|
|
"LastName": "Doe" ,
|
|
|
|
"FirstName": "John",
|
|
|
|
"Email": "John.Doe@example.com",
|
|
|
|
"Address": {
|
2023-12-08 15:48:09 +01:00
|
|
|
"Address": "Rue de Tournais 42",
|
2023-12-07 23:27:23 +01:00
|
|
|
"Country": "BE"},
|
|
|
|
"BirthDate": "1941-02-22",
|
2023-12-14 13:57:06 +01:00
|
|
|
"Role": "student"
|
2023-12-07 23:27:23 +01:00
|
|
|
}
|
2023-12-04 19:58:00 +01:00
|
|
|
responses:
|
2023-12-07 23:27:23 +01:00
|
|
|
'201':
|
2023-12-04 19:58:00 +01:00
|
|
|
description: User created
|
|
|
|
'401':
|
|
|
|
$ref: '#/components/responses/UnauthorizedError'
|
2023-12-05 20:47:12 +01:00
|
|
|
patch:
|
2023-12-08 15:48:09 +01:00
|
|
|
summary: Change informations about yourself
|
2023-12-05 20:47:12 +01:00
|
|
|
tags:
|
2023-12-10 21:26:51 +01:00
|
|
|
- General
|
2023-12-07 23:27:23 +01:00
|
|
|
- Users
|
2023-12-05 20:47:12 +01:00
|
|
|
security:
|
|
|
|
- bearer: []
|
2023-12-07 23:27:23 +01:00
|
|
|
requestBody:
|
2023-12-08 13:34:12 +01:00
|
|
|
required: true
|
2023-12-07 23:27:23 +01:00
|
|
|
content:
|
|
|
|
application/x-www-form-urlencoded:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/User'
|
2023-12-05 20:47:12 +01:00
|
|
|
responses:
|
2023-12-07 23:27:23 +01:00
|
|
|
'201':
|
2023-12-08 15:48:09 +01:00
|
|
|
description: Successfully changed.
|
2023-12-05 20:47:12 +01:00
|
|
|
'401':
|
|
|
|
$ref: '#/components/responses/UnauthorizedError'
|
2023-12-12 14:36:15 +01:00
|
|
|
/user/{RegNo}:
|
2023-12-08 15:48:09 +01:00
|
|
|
parameters:
|
2023-12-12 14:36:15 +01:00
|
|
|
- name: RegNo
|
2023-12-08 15:48:09 +01:00
|
|
|
in: path
|
2023-12-12 14:36:15 +01:00
|
|
|
description: Regestration number of the user (unique id)
|
2023-12-08 15:48:09 +01:00
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: integer
|
2023-12-04 19:58:00 +01:00
|
|
|
get:
|
2023-12-08 15:48:09 +01:00
|
|
|
summary: Get user's informations
|
2023-12-04 19:58:00 +01:00
|
|
|
tags:
|
2023-12-10 21:26:51 +01:00
|
|
|
- General
|
2023-12-05 20:47:12 +01:00
|
|
|
- Admin
|
2023-12-04 19:58:00 +01:00
|
|
|
responses:
|
|
|
|
'200':
|
2023-12-08 15:48:09 +01:00
|
|
|
description: User found
|
2023-12-04 19:58:00 +01:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/User"
|
2023-12-05 20:47:12 +01:00
|
|
|
patch:
|
2023-12-08 15:48:09 +01:00
|
|
|
summary: Alter user's informations
|
2023-12-05 20:47:12 +01:00
|
|
|
tags:
|
2023-12-10 21:26:51 +01:00
|
|
|
- General
|
2023-12-05 20:47:12 +01:00
|
|
|
- Admin
|
2023-12-08 17:17:40 +01:00
|
|
|
- Secretariat
|
2023-12-11 11:27:34 +01:00
|
|
|
- Ext (scientific articles)
|
2023-12-05 20:47:12 +01:00
|
|
|
security:
|
|
|
|
- bearer: []
|
2023-12-07 23:27:23 +01:00
|
|
|
requestBody:
|
2023-12-08 13:34:12 +01:00
|
|
|
required: true
|
2023-12-07 23:27:23 +01:00
|
|
|
content:
|
|
|
|
application/x-www-form-urlencoded:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/User'
|
2023-12-05 20:47:12 +01:00
|
|
|
responses:
|
2023-12-07 23:27:23 +01:00
|
|
|
'201':
|
2023-12-08 15:48:09 +01:00
|
|
|
description: Successfully changed
|
2023-12-05 20:47:12 +01:00
|
|
|
'401':
|
|
|
|
$ref: '#/components/responses/UnauthorizedError'
|
2023-12-07 23:27:23 +01:00
|
|
|
/course:
|
|
|
|
post:
|
2023-12-08 15:48:09 +01:00
|
|
|
summary: Create new course
|
2023-12-05 20:47:12 +01:00
|
|
|
tags:
|
2023-12-10 21:26:51 +01:00
|
|
|
- General
|
2023-12-07 23:27:23 +01:00
|
|
|
- Courses
|
|
|
|
- Secretariat
|
|
|
|
security:
|
2023-12-05 20:47:12 +01:00
|
|
|
- bearer: []
|
2023-12-07 23:27:23 +01:00
|
|
|
requestBody:
|
2023-12-08 13:34:12 +01:00
|
|
|
required: true
|
2023-12-07 23:27:23 +01:00
|
|
|
content:
|
|
|
|
application/x-www-form-urlencoded:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
courses:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: string
|
2023-12-05 20:47:12 +01:00
|
|
|
responses:
|
2023-12-07 23:27:23 +01:00
|
|
|
'201':
|
2023-12-08 15:48:09 +01:00
|
|
|
description: course created
|
2023-12-05 20:47:12 +01:00
|
|
|
'401':
|
|
|
|
$ref: '#/components/responses/UnauthorizedError'
|
2023-12-04 19:58:00 +01:00
|
|
|
/courses/{id}:
|
2023-12-13 15:34:36 +01:00
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: integer
|
2023-12-04 19:58:00 +01:00
|
|
|
get:
|
2023-12-08 15:48:09 +01:00
|
|
|
summary: see courses informations
|
2023-12-04 19:58:00 +01:00
|
|
|
tags:
|
2023-12-10 21:26:51 +01:00
|
|
|
- General
|
2023-12-04 19:58:00 +01:00
|
|
|
- Courses
|
|
|
|
responses:
|
2023-12-07 23:27:23 +01:00
|
|
|
'200':
|
|
|
|
description: OK
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Course'
|
2023-12-13 15:34:36 +01:00
|
|
|
|
2023-12-05 20:47:12 +01:00
|
|
|
delete:
|
2023-12-08 15:48:09 +01:00
|
|
|
summary: delete a course
|
2023-12-05 20:47:12 +01:00
|
|
|
tags:
|
2023-12-10 21:26:51 +01:00
|
|
|
- General
|
2023-12-05 20:47:12 +01:00
|
|
|
- Courses
|
2023-12-07 23:27:23 +01:00
|
|
|
- Secretariat
|
2023-12-05 20:47:12 +01:00
|
|
|
security:
|
|
|
|
- bearer: []
|
|
|
|
responses:
|
2023-12-07 23:27:23 +01:00
|
|
|
'201':
|
|
|
|
description: Success
|
|
|
|
'401':
|
|
|
|
$ref: '#/components/responses/UnauthorizedError'
|
2023-12-05 20:47:12 +01:00
|
|
|
patch:
|
2023-12-08 15:48:09 +01:00
|
|
|
summary: Change course options
|
2023-12-04 19:58:00 +01:00
|
|
|
tags:
|
2023-12-10 21:26:51 +01:00
|
|
|
- General
|
2023-12-07 23:27:23 +01:00
|
|
|
- Secretariat
|
2023-12-04 19:58:00 +01:00
|
|
|
- Courses
|
2023-12-05 20:47:12 +01:00
|
|
|
security:
|
|
|
|
- bearer: []
|
2023-12-07 23:27:23 +01:00
|
|
|
requestBody:
|
2023-12-08 13:34:12 +01:00
|
|
|
required: true
|
2023-12-07 23:27:23 +01:00
|
|
|
content:
|
|
|
|
application/x-www-form-urlencoded:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
credits:
|
|
|
|
type: integer
|
|
|
|
faculty:
|
|
|
|
type: string
|
|
|
|
teachers:
|
2023-12-14 13:57:06 +01:00
|
|
|
type: integer
|
|
|
|
description: Teacher's identifier
|
2023-12-07 23:27:23 +01:00
|
|
|
assistants:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/components/schemas/User'
|
|
|
|
example:
|
|
|
|
{
|
|
|
|
"name": "Math pour l'info",
|
|
|
|
"credits": 11,
|
|
|
|
"faculty": "science",
|
|
|
|
"Teacher": ,
|
|
|
|
"Assistants": [ ]
|
|
|
|
}
|
2023-12-05 20:47:12 +01:00
|
|
|
responses:
|
2023-12-07 23:27:23 +01:00
|
|
|
'201':
|
2023-12-08 15:48:09 +01:00
|
|
|
description: Course modified
|
2023-12-07 23:27:23 +01:00
|
|
|
'401':
|
|
|
|
$ref: '#/components/responses/UnauthorizedError'
|
2023-12-05 20:47:12 +01:00
|
|
|
|
|
|
|
/cursus:
|
|
|
|
post:
|
2023-12-08 15:48:09 +01:00
|
|
|
summary: Create a cursus
|
2023-12-05 20:47:12 +01:00
|
|
|
tags:
|
2023-12-10 21:26:51 +01:00
|
|
|
- General
|
2023-12-13 15:34:36 +01:00
|
|
|
- Cursus
|
2023-12-04 19:58:00 +01:00
|
|
|
security:
|
|
|
|
- bearer: []
|
2023-12-07 23:27:23 +01:00
|
|
|
requestBody:
|
2023-12-08 13:34:12 +01:00
|
|
|
required: true
|
2023-12-07 23:27:23 +01:00
|
|
|
content:
|
|
|
|
application/x-www-form-urlencoded:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
2023-12-08 15:48:09 +01:00
|
|
|
courses:
|
|
|
|
type: array
|
2023-12-07 23:27:23 +01:00
|
|
|
items:
|
2023-12-08 15:48:09 +01:00
|
|
|
type: integer
|
|
|
|
description: id of courses
|
2023-12-07 23:27:23 +01:00
|
|
|
example:
|
|
|
|
{
|
2023-12-08 15:48:09 +01:00
|
|
|
"name": "Bac1",
|
|
|
|
[]
|
2023-12-07 23:27:23 +01:00
|
|
|
}
|
2023-12-04 19:58:00 +01:00
|
|
|
responses:
|
2023-12-07 23:27:23 +01:00
|
|
|
'201':
|
2023-12-08 15:48:09 +01:00
|
|
|
description: Cursus created
|
2023-12-07 23:27:23 +01:00
|
|
|
'401':
|
|
|
|
$ref: '#/components/responses/UnauthorizedError'
|
2023-12-05 20:47:12 +01:00
|
|
|
/cursus/{id}:
|
|
|
|
get:
|
2023-12-08 15:48:09 +01:00
|
|
|
summary: See Cursus's informations
|
2023-12-05 20:47:12 +01:00
|
|
|
tags:
|
2023-12-10 21:26:51 +01:00
|
|
|
- General
|
2023-12-13 15:34:36 +01:00
|
|
|
- Cursus
|
2023-12-05 20:47:12 +01:00
|
|
|
responses:
|
2023-12-07 23:27:23 +01:00
|
|
|
'200':
|
|
|
|
description: OK
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Cursus'
|
2023-12-05 20:47:12 +01:00
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: integer
|
2023-12-04 19:58:00 +01:00
|
|
|
delete:
|
2023-12-08 15:48:09 +01:00
|
|
|
summary: Delete cursus
|
2023-12-05 20:47:12 +01:00
|
|
|
tags:
|
2023-12-10 21:26:51 +01:00
|
|
|
- General
|
2023-12-13 15:34:36 +01:00
|
|
|
- Cursus
|
2023-12-05 20:47:12 +01:00
|
|
|
security:
|
|
|
|
- bearer: []
|
|
|
|
responses:
|
2023-12-07 23:27:23 +01:00
|
|
|
'201':
|
|
|
|
description: Success
|
|
|
|
'401':
|
|
|
|
$ref: '#/components/responses/UnauthorizedError'
|
2023-12-05 20:47:12 +01:00
|
|
|
patch:
|
2023-12-08 15:48:09 +01:00
|
|
|
summary: Modify cursus
|
2023-12-05 20:47:12 +01:00
|
|
|
tags:
|
2023-12-10 21:26:51 +01:00
|
|
|
- General
|
2023-12-13 15:34:36 +01:00
|
|
|
- Cursus
|
2023-12-05 20:47:12 +01:00
|
|
|
security:
|
|
|
|
- bearer: []
|
2023-12-07 23:27:23 +01:00
|
|
|
requestBody:
|
2023-12-08 13:34:12 +01:00
|
|
|
required: true
|
2023-12-07 23:27:23 +01:00
|
|
|
content:
|
|
|
|
application/x-www-form-urlencoded:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
credits:
|
|
|
|
type: integer
|
|
|
|
faculty:
|
|
|
|
type: string
|
|
|
|
teachers:
|
|
|
|
$ref: '#/components/schemas/User'
|
|
|
|
assistants:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/components/schemas/User'
|
|
|
|
example:
|
|
|
|
{
|
|
|
|
"name": "Math pour l'info",
|
|
|
|
"credits": 11,
|
|
|
|
"faculty": "science",
|
|
|
|
"Teacher": ,
|
|
|
|
"Assistants": [ ]
|
|
|
|
}
|
2023-12-05 20:47:12 +01:00
|
|
|
responses:
|
2023-12-07 23:27:23 +01:00
|
|
|
'201':
|
2023-12-08 15:48:09 +01:00
|
|
|
description: Cursus modified
|
2023-12-07 23:27:23 +01:00
|
|
|
'401':
|
|
|
|
$ref: '#/components/responses/UnauthorizedError'
|
2023-12-05 20:47:12 +01:00
|
|
|
|
2023-12-13 15:34:36 +01:00
|
|
|
|
2023-12-10 13:15:49 +01:00
|
|
|
/lesson:
|
|
|
|
post:
|
2023-12-13 15:34:36 +01:00
|
|
|
summary: create a new lesson
|
2023-12-10 13:15:49 +01:00
|
|
|
tags:
|
|
|
|
- Secretariat
|
2023-12-12 11:39:18 +01:00
|
|
|
- Lesson
|
2023-12-11 11:31:34 +01:00
|
|
|
- Ext (Schedule)
|
2023-12-10 13:15:49 +01:00
|
|
|
security:
|
|
|
|
- bearer: []
|
|
|
|
requestBody:
|
|
|
|
required: true
|
|
|
|
content:
|
|
|
|
application/x-www-form-urlencoded:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
date:
|
|
|
|
type: string
|
|
|
|
description: Follow the iso 8601 ("YYYY-MM-DD")
|
2023-12-12 11:39:18 +01:00
|
|
|
CourseId:
|
2023-12-10 13:15:49 +01:00
|
|
|
type: integer
|
|
|
|
duration:
|
|
|
|
type: number
|
|
|
|
classroom:
|
|
|
|
type: string
|
|
|
|
responses:
|
|
|
|
'201':
|
|
|
|
description: Lesson created
|
|
|
|
'401':
|
|
|
|
$ref: '#/components/responses/UnauthorizedError'
|
|
|
|
/lesson/{id}:
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
get:
|
|
|
|
summary : See lesson's informations
|
|
|
|
tags:
|
|
|
|
- Users
|
2023-12-12 11:39:18 +01:00
|
|
|
- Lesson
|
2023-12-11 11:31:34 +01:00
|
|
|
- Ext (Schedule)
|
2023-12-10 13:15:49 +01:00
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: OK
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Lesson'
|
|
|
|
patch:
|
|
|
|
summary : Modify Lesson
|
|
|
|
tags:
|
|
|
|
- Secretariat
|
2023-12-12 11:39:18 +01:00
|
|
|
- Lesson
|
2023-12-11 11:31:34 +01:00
|
|
|
- Ext (Schedule)
|
2023-12-10 13:15:49 +01:00
|
|
|
security:
|
|
|
|
- bearer: []
|
|
|
|
requestBody:
|
|
|
|
required: true
|
|
|
|
content:
|
|
|
|
application/x-www-form-urlencoded:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
date:
|
|
|
|
type: string
|
|
|
|
description: Follow the iso 8601 ("YYYY-MM-DD")
|
|
|
|
IDcourse:
|
|
|
|
type: integer
|
|
|
|
duration:
|
|
|
|
type: number
|
|
|
|
classroom:
|
|
|
|
type: string
|
|
|
|
responses:
|
|
|
|
'201':
|
|
|
|
description: Lesson modified
|
|
|
|
'401':
|
|
|
|
$ref: '#/components/responses/UnauthorizedError'
|
2023-12-08 17:17:40 +01:00
|
|
|
|
2023-12-10 13:15:49 +01:00
|
|
|
delete:
|
|
|
|
summary: Delete lesson
|
|
|
|
tags:
|
2023-12-12 11:39:18 +01:00
|
|
|
- Lesson
|
2023-12-10 13:15:49 +01:00
|
|
|
- Secretariat
|
2023-12-11 11:31:34 +01:00
|
|
|
- Ext (Schedule)
|
2023-12-10 13:15:49 +01:00
|
|
|
security:
|
|
|
|
- bearer: []
|
|
|
|
responses:
|
|
|
|
'201':
|
|
|
|
description: Success
|
|
|
|
'401':
|
|
|
|
$ref: '#/components/responses/UnauthorizedError'
|
2023-12-12 11:39:18 +01:00
|
|
|
/scheduleRequest:
|
2023-12-10 13:15:49 +01:00
|
|
|
post:
|
|
|
|
summary: Create a new request
|
|
|
|
tags:
|
|
|
|
- Teacher
|
2023-12-12 11:39:18 +01:00
|
|
|
- ScheduleRequest
|
2023-12-11 11:31:34 +01:00
|
|
|
- Ext (Schedule)
|
2023-12-10 13:15:49 +01:00
|
|
|
requestBody:
|
|
|
|
required: true
|
|
|
|
content:
|
|
|
|
application/x-www-form-urlencoded:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
requestType:
|
|
|
|
type: string
|
|
|
|
lessonId:
|
|
|
|
type: integer
|
2023-12-12 11:39:18 +01:00
|
|
|
newDate:
|
|
|
|
type: string
|
|
|
|
description: Follow the iso 8601 ("YYYY-MM-DD")
|
|
|
|
newClassroom:
|
|
|
|
type: string
|
|
|
|
newCourseId:
|
|
|
|
type: integer
|
2023-12-10 13:15:49 +01:00
|
|
|
responses:
|
|
|
|
'201':
|
|
|
|
description: Request created
|
2023-12-12 11:39:18 +01:00
|
|
|
'401':
|
|
|
|
$ref: '#/components/responses/UnauthorizedError'
|
2023-12-08 17:17:40 +01:00
|
|
|
|
2023-12-12 11:39:18 +01:00
|
|
|
/scheduleRequest/{id}:
|
2023-12-10 13:15:49 +01:00
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
get:
|
|
|
|
summary : See request information
|
|
|
|
tags:
|
|
|
|
- Teacher
|
|
|
|
- Secretariat
|
2023-12-12 11:39:18 +01:00
|
|
|
- ScheduleRequest
|
2023-12-11 11:31:34 +01:00
|
|
|
- Ext (Schedule)
|
2023-12-10 13:15:49 +01:00
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: OK
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2023-12-11 14:13:37 +01:00
|
|
|
$ref: '#/components/schemas/ScheduleRequest'
|
2023-12-10 13:15:49 +01:00
|
|
|
patch:
|
|
|
|
summary : Modify request
|
|
|
|
tags:
|
|
|
|
- Teacher
|
2023-12-12 11:39:18 +01:00
|
|
|
- ScheduleRequest
|
2023-12-11 11:31:34 +01:00
|
|
|
- Ext (Schedule)
|
2023-12-10 13:15:49 +01:00
|
|
|
requestBody:
|
|
|
|
required: true
|
|
|
|
content:
|
|
|
|
application/x-www-form-urlencoded:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
2023-12-12 11:39:18 +01:00
|
|
|
newDate:
|
2023-12-10 13:15:49 +01:00
|
|
|
type: string
|
2023-12-12 11:39:18 +01:00
|
|
|
newClassroom:
|
|
|
|
type: string
|
|
|
|
newCourseId:
|
2023-12-10 13:15:49 +01:00
|
|
|
type: integer
|
|
|
|
responses:
|
|
|
|
'201':
|
|
|
|
description: Request modified
|
|
|
|
delete:
|
|
|
|
summary: Delete request
|
|
|
|
tags:
|
|
|
|
- Teacher
|
|
|
|
- Secretariat
|
2023-12-12 11:39:18 +01:00
|
|
|
- ScheduleRequest
|
2023-12-11 11:31:34 +01:00
|
|
|
- Ext (Schedule)
|
2023-12-10 13:15:49 +01:00
|
|
|
responses:
|
|
|
|
'201':
|
|
|
|
description: Success
|
|
|
|
|
|
|
|
/display:
|
|
|
|
post:
|
|
|
|
summary: Create a new display
|
|
|
|
tags:
|
2023-12-12 11:39:18 +01:00
|
|
|
- Display
|
2023-12-11 11:31:34 +01:00
|
|
|
- Ext (Schedule)
|
2023-12-10 13:15:49 +01:00
|
|
|
requestBody:
|
|
|
|
required: true
|
|
|
|
content:
|
|
|
|
application/x-www-form-urlencoded:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
2023-12-12 11:39:18 +01:00
|
|
|
timeMode:
|
2023-12-10 13:15:49 +01:00
|
|
|
type: string
|
2023-12-12 11:39:18 +01:00
|
|
|
displayMode:
|
2023-12-10 13:15:49 +01:00
|
|
|
type: string
|
|
|
|
userId:
|
|
|
|
type: integer
|
|
|
|
responses:
|
|
|
|
'201':
|
|
|
|
description: display created
|
|
|
|
|
|
|
|
/display/{id}:
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
get:
|
|
|
|
summary : See display information
|
|
|
|
tags:
|
|
|
|
- Users
|
2023-12-12 11:39:18 +01:00
|
|
|
- Display
|
2023-12-11 11:31:34 +01:00
|
|
|
- Ext (Schedule)
|
2023-12-10 13:15:49 +01:00
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: OK
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Display'
|
|
|
|
patch:
|
|
|
|
summary : Modify display
|
|
|
|
tags:
|
|
|
|
- Users
|
2023-12-12 11:39:18 +01:00
|
|
|
- Display
|
2023-12-11 11:31:34 +01:00
|
|
|
- Ext (Schedule)
|
2023-12-10 13:15:49 +01:00
|
|
|
requestBody:
|
|
|
|
required: true
|
|
|
|
content:
|
|
|
|
application/x-www-form-urlencoded:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
2023-12-12 11:39:18 +01:00
|
|
|
timeMode:
|
2023-12-10 13:15:49 +01:00
|
|
|
type: string
|
2023-12-12 11:39:18 +01:00
|
|
|
displayMode:
|
2023-12-10 13:15:49 +01:00
|
|
|
type: string
|
|
|
|
responses:
|
|
|
|
'201':
|
|
|
|
description: Display modified
|
2023-12-13 15:34:36 +01:00
|
|
|
# Extension publication scientifique
|
2023-12-08 17:17:40 +01:00
|
|
|
|
|
|
|
/article:
|
|
|
|
post:
|
|
|
|
summary: create an article
|
|
|
|
tags:
|
2023-12-11 11:27:34 +01:00
|
|
|
- Ext (scientific articles)
|
2023-12-08 17:17:40 +01:00
|
|
|
- Researcher
|
|
|
|
security:
|
|
|
|
- bearer : []
|
|
|
|
responses:
|
|
|
|
"201" :
|
|
|
|
description: OK
|
|
|
|
'401':
|
|
|
|
$ref: '#/components/responses/UnauthorizedError'
|
|
|
|
requestBody:
|
|
|
|
required : true
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
2023-12-12 14:36:15 +01:00
|
|
|
pdf:
|
|
|
|
type: string
|
|
|
|
description : the B64 version encoding of the pdf file
|
|
|
|
access:
|
2023-12-08 17:17:40 +01:00
|
|
|
type: string
|
|
|
|
summary:
|
|
|
|
type: string
|
|
|
|
language:
|
|
|
|
type: string
|
|
|
|
title:
|
|
|
|
type: string
|
|
|
|
date:
|
|
|
|
type: string
|
|
|
|
description: Follow the iso 8601 ("YYYY-MM-DD")
|
|
|
|
views:
|
2023-12-12 14:36:15 +01:00
|
|
|
type: integer
|
|
|
|
example:
|
|
|
|
{
|
|
|
|
"access": "private",
|
|
|
|
"pdf": " *the b64 encoding of the pdf* ",
|
|
|
|
"summary": "looks in details about graph's second theorem",
|
|
|
|
"language": "english",
|
|
|
|
"title": "graph's second theorem study",
|
|
|
|
"date":"2023-02-01",
|
|
|
|
"views": 420,
|
|
|
|
"authors" : []
|
|
|
|
}
|
2023-12-08 17:17:40 +01:00
|
|
|
/article/{id}:
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
get:
|
|
|
|
summary: get a certain article
|
|
|
|
tags:
|
|
|
|
- Users
|
2023-12-11 11:27:34 +01:00
|
|
|
- Ext (scientific articles)
|
2023-12-08 17:17:40 +01:00
|
|
|
security:
|
|
|
|
- bearer: []
|
|
|
|
responses:
|
|
|
|
"201":
|
|
|
|
description: OK
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Article'
|
|
|
|
'401':
|
|
|
|
$ref: '#/components/responses/UnauthorizedError'
|
2023-12-13 15:34:36 +01:00
|
|
|
|
2023-12-08 17:17:40 +01:00
|
|
|
patch:
|
|
|
|
summary: modify an article
|
|
|
|
tags:
|
|
|
|
- Researcher
|
2023-12-11 11:27:34 +01:00
|
|
|
- Ext (scientific articles)
|
2023-12-08 17:17:40 +01:00
|
|
|
security:
|
|
|
|
- bearer : []
|
|
|
|
responses:
|
|
|
|
"201":
|
|
|
|
description: article modifié
|
|
|
|
'401':
|
|
|
|
$ref: '#/components/responses/UnauthorizedError'
|
|
|
|
requestBody:
|
|
|
|
required : true
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
2023-12-12 14:36:15 +01:00
|
|
|
pdf:
|
|
|
|
type: string
|
|
|
|
description : the B64 version encoding of the pdf file
|
|
|
|
access:
|
2023-12-08 17:17:40 +01:00
|
|
|
type: string
|
|
|
|
summary:
|
|
|
|
type: string
|
|
|
|
language:
|
|
|
|
type: string
|
|
|
|
title:
|
|
|
|
type: string
|
|
|
|
date:
|
|
|
|
type: string
|
|
|
|
description: Follow the iso 8601 ("YYYY-MM-DD")
|
|
|
|
views:
|
|
|
|
type: integer
|
2023-12-12 14:36:15 +01:00
|
|
|
example:
|
|
|
|
{
|
|
|
|
"access": "public",
|
|
|
|
"pdf": " *the new b64 encoding of the pdf* ",
|
|
|
|
"summary": "looks in details about the duck's algorithm problem",
|
|
|
|
"language": "english",
|
|
|
|
"title": "duck's algorithm problem solving",
|
|
|
|
"date":"2023-02-01",
|
|
|
|
"views": 10,
|
|
|
|
"authors" : []
|
|
|
|
}
|
|
|
|
|
2023-12-08 17:17:40 +01:00
|
|
|
|
|
|
|
delete:
|
|
|
|
summary: delete own article
|
|
|
|
tags:
|
|
|
|
- Researcher
|
2023-12-11 11:27:34 +01:00
|
|
|
- Ext (scientific articles)
|
2023-12-08 17:17:40 +01:00
|
|
|
security:
|
|
|
|
- bearer: []
|
|
|
|
responses:
|
|
|
|
'201':
|
|
|
|
description: OK
|
|
|
|
'401':
|
|
|
|
$ref: '#/components/responses/UnauthorizedError'
|
|
|
|
|
2023-12-13 14:41:07 +01:00
|
|
|
/DisplayArticle:
|
2023-12-12 14:36:15 +01:00
|
|
|
parameters:
|
|
|
|
- in: query
|
|
|
|
name: author
|
|
|
|
required: false
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- in: query
|
|
|
|
name: access
|
|
|
|
required: false
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
enum: [public, restricted, private]
|
|
|
|
- in: query
|
|
|
|
name: name
|
|
|
|
required: false
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
|
|
|
|
get:
|
|
|
|
summary: get a list of article's data
|
|
|
|
tags:
|
|
|
|
- Users
|
|
|
|
- Ext (scientific articles)
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: OK
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: array
|
|
|
|
items:
|
2023-12-13 14:41:07 +01:00
|
|
|
$ref: "#/components/schemas/DisplayArticle"
|
2023-12-08 17:17:40 +01:00
|
|
|
|
2023-12-04 19:58:00 +01:00
|
|
|
components:
|
|
|
|
securitySchemes:
|
|
|
|
bearer:
|
|
|
|
type: http
|
|
|
|
scheme: bearer
|
|
|
|
schemas:
|
|
|
|
User:
|
|
|
|
type: object
|
|
|
|
properties:
|
2023-12-07 23:27:23 +01:00
|
|
|
regNo:
|
2023-12-04 19:58:00 +01:00
|
|
|
type: integer
|
2023-12-07 23:27:23 +01:00
|
|
|
photo:
|
2023-12-04 19:58:00 +01:00
|
|
|
type: object
|
2023-12-07 23:27:23 +01:00
|
|
|
lastName:
|
2023-12-04 19:58:00 +01:00
|
|
|
type: string
|
2023-12-07 23:27:23 +01:00
|
|
|
firstName:
|
2023-12-04 19:58:00 +01:00
|
|
|
type: string
|
2023-12-07 23:27:23 +01:00
|
|
|
email:
|
2023-12-04 19:58:00 +01:00
|
|
|
type: string
|
2023-12-07 23:27:23 +01:00
|
|
|
address:
|
2023-12-04 19:58:00 +01:00
|
|
|
$ref: "#/components/schemas/Address"
|
2023-12-07 23:27:23 +01:00
|
|
|
birthDate:
|
2023-12-04 19:58:00 +01:00
|
|
|
type: string
|
|
|
|
description: Follow the iso 8601 ("YYYY-MM-DD")
|
2023-12-14 13:57:06 +01:00
|
|
|
role:
|
|
|
|
$ref: '#/components/schemas/Roles'
|
2023-12-04 19:58:00 +01:00
|
|
|
example:
|
|
|
|
{
|
2023-12-07 23:27:23 +01:00
|
|
|
"regNo": 42,
|
|
|
|
"lastName": "Doe" ,
|
|
|
|
"firstName": "John",
|
|
|
|
"email": "John.Doe@example.com",
|
|
|
|
"address": {
|
2023-12-10 21:21:11 +01:00
|
|
|
"address": "Rue de Tournais 42",
|
2023-12-07 23:27:23 +01:00
|
|
|
"country": "BE"},
|
|
|
|
"birthDate": "1941-02-22",
|
2023-12-14 13:57:06 +01:00
|
|
|
"role": "student"
|
2023-12-04 19:58:00 +01:00
|
|
|
}
|
|
|
|
Address:
|
|
|
|
type: object
|
|
|
|
properties:
|
2023-12-07 23:27:23 +01:00
|
|
|
address:
|
2023-12-04 19:58:00 +01:00
|
|
|
type: string
|
2023-12-07 23:27:23 +01:00
|
|
|
country:
|
2023-12-04 19:58:00 +01:00
|
|
|
type: string
|
|
|
|
description: Follow the ISO-3166-1 alpha-2 standard.
|
|
|
|
example:
|
|
|
|
{
|
2023-12-10 21:21:11 +01:00
|
|
|
"address": "Rue de Tournais 42",
|
2023-12-07 23:27:23 +01:00
|
|
|
"country": "BE"
|
|
|
|
}
|
|
|
|
Course:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
credits:
|
|
|
|
type: integer
|
|
|
|
faculty:
|
|
|
|
type: string
|
|
|
|
teachers:
|
2023-12-08 15:48:09 +01:00
|
|
|
type: integer
|
|
|
|
description: user's id
|
2023-12-07 23:27:23 +01:00
|
|
|
assistants:
|
|
|
|
type: array
|
|
|
|
items:
|
2023-12-08 15:48:09 +01:00
|
|
|
type: integer
|
|
|
|
description: user's id
|
2023-12-07 23:27:23 +01:00
|
|
|
example:
|
|
|
|
{
|
|
|
|
"id": 42,
|
|
|
|
"name": "Math pour l'info",
|
|
|
|
"credits": 11,
|
|
|
|
"faculty": "science",
|
2023-12-08 15:48:09 +01:00
|
|
|
"Teacher": 42,
|
2023-12-07 23:27:23 +01:00
|
|
|
"Assistants": [ ]
|
2023-12-04 19:58:00 +01:00
|
|
|
}
|
|
|
|
Cursus:
|
|
|
|
type: object
|
|
|
|
properties:
|
2023-12-07 23:27:23 +01:00
|
|
|
id:
|
2023-12-04 19:58:00 +01:00
|
|
|
type: integer
|
2023-12-07 23:27:23 +01:00
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
courses:
|
2023-12-04 19:58:00 +01:00
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
example:
|
|
|
|
{
|
|
|
|
"id": 42,
|
|
|
|
"courses": ['Math', 'Info']
|
|
|
|
}
|
2023-12-14 13:57:06 +01:00
|
|
|
Roles:
|
|
|
|
type: string
|
|
|
|
enum: [teacher, student, secretary]
|
2023-12-08 17:17:40 +01:00
|
|
|
Article:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
articleId:
|
|
|
|
type: integer
|
2023-12-12 14:36:15 +01:00
|
|
|
access :
|
2023-12-08 17:17:40 +01:00
|
|
|
type : string
|
|
|
|
pdf :
|
|
|
|
type : string
|
|
|
|
description : file location
|
|
|
|
summary:
|
|
|
|
type : string
|
|
|
|
language:
|
|
|
|
type : string
|
|
|
|
title :
|
|
|
|
type : string
|
|
|
|
date:
|
|
|
|
type : string
|
|
|
|
views :
|
|
|
|
type : integer
|
|
|
|
authors:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/components/schemas/User'
|
|
|
|
description: first user is the author, the remaining users are co-authors
|
|
|
|
example:
|
|
|
|
{
|
|
|
|
"articleId": 42,
|
2023-12-12 14:36:15 +01:00
|
|
|
"access": "private",
|
2023-12-08 17:17:40 +01:00
|
|
|
"pdf": "/articles/42",
|
|
|
|
"summary": "looks in details about graph's second theorem",
|
|
|
|
"language": "english",
|
|
|
|
"title": "graph's second theorem study",
|
|
|
|
"date":"2023-02-01",
|
|
|
|
"views": 420,
|
|
|
|
"authors" : []
|
|
|
|
}
|
2023-12-13 14:41:07 +01:00
|
|
|
DisplayArticle:
|
2023-12-12 14:36:15 +01:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
articleId:
|
|
|
|
type: integer
|
|
|
|
access:
|
|
|
|
type: string
|
|
|
|
summary:
|
|
|
|
type: string
|
|
|
|
title:
|
|
|
|
type: string
|
|
|
|
author:
|
|
|
|
type: string
|
|
|
|
items:
|
|
|
|
$ref: '#/components/schemas/User'
|
|
|
|
example:
|
|
|
|
{
|
|
|
|
"articleId": 42,
|
|
|
|
"access": "private",
|
|
|
|
"summary": "looks in details about graph's second theorem",
|
|
|
|
"title": "graph's second theorem study",
|
|
|
|
"author" : "john doe"
|
|
|
|
}
|
2023-12-10 13:15:49 +01:00
|
|
|
Lesson :
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
date:
|
|
|
|
type: string
|
|
|
|
description: Follow the iso 8601 ("YYYY-MM-DD")
|
|
|
|
duration:
|
|
|
|
type: number
|
|
|
|
description: duration of a course in hours
|
|
|
|
classroom:
|
|
|
|
type: string
|
2023-12-12 11:39:18 +01:00
|
|
|
courseId:
|
|
|
|
type: integer
|
2023-12-10 13:15:49 +01:00
|
|
|
example:
|
2023-12-12 11:39:18 +01:00
|
|
|
{
|
|
|
|
"id": 12,
|
|
|
|
"date": "2023-12-01",
|
|
|
|
"duration": 1.5,
|
|
|
|
"classroom": "AMPHI01",
|
|
|
|
"courseId": 12
|
|
|
|
}
|
2023-12-11 14:13:37 +01:00
|
|
|
ScheduleRequest:
|
2023-12-10 13:15:49 +01:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
requestType:
|
|
|
|
type: string
|
|
|
|
lessonId:
|
|
|
|
type: integer
|
2023-12-11 14:13:37 +01:00
|
|
|
teacherId:
|
|
|
|
type: integer
|
|
|
|
newDate:
|
|
|
|
type: string
|
|
|
|
description: Follow the iso 8601 ("YYYY-MM-DD")
|
|
|
|
newClassroom:
|
|
|
|
type: string
|
2023-12-12 11:39:18 +01:00
|
|
|
newCourseId:
|
|
|
|
type: integer
|
2023-12-10 13:15:49 +01:00
|
|
|
example:
|
|
|
|
{
|
|
|
|
"id": 12,
|
2023-12-11 14:13:37 +01:00
|
|
|
"requestType": "moveLesson",
|
|
|
|
"lessonId": 52,
|
|
|
|
"teacherId": 12,
|
|
|
|
"newDate": "2023-12-20",
|
|
|
|
"newClassroom":,
|
2023-12-12 11:39:18 +01:00
|
|
|
"newCourseId":,
|
2023-12-10 13:15:49 +01:00
|
|
|
}
|
2023-12-11 14:13:37 +01:00
|
|
|
|
2023-12-10 13:15:49 +01:00
|
|
|
Display:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
2023-12-12 11:39:18 +01:00
|
|
|
timeMode:
|
2023-12-10 13:15:49 +01:00
|
|
|
type: string
|
|
|
|
description: Define the period displayed on the schedule (week,month,quadrimester..)
|
2023-12-12 11:39:18 +01:00
|
|
|
displayMode:
|
2023-12-10 13:15:49 +01:00
|
|
|
type: string
|
|
|
|
userId:
|
|
|
|
type: integer
|
|
|
|
description: Id of the user who owns this display
|
|
|
|
example:
|
|
|
|
{
|
|
|
|
"id": 12,
|
2023-12-12 11:39:18 +01:00
|
|
|
"timeMode": "month",
|
|
|
|
"displayMode": "grid",
|
2023-12-10 13:15:49 +01:00
|
|
|
"UserId": 12
|
|
|
|
}
|
2023-12-04 19:58:00 +01:00
|
|
|
responses:
|
|
|
|
UnauthorizedError:
|
2023-12-08 15:48:09 +01:00
|
|
|
description: Unauthorized access or missing bearer
|
2023-12-12 14:36:15 +01:00
|
|
|
|
|
|
|
|
2023-12-13 14:41:07 +01:00
|
|
|
|
2023-12-13 15:34:36 +01:00
|
|
|
|