ORM
数据库是重中之重,我抱负中的ORM最主要的功用是Model与数据库的同步,靠migration来同步数据库总觉得那里怪怪的. 愿望能有如许一个东西,同步Model与数据库.
接口定义
API(path='/users/',
method='POST',
permissions=['create_users'],
model=User,
validator=validator)
API(path='/users/',
method='GET',
permissions=['list_users'],
model=User,
serializer=serializer)
设置
response
list:
body:
{data:data}
header:
{content-type:text/json}
create:
update:
replace:
delete: