Skip to content

API REST Node/Express, architecture multi-couche avec injection de dépendances. Magasin de location de livres

Notifications You must be signed in to change notification settings

TomBous/bookstore

Repository files navigation

Project BookStore API

Start

git pull origin main

npm start

Endpoints

Public routes

GET

  • /genres = get all genres
  • /categories => get all categories
  • /books => get all books

Recherche dynamique de livres

  • /books/search?genre=4&author=Julia%20Quinn&category=2&title=titre%20du%20livre

Les paramètres peuvent être combinés ou pas, en utilisant des &. Les paramètres sont les suivants :

- `author` : STRING (%20 => white space)
- `titre` : STRING
- `category` : STRING
- `genre` : STRING

POST

Connexion

  • /login
{
	"email": "dupon@gmail.com",
	"password": "dupon12345"
}

Incription

  • /users
{
	"firstname": "Pierre",
	"lastname": "Dupon",
	"email": "dupon@gmail.com",
	"password": "dupon12345"
}

Private routes

GET

  • /users => get all users

POST

Data

Users

{
	"firstname": "Pierre",
	"lastname": "Dupon",
	"email": "dupon@gmail.com",
	"password": "dupon12345"
}

Trello

https://trello.com/c/NrS8xrel/1-mcd

About

API REST Node/Express, architecture multi-couche avec injection de dépendances. Magasin de location de livres

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •