Skip to content

cheick9/tp-api-agregation

Repository files navigation

API Users

Overview

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.

[POST] Create user

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

Parameters :

{
  'firstname': String, // Optional
  'lastname': Number, // Optional
  'age': Number, // Optional
  'city': String // Optional
}

Response :

  {
    id: Object_ID,
    firstname: String,
    lastname: String,
    age: Number,
    city: String
  }

[POST] Show user

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

Parameters :

{
  id: String // Required
}

Response :

  {
    id: Object_ID,
    firstname: String,
    lastname: String,
    age: Number,
    city: String
  }

Requirements

  • node 18
  • npm or yarn or pnpm
  • git
  • mongodb (please configure config.js for link mongodb)

Install

npm i

Production mode

npm run prod

Dev mode

npm run dev

TP API Albums & Photos

API REST développée avec Express.js et Mongoose permettant de gérer des albums et des photos, avec relations entre les deux.

Lancer le projet

npm install
npm start

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published