问题标签 [apiary.io]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
javascript - AngularJS 和 Apiary.IO - 无法读取任何响应标头?
我使用 Apiary.io 模拟我的 API。但不知何故,我无法使用 angularJS 从响应对象中读取任何标题。而且我确信我至少通过检查萤火虫正确设置了 Content-Type: application/json 。Angular 中的代码也应该正确读取标题,因为我可以在将请求发送到 apiary.io 以外的其他地方时打印它们...
rest - 为我们在 Apiary.io 中的每个响应指定描述
是否可以为对某个请求的每个响应指定描述?假设我们有一个请求
和 2 个回应
我想在这里指定描述(请在行下方注明注释+ Response
):
可能吗?
android-pay - 批量更新多个用户的积分余额
如何在单个 HTTP 请求中批量更新多个钱包对象的积分余额。
apiary.io - 蜂房多重反应
我正在使用 Apiary 记录我的 api,并且正在使用蓝图的旧语法。
我在某处读到了关于用“+++++”区分不同响应的内容,但我不知道如何判断养蜂场何时使用我的第一个或第二个响应。
apiary.io - 如何在 apiary.io 上格式化 POST 请求?
感谢您抽出宝贵时间,我有一个 POST 请求,我想在蓝图蜂房中记录,标题是这样的:
文本/html
_方法:POST
数据[用户][用户名]:
数据[用户][密码]:
数据[用户][记住]:0
我有这样的东西,但我不知道如何完成它:
任何想法?谢谢!
apiary.io - Encoded request bodies in Blueprint at apiary.io
We have one existing API, which we're trying to build a Blueprint for, that requires certain request bodies to be URI-encoded JSON.
Is there some way to specify a body as "like this, but encoded"?
Existing (mere text) documentation just shows the JSON, along with an airy reminder to encode it before sending:
But with Blueprint—and especially with Blueprint at apiary.io—you really have to show the actual body. Which is completely unreadable:
But specifying the readable text in the Blueprint fails (returns a parameter error):
The real sticking point is when I have Apiary talk to my real server: the readable request fails (because it's not encoded), while the unreadable one succeeds (because, as required, it is).
apiary.io - 参数名称中的方括号
我想知道是否可以在参数名称中包含方括号,这就是 Rails 对参数进行分组的方式。例如:
现在,如果我包含方括号,则不会呈现参数。
谢谢!
apiary.io - 如何从具有不同参数的单个端点获得多个响应?
我们正在研究使用 API 蓝图。在某些情况下,我们希望一个请求返回正确的响应,而另一个请求返回一个“错误”响应,例如 a 400 bad request
,以便其他开发人员可以使用 apiary.io 上的模拟 API 处理这两种类型的响应并在他们的应用。
我在下面创建了一个完全任意的示例,
现在我想以某种方式添加对/thing/40
但我不确定如何使用 API 蓝图做到这一点。这在 apiary.io 上的“旧”样式下是可以实现的,但我们想继续使用新的语法
apiary.io - 如何更改 apiary.io 中 API 文档的所有权?
我想要的是更改与 API Doc 关联的主要电子邮件,因此当我与其他人共享该文档时,他们会看到该新电子邮件而不是我的电子邮件。那封新电子邮件有一个 apiary.io,这就是我谈论所有权转移的原因。
apiblueprint - 在 apiary.io markdown 中指定属性数据类型的约定是什么?
apiary.io 以点的形式列出资源属性。是否有特定的约定来显示这些属性是什么数据类型,或者满足数据指定格式?