onadata.apps.restservice.viewsets package

Submodules

onadata.apps.restservice.viewsets.restservices_viewset module

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

Bases: onadata.libs.mixins.authenticate_header_mixin.AuthenticateHeaderMixin, onadata.libs.mixins.cache_control_mixin.CacheControlMixin, onadata.libs.mixins.last_modified_mixin.LastModifiedMixin, pricing.baseviewset.DefaultBaseViewset, rest_framework.viewsets.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 = <QuerySet [<RestService: cc_monthly_report_form:Formhub to DHIS2 - http://f2dhis2.ona.io/%(id_string)/post/%(uuid)s>, <RestService: cc_monthly_report:Formhub to DHIS2 - http://f2dhis2.ona.io/%(id_string)s/post/%(uuid)s>, <RestService: health_facility_manager_interview_EnSp-deleted-at-1516565831-deleted-at-1516565941:JSON POST - http://whoahqa.ona.io/submissions/>, <RestService: observation_guide_EnSp-deleted-at-1516565941:JSON POST - http://whoahqa.ona.io/submissions/>, <RestService: outreach_worker_interview_EnSp-deleted-at-1516565941:JSON POST - http://whoahqa.ona.io/submissions/>, <RestService: support_staff_interview_EnSp-deleted-at-1516565941:JSON POST - http://whoahqa.ona.io/submissions/>, <RestService: clinic_registration-deleted-at-1516565788-deleted-at-1516565941:JSON POST - http://whoahqa.ona.io/submissions/>, <RestService: health_care_provider_interview_EnSp-deleted-at-1516565812-deleted-at-1516565941:JSON POST - http://whoahqa.ona.io/submissions/>, <RestService: daily_waste_register:JSON POST - http://compost.ona.io/submissions/>, <RestService: opening2:JSON POST - http://ditunisia.ona.io/submissions/>, <RestService: opening1:JSON POST - http://ditunisia.ona.io/submissions/>, <RestService: opening1_2:JSON POST - http://ditunisia.ona.io/submissions/>, <RestService: monthly_waste_composition:JSON POST - http://compost.ona.io/submissions/>, <RestService: devtrac_site_report:JSON POST - http://devtrac.ona.io/submission>, <RestService: register_daily_rejects_landfilled:JSON POST - http://compost.ona.io/submissions/>, <RestService: monthly_density_rejects_from_sieving:JSON POST - http://compost.ona.io/submissions/>, <RestService: municipality_electricity_register:JSON POST - http://compost.ona.io/submissions/>, <RestService: leachate_monthly_register:JSON POST - http://compost.ona.io/submissions/>, <RestService: compost_sales_register:JSON POST - http://compost.ona.io/submissions/>, <RestService: monthly_compost_density_register:JSON POST - http://compost.ona.io/submissions/>, '...(remaining elements truncated)...']>
retrieve(request, *args, **kwargs)
serializer_class

alias of onadata.libs.serializers.restservices_serializer.RestServiceSerializer

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

Module contents