Note

This is a public alpha release, and therefore features and functionality may change and the software and documentation may contain technical bugs or other issues. If you discover any issues please consider registering a GitHub issue.

api.views.quality module

This module contains the API for data quality rulesets.

class api.views.quality.QualityCriterionApiViewset(**kwargs)[source]

Bases: rest_framework.viewsets.ModelViewSet

get_queryset()[source]

Get the list of items for this view. This must be an iterable, and may be a queryset. Defaults to using self.queryset.

This method should always be used rather than accessing self.queryset directly, as self.queryset gets evaluated only once, and those results are cached for all subsequent requests.

You may want to override this if you need to provide different querysets depending on the incoming request.

(Eg. return a list of items that is specific to the user)

perform_create(serializer)[source]
permission_classes = [<class 'api.permissions.IsAdminOrReadOnly'>]
queryset
serializer_class

alias of datasources.serializers.QualityCriterionSerializer

class api.views.quality.QualityLevelApiViewset(**kwargs)[source]

Bases: rest_framework.viewsets.ModelViewSet

get_object()[source]

Returns the object the view is displaying.

You may want to override this if you need to provide non-standard queryset lookups. Eg if objects are referenced using multiple keyword arguments in the url conf.

get_queryset()[source]

Get the list of items for this view. This must be an iterable, and may be a queryset. Defaults to using self.queryset.

This method should always be used rather than accessing self.queryset directly, as self.queryset gets evaluated only once, and those results are cached for all subsequent requests.

You may want to override this if you need to provide different querysets depending on the incoming request.

(Eg. return a list of items that is specific to the user)

perform_create(serializer)[source]
permission_classes = [<class 'api.permissions.IsAdminOrReadOnly'>]
serializer_class

alias of datasources.serializers.QualityLevelSerializer

class api.views.quality.QualityRulesetApiViewset(**kwargs)[source]

Bases: rest_framework.viewsets.ModelViewSet

get_queryset()[source]

Get the list of items for this view. This must be an iterable, and may be a queryset. Defaults to using self.queryset.

This method should always be used rather than accessing self.queryset directly, as self.queryset gets evaluated only once, and those results are cached for all subsequent requests.

You may want to override this if you need to provide different querysets depending on the incoming request.

(Eg. return a list of items that is specific to the user)

permission_classes = [<class 'api.permissions.IsAdminOrReadOnly'>]
serializer_class

alias of datasources.serializers.QualityRulesetSerializer