andela / ah-infinity-stones

BSD 3-Clause "New" or "Revised" License
0 stars 3 forks source link

#161966916 Implement Article CRUD #42

Closed rkemmy closed 5 years ago

rkemmy commented 5 years ago

What does this PR do?

Implement the article CRUD

Description of Task to be completed

Implement endpoints for

How should this be manually tested?


Check your email and activate the account. Use the registration token to access the following endpoints:
- `http://127.0.0.1:8000/api/articles` - Post an article and get all articles
-`http://127.0.0.1:8000/api/articles/<slug>` - To get a specific article to either update or delete.
*  Run tests`python3 manage.py test authors.apps.articles.tests.test_views`

### Relevant pivotal tracker stories
[Delivers #161966916](https://www.pivotaltracker.com/story/show/161966916)

### Screenshots
![image](https://user-images.githubusercontent.com/17976289/50316232-d4b24780-04c6-11e9-8562-6fe4304e3e94.png)

![image](https://user-images.githubusercontent.com/17976289/50316296-19d67980-04c7-11e9-8e52-20cc911783b3.png)

![image](https://user-images.githubusercontent.com/17976289/50316359-53a78000-04c7-11e9-88de-6d0757dbc09a.png)

![image](https://user-images.githubusercontent.com/17976289/50316420-95d0c180-04c7-11e9-9e97-a1f0259cf056.png)

![image](https://user-images.githubusercontent.com/17976289/50316432-a3864700-04c7-11e9-8014-bb36d7ad1d9d.png)

![image](https://user-images.githubusercontent.com/17976289/50315964-d3344f80-04c5-11e9-942a-3dc3f6d081ee.png)
codeplus254 commented 5 years ago

Hey @rkemmy you could change the key 'user' in the article response to 'author' to make it more descriptive. Great work!

rkemmy commented 5 years ago

Hey @rkemmy you could change the key 'user' in the article response to 'author' to make it more descriptive. Great work! Thanks for pointing that out. I made the change.

r-wambui commented 5 years ago

@rkemmy Workon squashing commit, the commit we have currently is not related to the PR.

r-wambui commented 5 years ago

@rkemmy rebase develop and ensure that the tests on Articles CRUD are passing on travis.

rkemmy commented 5 years ago

@r-wambui I edited Leo's commit. I think that's why that happened but I will create a new commit.

codeclimate[bot] commented 5 years ago

Code Climate has analyzed commit 53695f57 and detected 7 issues on this pull request.

Here's the issue category breakdown:

Category Count
Duplication 7

View more on Code Climate.