Development: Create Login API #47
Labels
Category: Coding
Changes to code base or refactored code that doesn't fix a bug.
Program: GSOC
Related to work completed during the Google Summer of Code Program.
Type: Enhancement
New feature or request.
Description
As a student, I need to have the ability to login to BIT. For this the API on the backend should be available.
Mocks
NA
Acceptance Criteria
Create an API for user login for the BIT backend. The API would take a username/password combination as input and return a response code based on the validity of the data in the database. Majorly, 2 outcomes are possible: Successful (200 OK), or Unsuccessful (40x) (x represents one of the error codes like 400, 403, etc.)
Alternatives for testing the API: CuRL/Python requests
Update [Required]
Flask POST request for user login
Takes user attributes as a json (eventually this will be sent through the UI)
Response handling: 200 (Successful Process), 401 (unauthorized), 403 (forbidden), 400 (bad request), 500 (internal server error)
Test the API using Postman (or any alternative)
Enhancement to Update [Optional]
Definition of Done
All of the required items are completed.
Approval by 2 mentors.
The text was updated successfully, but these errors were encountered: