feat(rbac-ui): add academic management to bedelia rbac, restyle role menus, display version badges, and fix classrooms template
This commit is contained in:
@@ -6,6 +6,7 @@ from flask_babel import Babel, gettext as _
|
||||
from config.config import Config
|
||||
|
||||
# Initialize extensions
|
||||
__version__ = "3.3.0"
|
||||
db = SQLAlchemy()
|
||||
migrate = Migrate()
|
||||
cors = CORS()
|
||||
|
||||
@@ -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
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
||||
|
||||
setup(
|
||||
name="edu-space-admin",
|
||||
version="1.0.0",
|
||||
version="3.3.0",
|
||||
description="Administrative interface for Edu-Space Classroom Management System",
|
||||
author="Edu-Space Development Team",
|
||||
author_email="admin@edu-space.com",
|
||||
|
||||
Reference in New Issue
Block a user