使用 apiary / api 蓝图的 http 身份验证

http authentication using apiary / api blueprint

刚刚开始尝试 Apiary 和 API Blueprint,在传递一些基本的 http 身份验证时遇到了一些问题。

在初始调用中,API 为需要在任何后续调用中使用的任何给定用户创建一个令牌。我的问题是如何标记该身份验证,以便它与 Apiary 生产请求一起使用。

命令行 curl(有效)是(在混淆代码中)这个...

curl --user name@somewhere.com:tokenGoesHere http://test.server.uri/API/getUserInfo

那么,如何将该 curl 命令转换为等效的 API 蓝图格式?

遗憾的是,目前无法在 APIBlueprint 中指定 authentication/authorisation。

它在 roadmap 中,但很遗憾,我们无法为您提供任何准确的预计到达时间。

您可能还想阅读我们的 help page on the argument