1
0
forked from PGL/Clyde

Première des premières versions

This commit is contained in:
Debucquoy Anthony 2023-12-05 20:47:12 +01:00
parent 5a60d8f3db
commit 5c4e981b16
Signed by untrusted user: tonitch
GPG Key ID: A78D6421F083D42E

View File

@ -20,23 +20,51 @@ paths:
schema: schema:
type: string type: string
example: pong example: pong
/user: /requests:
put: post:
summary: create a new user summary: Faire une demande
tags:
- Student
responses:
'201':
description: Demande envoyée
/users:
get:
summary: Listere les utilisateurs
tags:
- SI
security:
- bearer: []
responses:
default:
description: Success
/user: # registration
post:
summary: Créer un utilisateur
tags:
- users
responses:
'200':
description: User created
'401':
$ref: '#/components/responses/UnauthorizedError'
patch:
summary: modifier ses informations
tags: tags:
- users - users
security: security:
- bearer: [] - bearer: []
responses: responses:
'200': '200':
description: User created description: Informaitions modifiées
'401': '401':
$ref: '#/components/responses/UnauthorizedError' $ref: '#/components/responses/UnauthorizedError'
/user/{mat}: /user/{mat}:
get: get:
summary: get user's info summary: get user's info
tags: tags:
- users - Admin
responses: responses:
'200': '200':
description: User found description: User found
@ -51,41 +79,160 @@ paths:
required: true required: true
schema: schema:
type: integer type: integer
patch:
/cursus/{id}: summary: modifier les informations d'un utilisateur
get:
summary: Voir les informations sur un Cursus
tags: tags:
- Courses - Admin
security:
- bearer: []
responses: responses:
'200': '200':
description: Cursus found description: Informaitions modifiées
content: '401':
application/json: $ref: '#/components/responses/UnauthorizedError'
/users/requests:
get:
summary: Lister les requetes d'utilisateurs
security:
- bearer: []
tags:
- Secretaria
- SI
responses:
'200':
description: Liste les requètes
/user/{mat}/validate/{id}:
patch:
summary: Valider un utilisateur
tags:
- Secretaria
- SI
security:
- bearer: []
parameters:
- name: mat
in: path
description: matricule de l'utilisateur
required: true
schema: schema:
$ref: '#/components/schemas/Cursus' type: integer
- name: id
in: path
description: Identifiant de la demande
required: true
schema:
type: integer
- name: answer
in: header
description: valide l'utilisateur ou non
schema:
type: boolean
responses:
'200':
description: Informaitions modifiées
'401':
$ref: '#/components/responses/UnauthorizedError'
/courses/{id}: /courses/{id}:
get: get:
summary: Voir les informations sur un cours* summary: Voir les informations sur un cours*
tags: tags:
- Courses - Courses
responses: responses:
'202':
put: description: success
summary: Créer un nouveau cours parameters:
tags: - name: id
- Courses in: path
security: required: true
- bearer: [] schema:
responses: type: integer
delete: delete:
summary: Suprimer un cours summary: Suprimer un cours
tags: tags:
- Courses - Courses
- Secretaria
security: security:
- bearer: [] - bearer: []
responses: responses:
'202':
description: success
patch:
summary: Changer les options du cours
tags:
- Secretaria
- Courses
security:
- bearer: []
parameters:
- name: professeur
in: header
required: true
schema:
type: string
responses:
'202':
description: Bien ouej
/cursus:
post:
summary: Créer un nouveau cours
tags:
- cursus
security:
- bearer: []
responses:
'202':
description: success
/cursus/{id}:
get:
summary: Voir les informations sur un cursus
tags:
- cursus
responses:
'202':
description: success
parameters:
- name: id
in: path
required: true
schema:
type: integer
delete:
summary: Suprimer un cursus
tags:
- cursus
security:
- bearer: []
responses:
'202':
description: success
patch:
summary: Changer les options du cursus
tags:
- cursus
security:
- bearer: []
responses:
'202':
description: Bien ouej
/courses:
post:
summary: Créer un nouveau cours
tags:
- Courses
- Secretaria
security:
- bearer: []
responses:
'202':
description: success
components: components:
@ -124,7 +271,7 @@ components:
"Address": "Rue de Tounais 42", "Address": "Rue de Tounais 42",
"Country": "BE"}, "Country": "BE"},
"BirthDate": "1941-02-22", "BirthDate": "1941-02-22",
"StaffMember": true "StaffMember": true,
} }
Address: Address:
type: object type: object