This is an api that enables stack overflow functionality without databases, DS only
- Get all questions.
- Get a question.
- Post a question.
- Post an answer to a question.
EndPoint | Functionality |
---|---|
POST /auth/signup | register users |
POST /auth/login | login user |
GET /questions | Fetch all questions |
GET /questions/< questionId > | Fetch a specific question |
POST /questions | Post a question |
Delete /questions/< questionId > | Delete a question |
POST /questions/< questionId >/answers | Post an answer to a question |
PUT /questions/< questionId >/answers/< answerId > | Mark an answer as accepted or update an answer. |
- comments to add
- Install python then using pip instal .. install flask
- clone the repo
- Ensure that postman is installed
- From your terminal locate the repo and run: python run.py
- open postman and test the endpoint
- Install python then using pip instal .. install flask
- clone the repo
- From your terminal Ensure that the virtual environment is activated
- From the terminal locate the repo and run: python run.py
- Python 3.6
- Flask framework