-
Notifications
You must be signed in to change notification settings - Fork 0
API manual
π Access to the API Documentation
πΆ Step by Step Tour
- π’ Step 1: Access the API Documentation
- π‘ Step 2: Understand the Endpoints
- π΅ Step 3: Make a Test Request with Swagger UI
π How the Routes Are Structured
π More Information to Understand the API
By default you can access API documentation at https://$BACKEND_HOST/api with :
Open your web browser and go to the URL for the Swagger documentation: https://$BACKEND_HOST/api.
Swagger organizes endpoints by functionality, with each group representing different features or resources in your API (Auth, link-group-project, Tags etc...).
For each endpoint, youβll see:
- Description: A brief overview of what the endpoint does.
- Method: The HTTP method (e.g., GET, POST, PUT, DELETE).
- Parameters: Any data or identifiers required for the endpoint (such as IDs).
- Response Examples: Expected responses, including data structure and status codes.
- Go to the the [POST]
/link-user-group/user - extend it with the left arrow
- click
Try it out - change
mail-name-password - Click
Execute
- Confirm your email address by clicking the link sent to your inbox.
- Go to the [POST]
/auth/login - extend it with the left arrow
- click
Try it out - Change the
mailto themailyou used on theCreate an Accountsection - Change the
passwordto thepasswordyou used on theCreate an Accountsection - Click
Execute
The response should display an access_token

- Add the token into the [Authorize] section at the top right of the documentation
- Go to the [GET]
/auth/profile - extend it with the left arrow
- click
Try it out - Click
Execute
Create a project :
- Go to the [POST]
/link-group-project/project - extend it with the left arrow
- click
Try it out - Change the
idto the id displayed by theauth/profile response - Click
Execute
π₯ you have created your own project !
Find another user information :
- Go to the [GET]
/link-user-group/looking-for-user/{partialString} - extend it with the left arrow
- click
Try it out - Change the
partialStringto the user's name that you're looking for - Click
Execute
Share The project previously created to the user previously found :
- Go to the [POST]
/link-group-project/project/add - extend it with the left arrow
- click
Try it out - Change the
projectIdto the project previously created - Change the
groupIdto the user's userGroup Id that you previously retrieve from the looking for user request - Click
Execute
π₯³ Well done !
Use curl to make a request :
curl -X GET "https://$BACKEND_HOST/api
-H "Authorization: Bearer your_token_here"
-H "accept: application/json"
If an error occurs, the response will include a status code and error message:
- 400: Bad Request β check parameters or data structure.
- 401: Unauthorized β make sure youβre logged in or include the correct token.
- 404: Not Found β double-check the endpoint and resource IDs.
- 500: Contact support immediately
Most of the routes are named with this logic :
if you want to use/impact entity A or B it's mostly on the road link-A-B/ActionYouWantToPerform
Each user on the platform have there own userGroup, and this userGroup is used to link the user to other entities. So If you want to share a media to another user you need his userGroupId