dhanajeane79 / Compassionate-Care-Emporium

Capstone Project
0 stars 0 forks source link

Review API Documentation #1

Closed dhanajeane79 closed 1 year ago

dhanajeane79 commented 1 year ago

Read through Fake Store API to get an understanding of what info is provided

dhanajeane79 commented 1 year ago

DOD: Understand Endpoints

URL Format: ${BASE_URL}/${ROUTE}/ ?/${ROUTE_ID} ?/${CATEGORY} ?/${ITEM_TYPE} ?{QUERY}

Post Endpoints:

GET Endpoints:

//Routes: (What I think would logically make routes/pages)
- `${BASE_URL}/products`                    // Get all products
- `${BASE_URL}/products/:productId`         // Get product by id
- `${BASE_URL}/carts/:cartId`               // Get cart by id  *Protect*
- `${BASE_URL}/users/:userId`               // Get user by id  *Protect*

Patch/Put Endpoints:

Delete Endpoints: Protect

dhanajeane79 commented 1 year ago

Complete