Skip to content

Conversation

krmroland
Copy link
Owner

What does this PR do?

It adds REST end points for the Answer resource to the stackoverflow-lite API

Description of Task to be completed?

Have the following 5 API REST endpoints working

  • GET /api/v1.0/questions/<int:id>/answers
  • POST /api/v1.0/questions/<int:id>/answers
  • GET /api/v1.0/questions/<int:id>/answers/<int:id>
  • UPDATE /api/v1.0/questions/<int:id>/answers/<int:id>
  • DELETE /api/v1.0/questions/<int:id>/answers/<int:id>

How should this be manually tested?

After cloning this repo locally to your machine, you can do one of the following;

    • Activate a virtual environment
    • run pip3 install requirements.txt to have the packages installed
    • run pytest
  1. Test Each of the end points above using Postman with the following headers set;
    • key:content-type value:application/json

What are the relevant pivotal tracker stories?

@coveralls
Copy link

Pull Request Test Coverage Report for Build 32

  • 30 of 30 (100.0%) changed or added relevant lines in 5 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 27: 0.0%
Covered Lines: 70
Relevant Lines: 70

💛 - Coveralls

@krmroland krmroland merged commit a4a8f89 into develop Aug 20, 2018
@krmroland krmroland deleted the feature-question-answer branch August 21, 2018 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants