예제 #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