The API allows users to retrieve all of the users of the application in micro service through a REST architecture. This API will be mainly used for registed Accounts.
It will also create own users to recover data to the platform but is in no way related to the users collected via the crawling of profiles on Social Networks.
Allows the creation of a single user.
| Requires authentication ? | No |
| Who can use it ? | Owner and users |
| Response formats | application/json |
- HTTP request : POST → user/create
{
'firstname': String, // Optional
'lastname': Number, // Optional
'age': Number, // Optional
'city': String // Optional
} {
id: Object_ID,
firstname: String,
lastname: String,
age: Number,
city: String
}Show an user by id.
| Requires authentication ? | No |
| Who can use it ? | Owner and users |
| Response formats | application/json |
- HTTP request : GET → user/show/:id
{
id: String // Required
} {
id: Object_ID,
firstname: String,
lastname: String,
age: Number,
city: String
}- node 18
- npm or yarn or pnpm
- git
- mongodb (please configure config.js for link mongodb)
npm i
npm run prod
npm run dev
API REST développée avec Express.js et Mongoose permettant de gérer des albums et des photos, avec relations entre les deux.
npm install
npm start