diff --git a/lib/workload/stateless/stacks/metadata-manager/app/settings/local.py b/lib/workload/stateless/stacks/metadata-manager/app/settings/local.py index e9d141b6d..70b97d8de 100644 --- a/lib/workload/stateless/stacks/metadata-manager/app/settings/local.py +++ b/lib/workload/stateless/stacks/metadata-manager/app/settings/local.py @@ -56,7 +56,7 @@ "description": "Terms of service", "url": "https://umccr.org/", }, - 'CAMELIZE_NAMES': False, + 'CAMELIZE_NAMES': True, 'POSTPROCESSING_HOOKS': [ 'drf_spectacular.contrib.djangorestframework_camel_case.camelize_serializer_fields', 'drf_spectacular.hooks.postprocess_schema_enums' diff --git a/lib/workload/stateless/stacks/metadata-manager/app/viewsets/lab.py b/lib/workload/stateless/stacks/metadata-manager/app/viewsets/lab.py index 089b9f630..e0670dfed 100644 --- a/lib/workload/stateless/stacks/metadata-manager/app/viewsets/lab.py +++ b/lib/workload/stateless/stacks/metadata-manager/app/viewsets/lab.py @@ -107,7 +107,10 @@ def list(self, request, *args, **kwargs): def get_queryset(self): return Library.objects.get_by_keyword(**self.request.query_params) - @extend_schema(responses={200: LibraryFullSerializer(many=True)}) + @extend_schema( + parameters=[LibrarySerializer], + responses={200: LibraryFullSerializer(many=True)} + ) @action(detail=False, methods=['get'], url_path='full') def get_full_model_set(self, request): qs = Library.objects.select_related("specimen__subject").all().order_by("-library_id") diff --git a/lib/workload/stateless/stacks/sequence-run-manager/sequence_run_manager/settings/local.py b/lib/workload/stateless/stacks/sequence-run-manager/sequence_run_manager/settings/local.py index 878e04992..08c870530 100644 --- a/lib/workload/stateless/stacks/sequence-run-manager/sequence_run_manager/settings/local.py +++ b/lib/workload/stateless/stacks/sequence-run-manager/sequence_run_manager/settings/local.py @@ -58,4 +58,9 @@ "description": "Terms of service", "url": "https://umccr.org/", }, + 'CAMELIZE_NAMES': True, + 'POSTPROCESSING_HOOKS': [ + 'drf_spectacular.contrib.djangorestframework_camel_case.camelize_serializer_fields', + 'drf_spectacular.hooks.postprocess_schema_enums' + ], } diff --git a/lib/workload/stateless/stacks/workflow-manager/workflow_manager/settings/local.py b/lib/workload/stateless/stacks/workflow-manager/workflow_manager/settings/local.py index d7feb2fff..c942eb120 100644 --- a/lib/workload/stateless/stacks/workflow-manager/workflow_manager/settings/local.py +++ b/lib/workload/stateless/stacks/workflow-manager/workflow_manager/settings/local.py @@ -57,4 +57,9 @@ "description": "Terms of service", "url": "https://umccr.org/", }, + 'CAMELIZE_NAMES': True, + 'POSTPROCESSING_HOOKS': [ + 'drf_spectacular.contrib.djangorestframework_camel_case.camelize_serializer_fields', + 'drf_spectacular.hooks.postprocess_schema_enums' + ], } diff --git a/lib/workload/stateless/stacks/workflow-manager/workflow_manager/viewsets/library.py b/lib/workload/stateless/stacks/workflow-manager/workflow_manager/viewsets/library.py index 36d1349e8..04ef9a5a3 100644 --- a/lib/workload/stateless/stacks/workflow-manager/workflow_manager/viewsets/library.py +++ b/lib/workload/stateless/stacks/workflow-manager/workflow_manager/viewsets/library.py @@ -7,6 +7,7 @@ class LibraryViewSet(ReadOnlyModelViewSet): + lookup_value_regex = "[^/]+" serializer_class = LibraryModelSerializer pagination_class = StandardResultsSetPagination filter_backends = [filters.OrderingFilter, filters.SearchFilter]