DELETE Access check: require_admin
Deletes one piece of section feedback.
Handler: delete()
Parameters of DELETE /article-section-feedback/{id} Parameter Type Required Default or allowed values id integer — —
curl Copycurl -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
PUT PATCH Access check: require_admin
Changes the status of one piece of section feedback.
Handler: update_status()
Parameters of PUT/PATCH /article-section-feedback/{id}/status Parameter Type Required Default or allowed values id integer — — status string Yes —
curl Copycurl -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
GET Access check: require_admin
Lists section feedback, filterable by article, reason and status, with pagination.
Handler: get_list()
Parameters of GET /article-section-feedback/list Parameter Type Required Default or allowed values post_id integer — — reason string — — status string — — page integer — 1 per_page integer — 20
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/article-section-feedback/list" src/domains/article-section-feedback/routes.php:72
POST Public
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 Copycurl -X POST "https://example.com/wp-json/davo/v1/article-section-feedback/submit" src/domains/article-section-feedback/routes.php:54