GET /pages
List all active custom pages for the store.Authentication
None required.Example Request
curl "https://front.rmz.gg/api/pages"
const response = await fetch("https://front.rmz.gg/api/pages");
const data = await response.json();
response = requests.get("https://front.rmz.gg/api/pages")
data = response.json()
$response = Http::get("https://front.rmz.gg/api/pages");
$data = $response->json();
Response
Success (200)
{
"success": true,
"data": [
{
"id": 1,
"title": "About Us",
"url": "about-us",
"content": "<h1>About Our Store</h1><p>...</p>",
"excerpt": "Learn more about our store",
"meta_title": "About Us",
"meta_description": "Learn more about our store",
"is_active": true,
"created_at": "2024-01-01T00:00:00.000000Z",
"updated_at": "2024-06-15T10:30:00.000000Z"
},
{
"id": 2,
"title": "Terms of Service",
"url": "terms-of-service",
"content": "...",
"excerpt": null,
"meta_title": null,
"meta_description": null,
"is_active": true,
"created_at": "2024-01-01T00:00:00.000000Z",
"updated_at": "2024-06-15T10:30:00.000000Z"
}
]
}
GET /pages/
Get the full content of a specific page by its URL slug.Authentication
None required.Path Parameters
| Parameter | Type | Description |
|---|---|---|
| url | string | Page URL slug (e.g., about-us) |
Example Request
curl "https://front.rmz.gg/api/pages/about-us"
const response = await fetch("https://front.rmz.gg/api/pages/about-us");
const data = await response.json();
response = requests.get("https://front.rmz.gg/api/pages/about-us")
data = response.json()
$response = Http::get("https://front.rmz.gg/api/pages/about-us");
$data = $response->json();
Response
Success (200)
{
"success": true,
"data": {
"id": 1,
"title": "About Us",
"url": "about-us",
"content": "<h1>About Our Store</h1><p>We are a leading provider of digital products...</p>",
"excerpt": "Learn more about our store",
"meta_title": "About Us",
"meta_description": "Learn more about our store",
"is_active": true,
"created_at": "2024-01-01T00:00:00.000000Z",
"updated_at": "2024-06-15T10:30:00.000000Z"
}
}
Error Responses
| Status | Description |
|---|---|
| 404 | Page not found or inactive |

