Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Using postman to post data into proxy

I want to post json data by postman into apigee proxy.I created a reverse proxy and used target server as http://mocktarget.apigee.net/.

When I send post request It gives me 404 error.

I saw this https://community.apigee.com/questions/54530/creating-an-api-proxy-for-post-request.html

But when i used no target server to create a proxy it gives me 200.But how do i check the data in proxy?When I click on url it shows me no data.

In a free account I want to post json data by postman and read back the data.

Solved Solved
0 13 2,617
2 ACCEPTED SOLUTIONS

Try with HTTPBin example.

Create another simple reverse proxy and use http://httpbin.org/anything as target server.

In Postman use POST method and send a body as shown in the link ,

Sample JSON,

{
"name":"Hima"
}

View solution in original post

> In a free account I want to post json data by postman and read back the data.

When you created no target server proxy, deployed, and executed it, by default you do not get back your request data. You get back a newly-created empty default response.

To implement your requirement, i.e., echo incoming request payload into outgoing response, you need to use Assign Message policy in the RESPONSE flow with <Copy>/<Payload> elements.


Then, you can use POSTMAN or other http client to execute a POST request with a body. You will get its copy as a response.

View solution in original post

13 REPLIES 13