PUBLIC FREE APIS

Public API endpoints for your frontend projects, No CORS issue

Base URL

(Current server)
GET/api/article/{slug}

Retrieve a single article by its slug. The slug can be any arbitrary value.

Parameters

NameLocated inDescriptionRequired
slugpathArticle slug (any string value)Yes

Responses

200Successful response
{
  "slug": "string",
  "title": "string",
  "subtitle": "string",
  "image": "string",
  "author": {
    "name": "string",
    "avatar": "string",
    "email": "string"
  },
  "content": "string",
  "dateCreated": "string"
}
GET/api/article

Retrieve a paginated list of articles.

Parameters

NameLocated inDescriptionRequired
pagequeryPage number (default: 1)No
limitqueryItems per page (default: 10, max: 100)No

Responses

200Successful response
[
  {
    "slug": "string",
    "title": "string",
    "subtitle": "string",
    "image": "string",
    "author": {
      "name": "string",
      "avatar": "string",
      "email": "string"
    },
    "content": "string",
    "dateCreated": "string"
  }
]