Re: how to expose app as API in Heroku?

2019-03-21 Thread Madeesha Fernando
Hi Devs,

@Crawford,
I am developing my application using JAVA and my backend service returns an
order.

@Manjula,
Thanks for the pointers, I was actually looking for an APIM solution. I
tried out the wso2 API cloud add-on and it worked :)
You can invoke my backend using following curl command. The token is only
valid for 5hours.
I was able to convert my XML payload to JSON using API Cloud in build
mediation policy.

I am further experimenting with API Cloud features and get back to you if I
have further questions.

curl -k -X GET "
https://gateway.api.cloud.wso2.com:443/t/testliveorg/helloworld/v1/hello?order=4889823;
-H "accept: application/json" -H "Authorization: Bearer
94a0f688-8df2-37be-a80e-1b789a0bd5ad"

Thanks and Regards,
Madeesha


On Tue, Mar 19, 2019 at 10:02 AM Manjula Rathnayake 
wrote:

> Hi Madeesha,
>
> If you are looking for a complete API management solution for your
> applications deployed on Heroku, I would recommend you to look at WSO2
> API Cloud Add-On .
>
> Recently I came up with a post on medium
> 
>  explaining a set of reasons why you should consider API Management for
> Heroku applications.
>
> (Note that I am an employee of WSO2, but you will find it useful to build
> your Heroku Integration solutions with any API Management solution.)
>
> Thank you.
>
>
> On Monday, March 18, 2019 at 3:29:29 PM UTC+5:30, Madeesha Fernando wrote:
>>
>> I have a backend application deployed on Heroku. I need to expose my
>> application as an API. what is the best way to do this?
>> Appreciate your valuable thought on this.
>>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Heroku" group.
>
> To unsubscribe from this group, send email to
> heroku+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/heroku?hl=en_US?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Heroku Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to heroku+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

To unsubscribe from this group, send email to
heroku+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/heroku?hl=en_US?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Heroku Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to heroku+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: how to expose app as API in Heroku?

2019-03-18 Thread Manjula Rathnayake
Hi Madeesha,

If you are looking for a complete API management solution for your 
applications deployed on Heroku, I would recommend you to look at WSO2 API 
Cloud Add-On . 

Recently I came up with a post on medium 

 explaining a set of reasons why you should consider API Management for 
Heroku applications.

(Note that I am an employee of WSO2, but you will find it useful to build 
your Heroku Integration solutions with any API Management solution.)

Thank you.


On Monday, March 18, 2019 at 3:29:29 PM UTC+5:30, Madeesha Fernando wrote:
>
> I have a backend application deployed on Heroku. I need to expose my 
> application as an API. what is the best way to do this?
> Appreciate your valuable thought on this.
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

To unsubscribe from this group, send email to
heroku+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/heroku?hl=en_US?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Heroku Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to heroku+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: how to expose app as API in Heroku?

2019-03-18 Thread crawford
What language/framework are you using? If it's a publicly accessible API 
you don't really need to do anything. Just make sure there aren't any 
authentication requirements and your route returns should be json instead 
of rendering any HTML. With flask, I recommend the flask.jsonify method. If 
you have any private endpoints, I'd recommend a 3rd party auth provider 
like auth0. 

On Monday, March 18, 2019 at 3:59:29 AM UTC-6, Madeesha Fernando wrote:
>
> I have a backend application deployed on Heroku. I need to expose my 
> application as an API. what is the best way to do this?
> Appreciate your valuable thought on this.
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

To unsubscribe from this group, send email to
heroku+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/heroku?hl=en_US?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Heroku Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to heroku+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.