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 IDPUT /api/contents/{id}: Update content (supports Optimistic Concurrency)PUT /api/contents/{id}/status: Publish/Archive content
π‘οΈ RBAC β
POST /api/roles: Create custom rolesPOST /api/user-groups: Manage user groupsPOST /api/users/{id}/roles: Assign roles to users
βοΈ Schema β
POST /api/content-types: Define new content structures dynamically
:::