Skip to main content

GET /pages

List all active custom pages for the store.

Authentication

None required.

Example Request

curl "https://front.rmz.gg/api/pages"

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

ParameterTypeDescription
urlstringPage URL slug (e.g., about-us)

Example Request

curl "https://front.rmz.gg/api/pages/about-us"

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

StatusDescription
404Page not found or inactive