简体   繁体   English

Apigee route post获取api

[英]Apigee route post to get api

I have a GET API exposed as ( www.example.com/find/cola?id=lite,fiz )我有一个 GET API 公开为( www.example.com/find/cola?id=lite,fiz

From Apigee I want to expose a POST API instead of GET like ( www.example.com/api/find )从 Apigee 我想公开一个 POST API 而不是 GET 像( www.example.com/api/find

Body {id:['cola','fiz']}身体{id:['cola','fiz']}

Is it possible to accept post api and transform and route as get from apigee proxy ?是否可以接受从 apigee 代理获取的 post api 和转换和路由?

Yes, you can make your Apigee-based proxy accept a POST query, and convert it so that on the south-bound leg your back-end receives the converted GET call.是的,您可以让基于 Apigee 的代理接受 POST 查询,并对其进行转换,以便您的后端在南行腿上接收转换后的 GET 调用。 You should be able to use an Assign Message Policy in your proxy to do that: https://cloud.google.com/apigee/docs/api-platform/reference/policies/assign-message-policy#set-verb您应该能够在代理中使用分配消息策略来执行此操作: https ://cloud.google.com/apigee/docs/api-platform/reference/policies/assign-message-policy#set-verb

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM