2023-11-20 05:46:43 +00:00
|
|
|
from rest_framework.decorators import api_view, permission_classes, authentication_classes
|
2023-11-18 11:57:50 +00:00
|
|
|
from rest_framework.response import Response
|
|
|
|
|
|
|
|
from .settings import SYSTEM3_VERSION
|
|
|
|
|
|
|
|
|
|
|
|
@api_view(['GET'])
|
2023-11-20 05:46:43 +00:00
|
|
|
@permission_classes([])
|
|
|
|
@authentication_classes([])
|
2023-11-18 11:57:50 +00:00
|
|
|
def get_info(request):
|
|
|
|
return Response({
|
|
|
|
"framework_version": SYSTEM3_VERSION,
|
|
|
|
"api_min_version": "1.0",
|
|
|
|
"api_max_version": "1.0",
|
|
|
|
})
|