{"action":"created","issue":{"url":"https://api.github.com/repos/andela/ah-backend-stark/issues/14","repository_url":"https://api.github.com/repos/andela/ah-backend-stark","labels_url":"https://api.github.com/repos/andela/ah-backend-stark/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/andela/ah-backend-stark/issues/14/comments","events_url":"https://api.github.com/repos/andela/ah-backend-stark/issues/14/events","html_url":"https://github.com/andela/ah-backend-stark/pull/14","id":366307825,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIwMDEyODMx","number":14,"title":"Add Creation and Fetching Of Articles","user":{"login":"Edward-K1","id":38511070,"node_id":"MDQ6VXNlcjM4NTExMDcw","avatar_url":"https://avatars0.githubusercontent.com/u/38511070?v=4","gravatar_id":"","url":"https://api.github.com/users/Edward-K1","html_url":"https://github.com/Edward-K1","followers_url":"https://api.github.com/users/Edward-K1/followers","following_url":"https://api.github.com/users/Edward-K1/following{/other_user}","gists_url":"https://api.github.com/users/Edward-K1/gists{/gist_id}","starred_url":"https://api.github.com/users/Edward-K1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Edward-K1/subscriptions","organizations_url":"https://api.github.com/users/Edward-K1/orgs","repos_url":"https://api.github.com/users/Edward-K1/repos","events_url":"https://api.github.com/users/Edward-K1/events{/privacy}","received_events_url":"https://api.github.com/users/Edward-K1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-03T12:08:39Z","updated_at":"2018-10-04T11:19:52Z","closed_at":null,"author_association":"COLLABORATOR","pull_request":{"url":"https://api.github.com/repos/andela/ah-backend-stark/pulls/14","html_url":"https://github.com/andela/ah-backend-stark/pull/14","diff_url":"https://github.com/andela/ah-backend-stark/pull/14.diff","patch_url":"https://github.com/andela/ah-backend-stark/pull/14.patch"},"body":"### What does this PR do?\r\nIt adds functionality for creating and retrieving articles to the project.\r\n\r\n### Description of the tasks to be completed.\r\n\r\n- Login and copy the token generated\r\n\r\n- Add a header called **Token** to postman and equate it to the copied token\r\n\r\n- Create an article by supplying the required fields as shown in the screenshots below\r\n\r\n### How can this be manually tested?\r\n```\r\ngit checkout ft-create-article\r\nsource <venv>/bin/activate\r\npip install -r requirements.txt\r\npython manage.py makemigrations\r\npython manage.py migrate\r\npython manage.py runserver\r\n```\r\n\r\nTo create an article, got to the **/users/login/** endpoint and copy the token generated. Add a header called **Token** to postman and equate it the token copied from the login endpoint.\r\n\r\n**Run the tests:**\r\n`python manage.py test`\r\n\r\n**Screenshot for creating an article**\r\n<img width=\"1392\" alt=\"create_article\" src=\"https://user-images.githubusercontent.com/38511070/46407815-c733bf80-c718-11e8-9a07-e6ca91f283bb.png\">\r\n\r\n**Screenshot for getting all articles**\r\n<img width=\"1392\" alt=\"get_all_articles\" src=\"https://user-images.githubusercontent.com/38511070/46407842-e03c7080-c718-11e8-9990-08b75c37fb7e.png\">\r\n\r\n**Screenshot for getting a single article**\r\n<img width=\"1392\" alt=\"get_single_article\" src=\"https://user-images.githubusercontent.com/38511070/46407843-e0d50700-c718-11e8-99a2-fb90d06e6918.png\">\r\n\r\n**Screenshot showing required headers for creating an article**\r\n<img width=\"1392\" alt=\"required headers\" src=\"https://user-images.githubusercontent.com/38511070/46408410-bc7a2a00-c71a-11e8-9e3e-2ed97a1619c8.png\">\r\n\r\n**Screenshot of running server**\r\n<img width=\"1061\" alt=\"running server\" src=\"https://user-images.githubusercontent.com/38511070/46408350-89d03180-c71a-11e8-9aa8-dd06c2808c94.png\">\r\n\r\n\r\n### Pivotal Tracker ID:\r\n**#160583999**"},"comment":{"url":"https://api.github.com/repos/andela/ah-backend-stark/issues/comments/426981930","html_url":"https://github.com/andela/ah-backend-stark/pull/14#issuecomment-426981930","issue_url":"https://api.github.com/repos/andela/ah-backend-stark/issues/14","id":426981930,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjk4MTkzMA==","user":{"login":"coveralls","id":2354108,"node_id":"MDQ6VXNlcjIzNTQxMDg=","avatar_url":"https://avatars1.githubusercontent.com/u/2354108?v=4","gravatar_id":"","url":"https://api.github.com/users/coveralls","html_url":"https://github.com/coveralls","followers_url":"https://api.github.com/users/coveralls/followers","following_url":"https://api.github.com/users/coveralls/following{/other_user}","gists_url":"https://api.github.com/users/coveralls/gists{/gist_id}","starred_url":"https://api.github.com/users/coveralls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coveralls/subscriptions","organizations_url":"https://api.github.com/users/coveralls/orgs","repos_url":"https://api.github.com/users/coveralls/repos","events_url":"https://api.github.com/users/coveralls/events{/privacy}","received_events_url":"https://api.github.com/users/coveralls/received_events","type":"User","site_admin":false},"created_at":"2018-10-04T11:19:52Z","updated_at":"2018-10-04T11:19:52Z","author_association":"NONE","body":"## Pull Request Test Coverage Report for [Build 156](https://coveralls.io/builds/19346247)\n\n* **24** of **59**   **(40.68%)**  changed or added relevant lines in **1** file are covered.\n* No unchanged relevant lines lost coverage.\n* Overall coverage increased (+**0.01%**) to **33.854%**\n\n---\n\n|  Changes Missing Coverage | Covered Lines | Changed/Added Lines | % |\n| :-----|--------------|--------|---: |\n| [authors/apps/articles/models.py](https://coveralls.io/builds/19346247/source?filename=authors%2Fapps%2Farticles%2Fmodels.py#L29) | 24 | 59 | 40.68%\n<!-- | **Total:** | **24** | **59** | **40.68%** | -->\n\n\n|  Totals | [![Coverage Status](https://coveralls.io/builds/19346247/badge)](https://coveralls.io/builds/19346247) |\n| :-- | --: |\n| Change from base [Build 128](https://coveralls.io/builds/19323927): |  0.01% |\n| Covered Lines: | 18760 |\n| Relevant Lines: | 55414 |\n\n---\n##### 💛  - [Coveralls](https://coveralls.io)\n"}}
{"actor":{"display_login":"coveralls"}}