Author |
Message
|
paustin_ours |
Posted: Wed Oct 12, 2016 3:15 pm Post subject: rest api as an integration project |
|
|
Yatiri
Joined: 19 May 2004 Posts: 667 Location: columbus,oh
|
trying to create a rest api flow without using integration service or restapi node. I dont even have a swagger doc. Can someone point me to a sample or notes on how to create a rest api without swagger?
mqinput--->compute-->httprequest
Please point me to any documentation if you can. thanks. |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Oct 13, 2016 3:48 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
REST is an HTTP concept.
Not an MQ one.
You can use an HTTPInput with the JSON parser. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
Vitor |
Posted: Thu Oct 13, 2016 4:24 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mqjeff wrote: |
You can use an HTTPInput with the JSON parser. |
Or with an HTTPRequest one as shown in your post.
paustin_ours wrote: |
Can someone point me to a sample or notes on how to create a rest api without swagger? |
Same as creating a web service without a WSDL. Both WSDL and Swagger are just descriptions of data layouts in machine readable form. It's perfectly possible to create payloads that look like that long hand.
Swagger is a relatively new format; people were creating REST APIs long before it was developed. Also while Swagger is the most popular (and IBM preferred) documentation, it's not the only one so you could find this problem in future when someone hands you YAML and tells you to call the API. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Oct 13, 2016 4:27 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Vitor wrote: |
mqjeff wrote: |
You can use an HTTPInput with the JSON parser. |
Or with an HTTPRequest one as shown in your post. |
I need to get different coffee.
I'm happy to pretend I was confused by the lack of anything to process the result of the HTTPRequest. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
Vitor |
Posted: Thu Oct 13, 2016 4:44 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mqjeff wrote: |
I need to get different coffee. |
Or more coffee.
mqjeff wrote: |
I'm happy to pretend I was confused by the lack of anything to process the result of the HTTPRequest. |
We can go with that.
I'm prepared to assume that, inexplicably, this is a one way API. The OP has posted stranger designs in the past. Though not many. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Oct 13, 2016 4:55 am Post subject: Re: rest api as an integration project |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
paustin_ours wrote: |
Can someone point me to a sample or notes on how to create a rest api without swagger? |
Hopefully you should have at least a YAML doc.
Go to the website http://editor.swagger.io/#/ and ingest the YAML file.
Look at the menus and output the swagger file.
You can now load the swagger file in IIB.
If you have to start from scratch there is a good wizard in IIB 10.0.0.5.
Or start with building a YAML file...
Hope this helps  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|