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