andela / ah-kgl-wakanda-backend

0 stars 5 forks source link

#165020127 Pagination support for ratings #20

Closed gracelungu closed 5 years ago

gracelungu commented 5 years ago

What does this PR do?

This PR adds a pagination support fo ratings

Description of Task to be completed?

~ Add the offset and limit query parameters to the route and URL ~ Write tests for pagination.

How should this be manually tested?

~ First clone the repo https://github.com/andela/ah-kgl-wakanda-backend.git . ~ Install the required dependencies using npm install && npm start ~ In the web browser open the API doc at localhost:3000/doc for reference ~ Use postman to test, with specifications found in the documentation. ~ The link contains two queries offset and limit to set the range.

Any background context you want to provide?

N/A

What are the relevant pivotal tracker stories?

165020127

Screenshots (if appropriate)

N/A

Questions:

N/A