Skip to content

REST API

Free votes: 2 routes.

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

  • GET1
  • POST1

/free-votes/seen-intro

POSTAccess check: auth_require_login

Marks the free-votes intro as seen for the current user and returns the updated status.

Handler: cb_mark_intro_seen()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/free-votes/seen-intro"

src/domains/free-votes/routes.php:67

/free-votes/status

GETAccess check: auth_require_login

Returns the current user's free-votes status.

Handler: cb_get_status()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/free-votes/status"

src/domains/free-votes/routes.php:57

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