def get_resource_ids():
"""Return the list of current ids."""
test_jsonapi_header()
resources = get_resources()
response.content_type = 'application/vnd.api+json'
return response_object({"data": [{"type": "id", "id": _id} for _id in resources],
"links": {"self": get_location_url("ids")}})
app.py 文件源码
python
阅读 21
收藏 0
点赞 0
评论 0
评论列表
文章目录