View Code? Open in Web Editor
NEW
Exposer une API REST pour BileMo, une entreprise spécialisée dans la vente de smartphones en B2B. Objectif : fournir à toutes les plateformes qui le souhaitent l’accès au catalogue via une API. Voir les issues fermées pour plus de détails. (https://github.com/ashk74/P7_bilemo/issues)
p7_bilemo's People
Contributors
Watchers
p7_bilemo's Issues
Context
BileMo is a company offering a wide selection of high-end cell phones
Sell exclusively in B2B
Provide access to the catalog via an API to all platforms that want it
Requirements
Consult the list of BileMo products
Consult the details of a BileMo product
Consult the list of registered users linked to a client on the website
Consult the details of a registered user linked to a client
Add a new user linked to a customer
Delete a user added by a customer
Specifications
Create private API REST using JWT authentication
Respect the constraints of Richardson's maturity model
Level 1 : Resources
Level 2 : HTTP verbs
Level 3 : Hypermedia controls
Serve data in JSON
Use HTTP cache
Pagination of users and products
Generate API documentation with Nelmio
Endpoint
Description
GET /api/login_check
Get a JWT token for stateless authentication
GET /api/products
Get the list of products
GET /api/products/{productID}
Get the details of a product by ID {productID}
GET /api/users
Get the list of users owned by the connected customer
GET /api/users/{userID}
Get the details of the user with the ID {userID}
POST /api/users
Add a user
DELETE /api/users/{userID}
Delete the user with the ID {userID}