onadata.apps.restservice.viewsets package

Submodules

onadata.apps.restservice.viewsets.restservices_viewset module

Implements the /api/v1/restservices endpoint.

class onadata.apps.restservice.viewsets.restservices_viewset.RestServicesViewSet(**kwargs)

Bases: AuthenticateHeaderMixin, CacheControlMixin, LastModifiedMixin, DefaultBaseViewset, ModelViewSet

This endpoint provides access to form rest services.

filter_backends = (<class 'onadata.libs.filters.RestServiceFilter'>,)
get_serializer_class()

Return the class to use for the serializer. Defaults to using self.serializer_class.

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

(Eg. admins get full serialization, others get basic serialization)

permission_classes = [<class 'onadata.apps.api.permissions.RestServiceObjectPermissions'>]
queryset
retrieve(request, *args, **kwargs)
serializer_class

alias of RestServiceSerializer

onadata.apps.restservice.viewsets.restservices_viewset.get_serializer_class(name)

Returns a serilizer class with the given name.

Module contents