【问题标题】:Can I route request based on operation?我可以根据操作路由请求吗?
【发布时间】:2019-11-14 04:12:39
【问题描述】:

我有一个端点,它接受两种不同的操作,GET 和 DELETE。 我可以根据 dispatch.yaml 中的操作将请求路由到同一端点到不同的服务吗?

这就是我想在我的 dispatch.yaml 中做的事情:

dispatch:

  - url: "*/customer/example/uri/"
    operation:GET
    service: aservice

  - url: "*/customer/example/uri/"
    operation:DELETE
    service: anotherservice

【问题讨论】:

    标签: google-app-engine google-cloud-platform google-cloud-endpoints


    【解决方案1】:

    不行,dispatch.yaml 只能基于 url 路由。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-12-07
      • 2019-02-20
      • 2011-06-05
      • 2010-12-30
      • 2018-01-04
      • 2016-07-28
      相关资源
      最近更新 更多