Check your email and activate account. Use the registration token to acess the following endpoints:
http://127.0.0.1:8000/api/articles - Post an article
http://127.0.0.1:8000/api/articles/<art_slug>/like-dislike - like or dislike the article created.
Note To know whether you like an article you must be logged in when fetching it.
Run testspython3 manage.py test authors.apps.articles.tests.test_like_article
What does this PR do?
Description of Task to be completed?
How should this be manually tested?
git clone -b bg-fix-likesdislikes-bugs-162947590 https://github.com/andela/ah-infinity-stones
and$ cd ah-infinity-stones
virtualenv -p python3 venv
$ source venv/bin/activate
$ pip3 install -r requirements.txt
to install the dependenciesActivate the env variables by
$source .env
.$ python3 manage.py migrate
$ python3 manage.py runserver
http://127.0.0.1:8000/api/users/
through Postman, provide inputs in the following format and create account.Check your email and activate account. Use the registration token to acess the following endpoints:
http://127.0.0.1:8000/api/articles
- Post an articlehttp://127.0.0.1:8000/api/articles/<art_slug>/like-dislike
- like or dislike the article created. Note To know whether you like an article you must be logged in when fetching it.python3 manage.py test authors.apps.articles.tests.test_like_article
What are the relevant pivotal tracker stories?
#162947590
Screenshots