openapi-dev #3

Merged
LeoMoulin merged 6 commits from openapi-dev into master 2023-12-11 10:23:15 +01:00
Showing only changes of commit b50e0db3fc - Show all commits

View File

@ -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
tonitch marked this conversation as resolved
Review

good

good
servers: servers:
@ -51,6 +53,8 @@ paths:
summary: get informations about yourself summary: get informations about yourself
tags: tags:
- Users - Users
security:
- bearer: []
responses: responses:
'200': '200':
description: Ok description: Ok
@ -58,6 +62,8 @@ 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:
@ -377,7 +383,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 +398,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: