Пример #1
0
    class QueryParser(parsers.Parser):

        commands = parsers.ListField(child=parsers.CharField(), default=None)

        with_schemas = parsers.BooleanField(default=True)

        is_private = parsers.BooleanField(default=None)

        domain_id = parsers.CharField(default=None)

        version = parsers.CharField(default=None)
Пример #2
0
 class QueryParser(parsers.Parser):
     title = parsers.CharField()
     prices = parsers.ListField(child=parsers.IntegerField())
Пример #3
0
 class BodyParser(parsers.Parser):
     title = parsers.CharField()
     amount = parsers.IntegerField(max_value=19)
Пример #4
0
 class BParser(parsers.Parser):
     title = parsers.CharField()
     quantity = parsers.IntegerField()
Пример #5
0
    class BodyParser(parsers.Parser):

        name = parsers.CharField()

        age = parsers.IntegerField()