Skip to content

remimoul/workshop1-back-end

 
 

Repository files navigation

Workshop 1 MDS M1 - Refonte Retrometroid - API

Installation

$ npm install

Running the app using embedded server

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Running the app using Docker

$ docker-compose up

Routes

POST /category/add

Add a new category to the database.

Body

{
  
}

Response

{
  
}

GET /category/all

Get all categories from the database.

Response

{

}

GET /category/:id

Get a category by id.

Response

{

}

PATCH /category/:id

Update a category by id.

Body

{

}

Response

{

}

DELETE /category/:id

Delete a category by id.

Response

{

}

POST /accessory/add

Add a new accessory to the database.

Body

{

}

Response

{

}

GET /accessory/all

Get all accessories from the database.

Response

{

}

GET /accessory/:id

Get an accessory by id.

Response

{

}

PATCH /accessory/:id

Update an accessory by id.

Body

{

}

Response

{

}

DELETE /accessory/:id

Delete an accessory by id.

Response

{

}

GET /images/:imageName

Get an image by name.

Response

The image is returned in the response.

GET /images/front/:imageName

Get a front image by name.

Response

The image is returned in the response.

GET /images/back/:imageName

Get a back image by name.

Response

The image is returned in the response.

GET /images/side/:imageName

Get a side image by name.

Response

The image is returned in the response.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.1%
  • Other 0.9%