API Documentation
WordPress-compatible interface for managing blog content, categories and media.
Discovery
The homepage response advertises this document with a Link header using the service-doc relation and exposes a machine-readable catalog at /.well-known/api-catalog. Homepage and this page also support markdown negotiation via Accept: text/markdown.
Base path: /wp-json/wp/v2
Authentication: HTTP Basic auth via Authorization header.
Accepted credentials are configured with WP_AUTH or the WP_USERNAME and WP_PASSWORD environment variables.
Every post carries a language field (sk / en) reflecting the source content language.
Endpoints
/wp-json/wp/v2/postsList blog posts in a WordPress-compatible shape (includes a `language` field).
/wp-json/wp/v2/postsCreate a new blog post.
/wp-json/wp/v2/posts/{id}Fetch one post by WordPress post ID.
/wp-json/wp/v2/posts/{id}Update or recreate a post by WordPress post ID.
/wp-json/wp/v2/posts/{id}Delete a post by WordPress post ID.
/wp-json/wp/v2/categoriesList available blog categories.
/wp-json/wp/v2/categoriesCreate a new blog category (idempotent by slug).
/wp-json/wp/v2/mediaList uploaded media assets.
/wp-json/wp/v2/mediaUpload a media asset and receive its stored URL.
/wp-json/wp/v2/media/{id}Fetch a single media item by ID.