Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API request response format for listing news #4

Open
sakethramanujam opened this issue Oct 22, 2019 · 3 comments
Open

API request response format for listing news #4

sakethramanujam opened this issue Oct 22, 2019 · 3 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request hacktoberfest Hacktoberfest 2019 Label

Comments

@sakethramanujam
Copy link
Member

Request

GET /news
Authorization: Bearer <token>

Response

200 OK
{ 
    "articles": [
                      {  "title"       : '...',
                         "source"  : '....',
                         "topic"     :'....',
                          "url"        :'....'
                       },
                      { ... },
                  ],
    "next": "url"
}
---
404 Not Found
@sakethramanujam sakethramanujam added documentation Improvements or additions to documentation enhancement New feature or request hacktoberfest Hacktoberfest 2019 Label labels Oct 22, 2019
@sakethramanujam
Copy link
Member Author

sakethramanujam commented Oct 22, 2019

@rakhi2104 you can use this format to mock requests and go on with UI on your end. Also, comment here regarding setup details.

@Pac23 would like your comments here.

@mm-git01
Copy link

this response looks fine to me, tags should also be returned in a list format.

@sakethramanujam
Copy link
Member Author

i named tag as topic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request hacktoberfest Hacktoberfest 2019 Label
Projects
None yet
Development

No branches or pull requests

2 participants