Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Back-end Route| products [ADMIN | CLIENT] | GET #9

Closed
2 tasks
hassanannajjar opened this issue Sep 10, 2020 · 0 comments
Closed
2 tasks

Back-end Route| products [ADMIN | CLIENT] | GET #9

hassanannajjar opened this issue Sep 10, 2020 · 0 comments

Comments

@hassanannajjar
Copy link
Collaborator

Back-end Route: products

Get all products from the database

Route : /products

Method : get


Main Things :

  • Database
  • Response

Database :

  • get all products from the database

Response :

Response may be success or error :

  • Error :
    {
    error: "bad request",
    "Status-Code": 400
    }
  • Success
    {
    data: { message: "products loaded successfully" }
    "Status-Code": 200    
    }
@hassanannajjar hassanannajjar changed the title Back-end Route| products [ADMIN] | GET Back-end Route| products [ADMIN | CLIENT] | GET Sep 10, 2020
@ahmadysalah ahmadysalah self-assigned this Sep 10, 2020
ahmadysalah added a commit that referenced this issue Sep 10, 2020
- get all products controller function
- client router
- add client router to index

* toDo
* bugs
#9
ahmadysalah added a commit that referenced this issue Sep 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants