Compare commits
	
		
			2 Commits
		
	
	
		
			b8897cd697
			...
			f0b2c31a06
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						
						
							
						
						f0b2c31a06
	
				 | 
					
					
						|||
| 
						
						
							
						
						b50e0db3fc
	
				 | 
					
					
						
@ -1,7 +1,9 @@
 | 
				
			|||||||
openapi: 3.0.0
 | 
					openapi: 3.0.0
 | 
				
			||||||
info:
 | 
					info:
 | 
				
			||||||
  title: ClydeAPI
 | 
					  title: ClydeAPI
 | 
				
			||||||
  description: Clyde's api
 | 
					  description:
 | 
				
			||||||
 | 
					    This is the Clyde's api documentation. <br/>
 | 
				
			||||||
 | 
					    Each endpoints are organised by endpoints **AND** by extensions making it easier to navigate.
 | 
				
			||||||
  version: 0.0.1
 | 
					  version: 0.0.1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
servers:
 | 
					servers:
 | 
				
			||||||
@ -24,6 +26,7 @@ paths:
 | 
				
			|||||||
    get:
 | 
					    get:
 | 
				
			||||||
      summary: list all users 
 | 
					      summary: list all users 
 | 
				
			||||||
      tags:
 | 
					      tags:
 | 
				
			||||||
 | 
					        - General
 | 
				
			||||||
        - SI
 | 
					        - SI
 | 
				
			||||||
      security:
 | 
					      security:
 | 
				
			||||||
        - bearer: []
 | 
					        - bearer: []
 | 
				
			||||||
@ -50,7 +53,10 @@ paths:
 | 
				
			|||||||
    get:
 | 
					    get:
 | 
				
			||||||
      summary: get informations about yourself 
 | 
					      summary: get informations about yourself 
 | 
				
			||||||
      tags:
 | 
					      tags:
 | 
				
			||||||
 | 
					        - General
 | 
				
			||||||
        - Users
 | 
					        - Users
 | 
				
			||||||
 | 
					      security:
 | 
				
			||||||
 | 
					        - bearer: []
 | 
				
			||||||
      responses:
 | 
					      responses:
 | 
				
			||||||
        '200':
 | 
					        '200':
 | 
				
			||||||
          description: Ok
 | 
					          description: Ok
 | 
				
			||||||
@ -58,9 +64,12 @@ paths:
 | 
				
			|||||||
            application/json:
 | 
					            application/json:
 | 
				
			||||||
              schema:
 | 
					              schema:
 | 
				
			||||||
                $ref: "#/components/schemas/User"
 | 
					                $ref: "#/components/schemas/User"
 | 
				
			||||||
 | 
					        '401':
 | 
				
			||||||
 | 
					          $ref: '#/components/responses/UnauthorizedError'
 | 
				
			||||||
    post:
 | 
					    post:
 | 
				
			||||||
      summary: Create user
 | 
					      summary: Create user
 | 
				
			||||||
      tags:
 | 
					      tags:
 | 
				
			||||||
 | 
					        - General
 | 
				
			||||||
        - Users
 | 
					        - Users
 | 
				
			||||||
      requestBody:
 | 
					      requestBody:
 | 
				
			||||||
        required: true
 | 
					        required: true
 | 
				
			||||||
@ -98,6 +107,7 @@ paths:
 | 
				
			|||||||
    patch:
 | 
					    patch:
 | 
				
			||||||
      summary: Change informations about yourself 
 | 
					      summary: Change informations about yourself 
 | 
				
			||||||
      tags:
 | 
					      tags:
 | 
				
			||||||
 | 
					        - General
 | 
				
			||||||
        - Users
 | 
					        - Users
 | 
				
			||||||
      security:
 | 
					      security:
 | 
				
			||||||
        - bearer: []
 | 
					        - bearer: []
 | 
				
			||||||
@ -123,6 +133,7 @@ paths:
 | 
				
			|||||||
    get:
 | 
					    get:
 | 
				
			||||||
      summary: Get user's informations 
 | 
					      summary: Get user's informations 
 | 
				
			||||||
      tags:
 | 
					      tags:
 | 
				
			||||||
 | 
					        - General
 | 
				
			||||||
        - Admin
 | 
					        - Admin
 | 
				
			||||||
      responses:
 | 
					      responses:
 | 
				
			||||||
        '200':
 | 
					        '200':
 | 
				
			||||||
@ -134,6 +145,7 @@ paths:
 | 
				
			|||||||
    patch:
 | 
					    patch:
 | 
				
			||||||
      summary: Alter user's informations 
 | 
					      summary: Alter user's informations 
 | 
				
			||||||
      tags:
 | 
					      tags:
 | 
				
			||||||
 | 
					        - General
 | 
				
			||||||
        - Admin
 | 
					        - Admin
 | 
				
			||||||
      security:
 | 
					      security:
 | 
				
			||||||
        - bearer: []
 | 
					        - bearer: []
 | 
				
			||||||
@ -152,6 +164,7 @@ paths:
 | 
				
			|||||||
    post:
 | 
					    post:
 | 
				
			||||||
      summary: Create new course 
 | 
					      summary: Create new course 
 | 
				
			||||||
      tags:
 | 
					      tags:
 | 
				
			||||||
 | 
					        - General
 | 
				
			||||||
        - Courses
 | 
					        - Courses
 | 
				
			||||||
        - Secretariat
 | 
					        - Secretariat
 | 
				
			||||||
      security: 
 | 
					      security: 
 | 
				
			||||||
