示例#1
0
        class Design(orm.ApiModel):
            class Meta:
                type = 'designs'
                api = orm_api

            name = orm.AttributeField('name')
            status = orm.AttributeField('status')
示例#2
0
        class Test(orm.ApiModel):
            class Meta:
                api = orm_api
                type = 'test'

            other = orm.RelationField(source='other')
            name = orm.AttributeField(source='name')
示例#3
0
        class Design(orm.ApiModel):
            class Meta:
                type = 'designs'
                api = orm_api

            name = orm.AttributeField('name')
            sub_designs = orm.RelationField('sub_designs')
示例#4
0
        class Design(orm.ApiModel):
            class Meta:
                type = 'design'
                api = orm_api
                path = 'designs'

            name = orm.AttributeField('name')
示例#5
0
        class Test(orm.ApiModel):
            class Meta:
                api = orm_api
                type = 'test'
                path = 'tests'

            name = orm.AttributeField(source='name')
示例#6
0
 class Test(orm.ApiModel):
     class Meta:
         api = orm_api
         type = 'test'
     name = orm.AttributeField(source='name')
     extra = hex_field