/video-favorites/ids
GETPublic
GET /video-favorites/ids.
Handler: get_ids()
No parameters declared in the route registration.
curl "https://example.com/wp-json/davo/v1/video-favorites/ids"src/domains/videos/favorites-routes.php:60
REST API
All under /wp-json/davo/v1. Every route has a description in the source.
GETPublic
GET /video-favorites/ids.
Handler: get_ids()
No parameters declared in the route registration.
curl "https://example.com/wp-json/davo/v1/video-favorites/ids"src/domains/videos/favorites-routes.php:60
POSTAccess check: require_login
POST /video-favorites/video/{id}.
Handler: add_favorite()
No parameters declared in the route registration.
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/video-favorites/video/{id}"DELETEAccess check: require_login
DELETE /video-favorites/video/{id}.
Handler: remove_favorite()
No parameters declared in the route registration.
curl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/video-favorites/video/{id}"src/domains/videos/favorites-routes.php:80
POSTAccess check: require_login
POST /video-favorites/video/{id}/toggle.
Handler: toggle_favorite()
No parameters declared in the route registration.
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/video-favorites/video/{id}/toggle"src/domains/videos/favorites-routes.php:99
GETPublic
GET /videos — public grid listing, published only.
Handler: list_public_videos()
| Parameter | Type | Required | Default or allowed values |
|---|---|---|---|
| section | string | — | — |
| type | string | — | — |
| featured | boolean | — | — |
| search | string | — | — |
curl "https://example.com/wp-json/davo/v1/videos"src/domains/videos/routes.php:73
GETPublic
GET /videos/{slug} — public single video.
Handler: get_public_video()
| Parameter | Type | Required | Default or allowed values |
|---|---|---|---|
| slug | — | Yes | — |
curl "https://example.com/wp-json/davo/v1/videos/{slug}"src/domains/videos/routes.php:154
POSTPublic
POST /videos/{slug}/view — records a view for a published video. Public: no auth needed to watch/view-count a public video.
Handler: record_view()
| Parameter | Type | Required | Default or allowed values |
|---|---|---|---|
| slug | — | Yes | — |
curl -X POST "https://example.com/wp-json/davo/v1/videos/{slug}/view"src/domains/videos/routes.php:138
GETAccess check: auth_require_manage
GET /videos/admin — admin table listing, any status.
Handler: list_admin_videos()
| Parameter | Type | Required | Default or allowed values |
|---|---|---|---|
| section | string | — | — |
| type | string | — | — |
| status | string | — | — |
| featured | boolean | — | — |
| search | string | — | — |
| page | integer | — | 1 |
| per_page | integer | — | 20 |
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/videos/admin"POSTAccess check: auth_require_manage
POST /videos/admin — create a video.
Handler: create_video()
No parameters declared in the route registration.
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/videos/admin"src/domains/videos/routes.php:177
GETAccess check: auth_require_manage
GET /videos/admin/{id} — admin single video, any status.
Handler: get_admin_video()
No parameters declared in the route registration.
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/videos/admin/{id}"PUTPATCHAccess check: auth_require_manage
PUT/PATCH /videos/admin/{id} — update a video.
Handler: update_video()
No parameters declared in the route registration.
curl -X PUT -u "user:application-password" "https://example.com/wp-json/davo/v1/videos/admin/{id}"DELETEAccess check: auth_require_manage
DELETE /videos/admin/{id}.
Handler: delete_video()
No parameters declared in the route registration.
curl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/videos/admin/{id}"src/domains/videos/routes.php:224
POSTAccess check: auth_require_manage
POST /videos/admin/{id}/check-availability — forces a fresh availability check, bypassing any cached result.
Handler: check_video_availability()
No parameters declared in the route registration.
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/videos/admin/{id}/check-availability"src/domains/videos/routes.php:256
POSTAccess check: auth_require_manage
POST /videos/admin/{id}/duplicate.
Handler: duplicate_video()
No parameters declared in the route registration.
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/videos/admin/{id}/duplicate"src/domains/videos/routes.php:246
GETAccess check: auth_require_manage
GET /videos/admin/dashboard-stats — aggregate library statistics for the admin Dashboard page.
Handler: get_dashboard_stats()
No parameters declared in the route registration.
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/videos/admin/dashboard-stats"src/domains/videos/routes.php:410
POSTAccess check: auth_require_manage
POST /videos/admin/detect-provider.
Handler: detect_provider()
| Parameter | Type | Required | Default or allowed values |
|---|---|---|---|
| url | string | Yes | — |
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/videos/admin/detect-provider" \
-H "Content-Type: application/json" \
-d '{"url": "…"}'src/domains/videos/routes.php:292
GETAccess check: auth_require_manage
GET /videos/admin/providers.
Handler: list_providers()
| Parameter | Type | Required | Default or allowed values |
|---|---|---|---|
| include_disabled | boolean | — | false |
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/videos/admin/providers"src/domains/videos/routes.php:276
POSTAccess check: auth_require_manage
POST /videos/admin/reorder.
Handler: reorder_videos()
No parameters declared in the route registration.
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/videos/admin/reorder"src/domains/videos/routes.php:266
GETAccess check: auth_require_manage
GET /videos/admin/sections — every section, hidden ones included, for the admin builder.
Handler: list_admin_sections()
No parameters declared in the route registration.
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/videos/admin/sections"POSTAccess check: auth_require_manage
POST /videos/admin/sections.
Handler: create_section()
No parameters declared in the route registration.
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/videos/admin/sections"src/domains/videos/routes.php:308
PUTPATCHAccess check: auth_require_manage
PUT/PATCH /videos/admin/sections/{section_id}.
Handler: update_section()
No parameters declared in the route registration.
curl -X PUT -u "user:application-password" "https://example.com/wp-json/davo/v1/videos/admin/sections/{section_id}"DELETEAccess check: auth_require_manage
DELETE /videos/admin/sections/{section_id}. Goes through the repository, not the service directly, so videos assigned to the deleted section get their section_id cleared in the same request.
Handler: delete_section()
No parameters declared in the route registration.
curl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/videos/admin/sections/{section_id}"src/domains/videos/routes.php:352
GETAccess check: auth_require_manage
GET /videos/admin/sections/counts.
Handler: get_section_counts()
No parameters declared in the route registration.
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/videos/admin/sections/counts"src/domains/videos/routes.php:342
POSTAccess check: auth_require_manage
POST /videos/admin/sections/reorder.
Handler: reorder_sections()
No parameters declared in the route registration.
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/videos/admin/sections/reorder"src/domains/videos/routes.php:329
GETAccess check: auth_require_manage
GET /videos/admin/types.
Handler: list_types()
No parameters declared in the route registration.
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/videos/admin/types"POSTAccess check: auth_require_manage
POST /videos/admin/types.
Handler: create_type()
No parameters declared in the route registration.
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/videos/admin/types"src/domains/videos/routes.php:369
PUTPATCHAccess check: auth_require_manage
PUT/PATCH /videos/admin/types/{slug}.
Handler: update_type()
No parameters declared in the route registration.
curl -X PUT -u "user:application-password" "https://example.com/wp-json/davo/v1/videos/admin/types/{slug}"DELETEAccess check: auth_require_manage
DELETE /videos/admin/types/{slug}. Goes through the repository, not the registry directly, so videos assigned to the deleted type get their video_type cleared in the same request.
Handler: delete_type()
No parameters declared in the route registration.
curl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/videos/admin/types/{slug}"src/domains/videos/routes.php:386
GETPublic
GET /videos/sections — the public section list. Only enabled sections: a hidden section (and its name) is admin-only, so it never reaches an unauthenticated caller.
Handler: list_public_sections()
No parameters declared in the route registration.
curl "https://example.com/wp-json/davo/v1/videos/sections"src/domains/videos/routes.php:118
GETPublic
GET /videos/sections/counts — published-video counts per section, for the public section navigation.
Handler: get_public_section_counts()
No parameters declared in the route registration.
curl "https://example.com/wp-json/davo/v1/videos/sections/counts"src/domains/videos/routes.php:128
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.
Davo is a WordPress theme and plugin by Exorex.