How do I begin to implement?

Not applicable

Hello,

I want to learn that how can I implement API Proxy with several flows added to it and validate and parse a few data in javascript.

Also, how to configure the proxy too?

Please share some guideline of documents where I can learn more.

0 6 321
6 REPLIES 6

Dear @Dhwani Trivedi ,

In my opinion above question is too broad to answer. If you can be specific or break it down into exact problem you are facing then it will help others to answer.

You can also refer http://apigee.com/docs/ for any details regarding building proxies or using policies. We use docs a lot for any reference related to building API Proxies. Hope it will be helpful 🙂

Cheers,

Anil Sagar

Thank you @Anil Sagar. But, I am looking for some samples in which I can learn how I can integrate javascript validation and parsing logic to currently created api proxy?

I want to know what I can pass in hearder and from that I wrote some logic to validate and send it that to response. Something like that.

If you know any doc regarding that matter please share. I have downloaded a few sample code from reference. And currently playing with them. But, what I want to do it's not exactly like that but, I am looking for right syntax. So, I can do my further work.

Thank you. 🙂

I think you will find this very useful to get you started: http://apigee.com/docs/api-services/content/build-simple-api-proxy

It also has a video tutorial with an overview of the process of creating an API proxy.

Thank you @Birute Awasthi. I have created proxy based on those doc but, now I have add my logic to them so, I am looking for something where I can learn what to use and how to use. (in short looking for some more feature and with it's syntax).

If you know any other docs where I can learn , Please share. Thank you. 🙂

Hi,

Please take a look at the Edge Javascript Object Model doc here:

http://apigee.com/docs/api-services/reference/javascript-object-model

The object model lets you get and do processing on request/response objects in proxy flows and do what you need to do by writing custom Javascript code, which you can execute with a Javascript Policy attached to your proxy.

http://apigee.com/docs/api-services/reference/javascript-policy

See also the Javascript cookbook topic:

http://apigee.com/docs/api-services/cookbook/programming-api-proxies-javascript

There are also samples that use Javascript in the GitHub repo apigee/api-platform-samples:

http://apigee.com/docs/api-services/samples/using-samples

I hope these topics are useful.

Thank you @wwitman. This is helpful.

I have deployed all sample api proxies.