Base URL
(Current server)
GET
/api/article/{slug}Retrieve a single article by its slug. The slug can be any arbitrary value.
Parameters
| Name | Located in | Description | Required |
|---|---|---|---|
| slug | path | Article 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/articleRetrieve a paginated list of articles.
Parameters
| Name | Located in | Description | Required |
|---|---|---|---|
| page | query | Page number (default: 1) | No |
| limit | query | Items 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"
}
]