feat(rbac-ui): add academic management to bedelia rbac, restyle role menus, display version badges, and fix classrooms template
This commit is contained in:
@@ -7,7 +7,7 @@ OPENAPI_SPEC = {
|
||||
"info": {
|
||||
"title": "Edu-Space REST API",
|
||||
"description": "Enterprise Academic & Physical Space Management REST API with JWT Authentication and Role-Based Access Control.",
|
||||
"version": "1.0.0"
|
||||
"version": "3.3.0"
|
||||
},
|
||||
"servers": [
|
||||
{
|
||||
@@ -240,3 +240,20 @@ OPENAPI_SPEC = {
|
||||
def get_openapi_spec():
|
||||
"""Serves the OpenAPI 3.0 specification for Schemathesis / DAST and Swagger UI."""
|
||||
return jsonify(OPENAPI_SPEC)
|
||||
|
||||
@api_openapi_bp.route('/version', methods=['GET'])
|
||||
def get_api_version():
|
||||
"""Returns the backend API version information."""
|
||||
return jsonify({
|
||||
"name": "Edu-Space REST API",
|
||||
"version": "3.3.0",
|
||||
"status": "healthy"
|
||||
}), 200
|
||||
|
||||
@api_openapi_bp.route('/health', methods=['GET'])
|
||||
def get_api_health():
|
||||
"""Liveness probe for backend API."""
|
||||
return jsonify({
|
||||
"status": "ok",
|
||||
"version": "3.3.0"
|
||||
}), 200
|
||||
|
||||
Reference in New Issue
Block a user