~ Add the read attribute to the article, to count the reads.
~ Get the read stat only if the article belongs to the user.
~ Write tests for the read stats endpoint.
How should this be manually tested?
This can be tested using postman and the API documentation for reference.
~ 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 endpoint returns the article read stats.
What does this PR do?
This PR gives to the user to see the read stats.
Description of Task to be completed?
~ Add the read attribute to the article, to count the reads. ~ Get the read stat only if the article belongs to the user. ~ Write tests for the read stats endpoint.
How should this be manually tested?
This can be tested using postman and the API documentation for reference. ~ 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 endpoint returns the article read stats.
Any background context you want to provide?
N/A
What are the relevant pivotal tracker stories?
165020141
Screenshots (if appropriate)
Questions:
N/A