def metadata():
"""
Metadata
---
tags:
- matchbox
responses:
200:
description: Metadata of the current group/profile
schema:
type: string
"""
matchbox_uri = application.config.get("MATCHBOX_URI")
if matchbox_uri:
matchbox_resp = requests.get("%s%s" % (matchbox_uri, request.full_path))
resp = matchbox_resp.content
matchbox_resp.close()
return Response(resp, status=matchbox_resp.status_code, mimetype="text/plain")
return Response("matchbox=%s" % matchbox_uri, status=403, mimetype="text/plain")
评论列表
文章目录