Access http://127.0.0.1:8000 through postman and test by:
POST /api/users/ - Create account with AH
Check your email and activate the account. Login with the endpoint below:
POST /api/users/login - Login to AH
Use the token generated on login to create an article POST /api/articles
{
"title": "How to make it rain",
"description": "Ever wonder how?",
"body": "You have to pray",
"tag": ["rain"]
}
- Note the article slug generated after successfully creating an article. In this case, it would be `how-to-make-it-rain`. Access the specific article by `GET api/articles/how-to-make-it-rain`
- You should see the author's email.
#### What are the relevant pivotal tracker stories?
[#163368898](https://www.pivotaltracker.com/story/show/163368898)
#### Screenshots
<img width="1433" alt="screenshot 2019-01-21 at 21 04 07" src="https://user-images.githubusercontent.com/16904946/51491716-3fa1b780-1dc0-11e9-9274-a6d9a78160af.png">
What does this PR do?
Description of Task to be completed?
How should this be manually tested?
git clone -b ch-add-email-to-authors-data-163368898 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
through postman and test by:POST /api/users/
- Create account with AH Check your email and activate the account. Login with the endpoint below:POST /api/users/login
- Login to AHPOST /api/articles
}