【问题标题】:Running mutation on PostMan returns "Method not allowed"在 PostMan 上运行突变返回“方法不允许”
【发布时间】:2020-01-30 07:26:58
【问题描述】:

我想使用 Postman 运行突变,我得到了

方法不允许。

当我在 GraphQl Playground 上运行它时,它运行良好

而如果我在 Postman 上运行它,我无法让它工作。

这是 Postman 的原始日志。

【问题讨论】:

    标签: android graphql postman web-api-testing


    【解决方案1】:

    您将请求发送到/graphiql,这可能是您的 GraphiQL 接口的路径,而不是您的 API。您应该使用/graphql 或您在网络服务器上配置的任何内容。

    【讨论】:

      猜你喜欢
      • 2018-07-21
      • 2021-12-12
      • 1970-01-01
      • 2016-05-15
      • 2010-09-07
      • 2015-07-17
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多