salutcesmoileo #4

Merged
tonitch merged 10 commits from salutcesmoileo into master 2023-12-14 14:37:27 +01:00
Showing only changes of commit 74e6d18f97 - Show all commits

View File

@ -374,6 +374,7 @@ paths:
summary: Give an array of every requests of the specified type
tags :
- Requests
- SI
- Ext (Student Registration)
responses :
'200':
@ -383,24 +384,17 @@ paths:
schema :
type : array
items :
oneOf:
- type : object
properties:
id :
type : integer
Firstname :
type : string
Name :
type : string
Date :
type : string
description : Follow the iso 8601 ("YYYY-MM-DD")
State :
type : string
allOf:
- type : object
properties :
id :
type : integer
- oneOf :
- $ref : '#/components/schemas/RRRequest'
- $ref : '#/components/schemas/SSRequest'
- $ref : '#/components/schemas/UnRegRequest'
- $ref : '#/components/schemas/ExempRequest'
- $ref : '#/components/schemas/RegRequest'
discriminator:
propertyName : type
@ -416,6 +410,8 @@ paths:
summary: create a request
tags :
- Requests
- Guest
- Student
- Ext (Student Registration)
security:
- bearer: []
@ -438,7 +434,7 @@ paths:
'401':
$ref: '#/components/responses/UnauthorizedError'
/Requests/{type}{id}:
/Requests/{type}/{id}:
parameters:
- name: type
in: path
@ -458,6 +454,8 @@ paths:
summary : Get all the data composing a request
tags :
- Requests
- SI
- Teacher
- Ext (Student Registration)
responses :
'200':
@ -465,12 +463,17 @@ paths:
content :
application/json :
schema :
oneOf:
- $ref : '#/components/schemas/RRRequest'
- $ref : '#/components/schemas/SSRequest'
- $ref : '#/components/schemas/UnRegRequest'
- $ref : '#/components/schemas/ExempRequest'
- $ref : '#/components/schemas/RegRequest'
allOf:
- type : object
properties :
id :
type : integer
- oneOf :
- $ref : '#/components/schemas/RRRequest'
- $ref : '#/components/schemas/SSRequest'
- $ref : '#/components/schemas/UnRegRequest'
- $ref : '#/components/schemas/ExempRequest'
- $ref : '#/components/schemas/RegRequest'
discriminator:
propertyName : type
@ -478,6 +481,8 @@ paths:
summary: Change the state of request
tags:
- Requests
- SI
- Teacher
- Ext (Student Registration)
security:
- bearer: []
@ -485,8 +490,8 @@ paths:
required: true
content:
application/x-www-form-urlencoded:
schema :
oneOf:
schema:
oneOf :
- $ref : '#/components/schemas/RRRequest'
- $ref : '#/components/schemas/SSRequest'
- $ref : '#/components/schemas/UnRegRequest'
@ -597,8 +602,6 @@ components:
RegRequest:
type : object
properties:
id:
type : integer
Name :
type: string
Firstname :
@ -636,8 +639,6 @@ components:
RRRequest:
type : object
properties :
id :
type : integer
RegNo :
type : integer
NewCursusid :
@ -649,8 +650,6 @@ components:
SSRequest:
type : object
properties :
id :
type : integer
RegNo :
type : integer
Amount :
@ -662,8 +661,6 @@ components:
UnRegRequest :
type : object
properties :
id :
type : integer
RegNo :
type : integer
State :
@ -672,8 +669,6 @@ components:
ExempRequest :
type : object
properties :
id:
type : integer
RegNo :
type : integer
Courseid :