This app is a small mimicking version of Stackoverflow where users can create accounts, log in, post questions, answer available questions, upvote questions
-
Set up virtualenv
virtualenv venv
-
Activate virtualenv
source venv/bin/activate
-
Install dependencies
pip install -r requirements.txt
-
Run the app
python run.py
Method | Endpoint | Description |
---|---|---|
GET |
/api/v1/questions |
View All questions created in the app |
POST |
/api/v1/questions |
Post a question |
GET |
/api/v1/questions/<int:questionId> |
Fetch a specific question |
POST |
/api/v1/auth/signup |
Register a user |
POST |
/api/v1/auth/login |
Login a user |
POST |
api/v1/questions/<int:questionId>/answers |
Post an answer to a question |
DELETE |
api/v1/questions/<int: questionId> |
Deletes a question |
PUT |
api/v1/questions/<questionId>/answers/<answerId> |
Mark an answer as accepted or update an answer. |