Skip to content

Authentification API

Liam Boudadi edited this page Feb 5, 2025 · 13 revisions

Listing existing formations, quizzes and videos

POST / (change the user's password)

Parameters

None

Responses

http code content-type response
200 string Password changed successfully
400 string New password does not meet security requirements
401 string Current password is incorrect

Example cURL

 curl -L -X POST 'http://localhost:8080/authenticate/change-password' -H 'Authorization: Bearer {jwt} --data'
GET /{formationId} (gets details about the formation requested)

Parameters

name type data type description
formationId required int The specific formation id

Responses

http code content-type response
200 json {"id": {int}, "name": {string}, "description": {string}}
404 N/A

Example cURL

 curl -L -X GET 'http://localhost:8080/formation/{formationId}' -H 'Authorization: Bearer {jwt}'

Clone this wiki locally