API Reference

API Endpoints

The plugin provides the following REST API endpoints:

GET /wp-json/my-plugin/v1/items

Returns a list of items.

POST /wp-json/my-plugin/v1/items

Creates a new item.