Example #1
0
 class Meta:
     authentication = MultiAuthentication(CustomSessionAuthentication(), ApiKeyAuthentication())
     allowed_methods = ['get', 'post', 'patch']
     authorization = Authorization()
     always_return_data = True
     cache = CustomCache()
     serializer = CustomSerializer()
Example #2
0
 class Meta:
     # authentication = MultiAuthentication(
     #     CustomSessionAuthentication(), ApiKeyAuthentication())
     allowed_methods = ['get', 'post', 'patch']
     # authorization = Authorization()
     always_return_data = True
     cache = CustomCache()
     serializer = CustomSerializer()
     GET_params_required = []
     default_limit = 1
Example #3
0
 class Meta:
     authentication = MultiAuthentication(CustomSessionAuthentication(),
                                          ApiKeyAuthentication())
     authorization = Authorization()
     always_return_data = True
     allowed_methods = ['get', 'post', 'delete', 'patch']
     cache = CustomCache()
     serializer = CustomSerializer()
     filtering = {
         "id": ALL,
     }
     GET_params_required = []