Skip to content

API Reference ​

BarakoCMS provides a comprehensive REST API documented via Swagger UI.

Interactive Documentation

For full interactive documentation, run the application and visit: http://localhost:5000/swagger

Key Endpoints ​

πŸ” Authentication ​

  • POST /api/auth/login: Get JWT token

πŸ“„ Content ​

  • POST /api/contents: Create content (supports Idempotency)
  • GET /api/contents/{id}: Get content by ID
  • PUT /api/contents/{id}: Update content (supports Optimistic Concurrency)
  • PUT /api/contents/{id}/status: Publish/Archive content

πŸ›‘οΈ RBAC ​

  • POST /api/roles: Create custom roles
  • POST /api/user-groups: Manage user groups
  • POST /api/users/{id}/roles: Assign roles to users

βš™οΈ Schema ​

  • POST /api/content-types: Define new content structures dynamically

:::

Brewed in the baryo β˜• Β· Released under the MIT License.