Пример #1
0
 class Meta:
     queryset = Room.objects.all()
     resource_name = 'room'
     limit = 0
     always_return_data = True
     authentication = AdminApiKeyAuthentication()
     authorization = Authorization()
     serializer = urlencodeSerializer()
Пример #2
0
 class Meta:
     queryset = Service_history.objects.all()
     resource_name = 'service_history'
     allowed_methods = ['get', 'post', 'put']
     #filtering = {'service_timestamp':ALL}
     limit = 0
     always_return_data = True
     authentication = AdminApiKeyAuthentication()
     authorization = Authorization()
     serializer = urlencodeSerializer()
Пример #3
0
    class Meta:
        queryset = State.objects.all()
        allowed_methods = ['get']
        resource_name = 'state'
        #excludes = ['password']
        limit = 0
        always_return_data = True
        filtering = {'state_ctid': ALL_WITH_RELATIONS, 'state_title': ALL}

        authorization = Authorization()
        authentication = Authentication()
        serializer = urlencodeSerializer()
Пример #4
0
 class Meta:
     queryset = Spa.objects.all()
     resource_name = 'spa'
     allowed_methods = ['get']
     # filtering = {
     # 	'folio_gid': ALL_WITH_RELATIONS,
     # 	'folio_bid': ALL_WITH_RELATIONS
     # }
     limit = 0
     always_return_data = True
     authentication = AdminApiKeyAuthentication()
     authorization = Authorization()
     serializer = urlencodeSerializer()
 class Meta:
     queryset = Order.objects.all()
     resource_name = 'order'
     allowed_methods = ['get', 'post', 'put']
     filtering = {
         'order_gid': ALL_WITH_RELATIONS,
         'order_bid': ALL_WITH_RELATIONS,
         'order_timestamp': ALL
     }
     limit = 0
     always_return_data = True
     authentication = AdminApiKeyAuthentication()
     authorization = Authorization()
     serializer = urlencodeSerializer()
Пример #6
0
    class Meta:
        queryset = Country.objects.all()
        allowed_methods = ['get']
        resource_name = 'country'
        #excludes = ['password']
        limit = 0
        always_return_data = True
        filtering = {'country_id': ALL, 'country_title': ALL}

        # filtering = {
        #     'username': '******'
        # }
        authorization = Authorization()
        authentication = Authentication()
        serializer = urlencodeSerializer()
 class Meta:
     queryset = Payment.objects.all()
     resource_name = 'payment'
     allowed_methods = ['get', 'post']
     filtering = {
         'payment_gid': ALL_WITH_RELATIONS,
         'payment_bid': ALL_WITH_RELATIONS,
         'payment_timestamp':
         ALL,  #['ALL','contains','startswith','endswith','exact'],
         'payment_utimestamp': ALL,
         'payment_from': ALL
     }
     limit = 0
     always_return_data = True
     authentication = AdminApiKeyAuthentication()
     authorization = Authorization()
     serializer = urlencodeSerializer()