n30w / Darkspace

Academic project management platform for SE-2024
MIT License
0 stars 0 forks source link

Implementing API Endpoints in the Frontend #21

Closed reesedychiao closed 5 months ago

n30w commented 5 months ago

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 commented 5 months ago

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

n30w commented 5 months ago

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

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 commented 5 months ago

closed by #29