Skip to content

REST API

Article section feedback: 4 routes.

All under /wp-json/davo/v1. Every route has a description in the source.

  • GET1
  • POST1
  • PUT1
  • PATCH1
  • DELETE1

/article-section-feedback/{id}

DELETEAccess check: require_admin

Deletes one piece of section feedback.

Handler: delete()

Parameters of DELETE /article-section-feedback/{id}
ParameterTypeRequiredDefault or allowed values
idinteger——
curl
curl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/article-section-feedback/{id}"

src/domains/article-section-feedback/routes.php:146

/article-section-feedback/{id}/status

PUTPATCHAccess check: require_admin

Changes the status of one piece of section feedback.

Handler: update_status()

Parameters of PUT/PATCH /article-section-feedback/{id}/status
ParameterTypeRequiredDefault or allowed values
idinteger——
statusstringYes—
curl
curl -X PUT -u "user:application-password" "https://example.com/wp-json/davo/v1/article-section-feedback/{id}/status" \
  -H "Content-Type: application/json" \
  -d '{"status": "…"}'

src/domains/article-section-feedback/routes.php:116

/article-section-feedback/list

GETAccess check: require_admin

Lists section feedback, filterable by article, reason and status, with pagination.

Handler: get_list()

Parameters of GET /article-section-feedback/list
ParameterTypeRequiredDefault or allowed values
post_idinteger——
reasonstring——
statusstring——
pageinteger—1
per_pageinteger—20
curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/article-section-feedback/list"

src/domains/article-section-feedback/routes.php:72

/article-section-feedback/submit

POSTPublic

Submits feedback on a section of an article. Records the visitor's IP and user agent, and the signed-in user if any.

Handler: submit()

No parameters declared in the route registration.

curl
curl -X POST "https://example.com/wp-json/davo/v1/article-section-feedback/submit"

src/domains/article-section-feedback/routes.php:54

Note. Generated from the plugin source. Parameters are the ones declared when the route is registered; a parameter marked “see source” uses a shared definition. Responses are not documented here. Authenticate as for any WordPress REST route, for example with an application password over HTTPS; the example paths use https://example.com.

See it on your own site.

Davo is a WordPress theme and plugin by Exorex.

  • Runs on your own WordPress
  • Guided setup wizard
  • AI is off until you switch it on
  • Read the licence on the marketplace first