2023年8月1日发(作者:)
python中options是什么意思_在OPTIONS⽅法中显⽰棉花糖模式的描述我试图在我的flask应⽤程序中实现⼀个路由,为给定资源的OPTIONS⽅法提供服务,并返回与所述资源相关联的棉花糖模式的描述。类似django的做法:{"name": "Dataset List","description": "","renders": ["application/json","text/html"],"parses": ["application/json","application/x-www-form-urlencoded","multipart/form-data"],"actions": {"POST": {"id": {"type": "integer","required": false,"read_only": true,"label": "ID"},"url": {"type": "field","required": false,"read_only": true,"label": "Url"},"name": {"type": "string","required": true,"read_only": false,"label": "Name","help_text": "The dataset name.","max_length": 256}}}}我似乎在Schema或返回此描述的⽂档中找不到任何⽅法,是空的。是否可以在整个字段中迭代并构建我需要的描述?是指:^{pr2}$
2023年8月1日发(作者:)
python中options是什么意思_在OPTIONS⽅法中显⽰棉花糖模式的描述我试图在我的flask应⽤程序中实现⼀个路由,为给定资源的OPTIONS⽅法提供服务,并返回与所述资源相关联的棉花糖模式的描述。类似django的做法:{"name": "Dataset List","description": "","renders": ["application/json","text/html"],"parses": ["application/json","application/x-www-form-urlencoded","multipart/form-data"],"actions": {"POST": {"id": {"type": "integer","required": false,"read_only": true,"label": "ID"},"url": {"type": "field","required": false,"read_only": true,"label": "Url"},"name": {"type": "string","required": true,"read_only": false,"label": "Name","help_text": "The dataset name.","max_length": 256}}}}我似乎在Schema或返回此描述的⽂档中找不到任何⽅法,是空的。是否可以在整个字段中迭代并构建我需要的描述?是指:^{pr2}$
发布评论