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

API Endpoints for Backend #29

Open
ClaraConner opened this issue Mar 1, 2024 · 1 comment
Open

API Endpoints for Backend #29

ClaraConner opened this issue Mar 1, 2024 · 1 comment
Assignees
Labels

Comments

@ClaraConner
Copy link
Collaborator

No description provided.

@ClaraConner
Copy link
Collaborator Author

Can view SyllaBye Endpoints here: https://github.com/acm-projects/SyllaBye/blob/main/Backend/server.js

We need endpoints which let us execute actions for the user. So, walk yourself through using the application as if you were the user, and create endpoints for each of those actions. We will be connecting this with frontend eventually so you can kinda think of it like that

For example:
The user wants to view the products of a specific market

  1. The user selects a market
  2. The Frontend will likely have the market ID associated with the button
  3. We take that ID and we use it to GET all the products from the database associated with it.
  4. We return the complete list of products to frontend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants