class Meta: queryset = Category.objects.all() resource_name = 'category' allowed_methods = ['get'] authentication = ApiKeyAuthentication() authorization = ORBAuthorization() serializer = PrettyJSONSerializer() always_return_data = True include_resource_uri = True
class Meta: queryset = ResourceTag.objects.filter( resource__status=Resource.APPROVED) resource_name = 'tagsresource' allowed_methods = ['get'] authentication = ApiKeyAuthentication() authorization = ORBResourceTagAuthorization() serializer = PrettyJSONSerializer() always_return_data = True include_resource_uri = True
class Meta: queryset = ResourceTag.objects.all() resource_name = 'resourcetag' allowed_methods = ['get', 'post', 'delete'] include_resource_uri = False authentication = ApiKeyAuthentication() authorization = ORBResourceTagAuthorization() serializer = PrettyJSONSerializer() always_return_data = True include_resource_uri = True
class Meta: queryset = ResourceURL.objects.all() resource_name = 'resourceurl' allowed_methods = ['get', 'post', 'delete'] excludes = ['create_date', 'update_date', 'image'] authentication = ApiKeyAuthentication() authorization = ORBAuthorization() serializer = PrettyJSONSerializer() always_return_data = True include_resource_uri = True
class Meta: queryset = Tag.objects.all() resource_name = 'tags' allowed_methods = ['get'] fields = ['id', 'name', 'image'] authentication = ApiKeyAuthentication() authorization = ORBAuthorization() serializer = PrettyJSONSerializer() always_return_data = True include_resource_uri = True filtering = { "category": ('exact', ), "name": ALL, }
class Meta: queryset = Tag.objects.all() resource_name = 'tag' allowed_methods = ['get', 'post'] excludes = [ 'contact_email', 'create_date', 'order_by', 'external_url', 'update_date', 'slug' ] authentication = ApiKeyAuthentication() authorization = ORBAuthorization() serializer = PrettyJSONSerializer() always_return_data = True include_resource_uri = True filtering = { "category": ('exact', ), "name": ALL, }