@ -178,6 +191,7 @@ paths:
 | 
				
			|||||||
    get:
 | 
					    get:
 | 
				
			||||||
      summary: see courses informations 
 | 
					      summary: see courses informations 
 | 
				
			||||||
      tags:
 | 
					      tags:
 | 
				
			||||||
 | 
					        - General
 | 
				
			||||||
        - Courses
 | 
					        - Courses
 | 
				
			||||||
      responses:
 | 
					      responses:
 | 
				
			||||||
        '200':
 | 
					        '200':
 | 
				
			||||||
@ -195,6 +209,7 @@ paths:
 | 
				
			|||||||
    delete:
 | 
					    delete:
 | 
				
			||||||
      summary: delete a course 
 | 
					      summary: delete a course 
 | 
				
			||||||
      tags:
 | 
					      tags:
 | 
				
			||||||
 | 
					        - General
 | 
				
			||||||
        - Courses
 | 
					        - Courses
 | 
				
			||||||
        - Secretariat
 | 
					        - Secretariat
 | 
				
			||||||
      security: 
 | 
					      security: 
 | 
				
			||||||
@ -207,6 +222,7 @@ paths:
 | 
				
			|||||||
    patch:
 | 
					    patch:
 | 
				
			||||||
      summary: Change course options 
 | 
					      summary: Change course options 
 | 
				
			||||||
      tags:
 | 
					      tags:
 | 
				
			||||||
 | 
					        - General
 | 
				
			||||||
        - Secretariat
 | 
					        - Secretariat
 | 
				
			||||||
        - Courses
 | 
					        - Courses
 | 
				
			||||||
      security:
 | 
					      security:
 | 
				
			||||||
@ -249,6 +265,7 @@ paths:
 | 
				
			|||||||
    post:
 | 
					    post:
 | 
				
			||||||
      summary: Create a cursus
 | 
					      summary: Create a cursus
 | 
				
			||||||
      tags:
 | 
					      tags:
 | 
				
			||||||
 | 
					        - General
 | 
				
			||||||
        - cursus
 | 
					        - cursus
 | 
				
			||||||
      security: 
 | 
					      security: 
 | 
				
			||||||
        - bearer: []
 | 
					        - bearer: []
 | 
				
			||||||
@ -280,6 +297,7 @@ paths:
 | 
				
			|||||||
    get:
 | 
					    get:
 | 
				
			||||||
      summary: See Cursus's informations 
 | 
					      summary: See Cursus's informations 
 | 
				
			||||||
      tags:
 | 
					      tags:
 | 
				
			||||||
 | 
					        - General
 | 
				
			||||||
        - cursus
 | 
					        - cursus
 | 
				
			||||||
      responses:
 | 
					      responses:
 | 
				
			||||||
        '200':
 | 
					        '200':
 | 
				
			||||||
@ -297,6 +315,7 @@ paths:
 | 
				
			|||||||
    delete:
 | 
					    delete:
 | 
				
			||||||
      summary: Delete cursus
 | 
					      summary: Delete cursus
 | 
				
			||||||
      tags:
 | 
					      tags:
 | 
				
			||||||
 | 
					        - General
 | 
				
			||||||
        - cursus
 | 
					        - cursus
 | 
				
			||||||
      security: 
 | 
					      security: 
 | 
				
			||||||
        - bearer: []
 | 
					        - bearer: []
 | 
				
			||||||
@ -308,6 +327,7 @@ paths:
 | 
				
			|||||||
    patch:
 | 
					    patch:
 | 
				
			||||||
      summary: Modify cursus 
 | 
					      summary: Modify cursus 
 | 
				
			||||||
      tags:
 | 
					      tags:
 | 
				
			||||||
 | 
					        - General
 | 
				
			||||||
        - cursus
 | 
					        - cursus
 | 
				
			||||||
      security:
 | 
					      security:
 | 
				
			||||||
        - bearer: []
 | 
					        - bearer: []
 | 
				
			||||||
@ -377,7 +397,7 @@ components:
 | 
				
			|||||||
        "firstName": "John",
 | 
					        "firstName": "John",
 | 
				
			||||||
        "email": "John.Doe@example.com",
 | 
					        "email": "John.Doe@example.com",
 | 
				
			||||||
        "address": {
 | 
					        "address": {
 | 
				
			||||||
          "address": "Rue de Tounais 42",
 | 
					          "address": "Rue de Tournais 42",
 | 
				
			||||||
          "country": "BE"},
 | 
					          "country": "BE"},
 | 
				
			||||||
        "birthDate": "1941-02-22",
 | 
					        "birthDate": "1941-02-22",
 | 
				
			||||||
        "staffMember": true,
 | 
					        "staffMember": true,
 | 
				
			||||||
@ -392,7 +412,7 @@ components:
 | 
				
			|||||||
          description: Follow the ISO-3166-1 alpha-2 standard.
 | 
					          description: Follow the ISO-3166-1 alpha-2 standard.
 | 
				
			||||||
      example:
 | 
					      example:
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
          "address": "Rue de Tounais 42",
 | 
					          "address": "Rue de Tournais 42",
 | 
				
			||||||
          "country": "BE"
 | 
					          "country": "BE"
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    Course:
 | 
					    Course:
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user