Supported Formats

json

Errors

Code Description
404 Not Found
500 Internal Server error

Examples

DEFAULT without tag parameter

Request
{
  per_page: 10,
  page: 1
}

Response
{
  "data": [
    {
      "id": 1,
      "title": "Article 1",
      "author": "John Doe",
      "excerpt": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
      "link": "https://news.lfa.com/article-1",
      "thumbnail": "https://news.lfa.com/thumbnail.jpg"
    },
    {
      "id": 2,
      "title": "Article 2",
      "author": "Jane Doe",
      "excerpt": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
      "link": "https://news.lfa.com/article-2",
      "thumbnail": "https://news.lfa.com/thumbnail.jpg"
    }
  ],
  "pagination": {
      "per_page": 10,
      "page": 1,
      "total_pages": 1,
      "total": 2
  }
}

Params

Param name Description
per_page
optional

Number of records per page

Validations:

  • Must be a Integer

page
optional

Page number

Validations:

  • Must be a Integer