【问题标题】:Apiary Error when invoking API调用 API 时出现 Apiary 错误
【发布时间】:2016-04-21 02:44:29
【问题描述】:

我在 Apiary 上收到以下错误很抱歉,API 调用失败。

我的主机定义为 格式:1A 主持人:https://test.mynetwork.com/

GET CALL 定义为

数据瓮 [models/v2/files/{urn}/data{?guid}]

获取 [获取]

  • 参数

    • 瓮(必填,字符串,ttt)...设计瓮。
    • guid(可选,字符串,067e6162-3b6f-4ae2-a171-2470b63dfe02)...按 guid 过滤。
  • 响应 200 (application/vnd.api+json)

    • 身体 数据 { “版本”:“1.0”, }

当我调用它时,我得到了错误。任何输入

【问题讨论】:

    标签: apiary.io apiary


    【解决方案1】:

    我已将您的 API 蓝图编辑如下:

    FORMAT: 1A
    
    HOST: https://test.mynetwork.com
    
    # Test API
    
    This is a test API
    
    ## data urn [/models/v2/files/{urn}/data{?guid}]
    
    + Parameters
        + urn: `ttt` (required, string) - design urn
        + guid: `067e6162-3b6f-4ae2-a171-2470b63dfe02` (optional, string) - filter by guid
    
    ### test [GET]
    
    + Response 200 (application/vnd.api+json)
    
            {
                "version": "1.0"
            }
    

    你可以在这里找到教程:https://help.apiary.io/

    也不确定您的意思是“调用”API - 您是在调用模拟服务器还是通过 Apiary 访问您自己的服务器。

    很高兴通过 Apiary 本身的支持选项提供进一步帮助,或通过支持 [at] apiary.io 向我们发送电子邮件。

    【讨论】:

    • 感谢 manp,它有帮助。我的参数值包含不被接受的 ':'。所以改变查询参数的值有帮助
    猜你喜欢
    • 2017-03-06
    • 2020-04-04
    • 2016-06-10
    • 2013-07-04
    • 1970-01-01
    • 2016-10-27
    • 1970-01-01
    • 2015-04-10
    • 2021-05-04
    相关资源
    最近更新 更多