class Meta(v0_4.XFormInstanceResource.Meta): authentication = ODataAuthentication() resource_name = 'odata/forms' serializer = ODataFormSerializer() limit = 2000 max_limit = 10000
class Meta(v0_4.XFormInstanceResource.Meta): authentication = ODataAuthentication(Permissions.edit_data) resource_name = 'odata/{}'.format(ODATA_XFORM_INSTANCE_RESOURCE_NAME) serializer = DeprecatedODataFormSerializer() max_limit = 10000 # This is for experimental purposes only. TODO: set to a better value soon after testing
class Meta(v0_4.CommCareCaseResource.Meta): authentication = ODataAuthentication() resource_name = 'odata/cases' serializer = ODataCaseSerializer() limit = 2000 max_limit = 10000
class Meta(v0_4.CommCareCaseResource.Meta): authentication = ODataAuthentication(Permissions.edit_data) resource_name = 'odata/{}'.format(ODATA_CASE_RESOURCE_NAME) serializer = ODataCommCareCaseSerializer() max_limit = 10000 # This is for experimental purposes only. TODO: set to a better value soon after testing