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

Implementing API Endpoints in the Frontend #21

Closed
reesedychiao opened this issue Mar 12, 2024 · 4 comments
Closed

Implementing API Endpoints in the Frontend #21

reesedychiao opened this issue Mar 12, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@reesedychiao
Copy link
Collaborator

No description provided.

@reesedychiao reesedychiao self-assigned this Mar 12, 2024
@n30w n30w added the enhancement New feature or request label Mar 12, 2024
@n30w
Copy link
Owner

n30w commented Mar 12, 2024

Its good you are making habit of creating issues. Next time try and keep the naming scheme consistent with the commit verb scheme. In this instance, "implementing" would be "implement". Good stuff regardless.

@n30w
Copy link
Owner

n30w commented Mar 14, 2024

This issue is related to #26 . Merge will close both.

@n30w
Copy link
Owner

n30w commented Mar 14, 2024

@reesedychiao For the login, the frontend should send a POST request with the following JSON values:

  • Username
  • Password
  • Email
  • Netid

The backend will respond with everything sent to it except for the password. If there is an error, do not log the user in. The error will be of the status code 401 in the HTTP header. This is how you will know there is an error. In the JSON body of the backend's response, there will also be a reason for the error.

n30w pushed a commit that referenced this issue Mar 18, 2024
Co-authored-by: AlligatorW <[email protected]>
Co-authored-by: n30w <[email protected]>

closes #26 and #21
@n30w
Copy link
Owner

n30w commented Mar 18, 2024

closed by #29

@n30w n30w closed this as completed Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants