Work in progress
Add-on for the WordPress REST API, requires Papi 3.0.0.
GET /wp-json/papi/v1/fields/{id}
Get all page types properties on a post.
POST/PUT/PATCH /wp-json/papi/v1/fields/{id}
Update properties values.
{
"properties": [
{
"slug": "name",
"value": "Fredrik"
}
]
}
GET /wp-json/papi/v1/fields/{id}/{property_slug}
Get a single page type property on a post.
POST/PUT/PATCH /wp-json/papi/v1/fields/{id}/{property_slug}
Update a single page type property value on a post.
{
"value": "Fredrik"
}
DELETE /wp-json/papi/v1/fields/{id}/{property_slug}
Delete a single page type property value on a post.
GET /wp-json/papi/v1/options
Get all option types properties.
GET /wp-json/papi/v1/options/{property_slug}
Get a single option type property.
POST/PUT/PATCH /wp-json/papi/v1/options/{property_slug}
Update a single option type property value.
{
"value": "Fredrik"
}
DELETE /wp-json/papi/v1/options/{property_slug}
Delete a single option type property value.
papi/rest/property_item
- Modify the property item that is returned to the REST API.
MIT © Fredrik Forsmo