Skip to content

Pages API

The Pages API allows you to manage static website pages in WNCMS.

Work in Progress

The Pages API endpoints are currently placeholders and will be fully implemented in a future version.

Endpoints Overview

MethodEndpointDescriptionStatus
POST/api/v1/pagesList pagesPlaceholder
POST/api/v1/pages/storeCreate a pagePlaceholder
POST/api/v1/pages/{id}Get a single pagePlaceholder

List Pages

Endpoint

POST /api/v1/pages

Current Response

json
{
  "status": "success",
  "message": "Successfully fetched page index"
}

Create Page

Endpoint

POST /api/v1/pages/store

Current Response

json
{
  "status": "success",
  "message": "Successfully fetched page store"
}

Get Single Page

Endpoint

POST /api/v1/pages/{id}

Current Response

json
{
  "status": "success",
  "message": "Successfully fetched page show"
}

Future Implementation

The Pages API will support similar functionality to the Posts API:

  • Full CRUD operations (Create, Read, Update, Delete)
  • Page templates management
  • SEO metadata
  • Parent-child page relationships
  • Page visibility controls
  • Custom fields support

Alternative: Use Posts API

Until the Pages API is fully implemented, you can use the Posts API with a custom post type for managing static pages.

Troubleshooting

For current API issues, see the Troubleshooting Guide.

Built with ❤️ for WNCMS