|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
[Solved] Question regarding REST API definition |
« View previous topic :: View next topic » |
Author |
Message
|
ladman |
Posted: Mon Jan 08, 2018 10:55 pm Post subject: [Solved] Question regarding REST API definition |
|
|
Newbie
Joined: 07 Mar 2012 Posts: 3
|
Hi everyone.
I want to design my REST API so that I can expose a service where the user can request f.ex all albums by a given artitst, in this way:
HTTP GET ".../artist/{id}/albums" where id identifies the artist that I want to list albums for.
I've tried in the REST API definition in IIB Toolkit to define this under Resources, but have not been successfull.
Is it possible to do this With IIB? I have this Version of the Toolkit:
Version: 10.0.0.10
Build id: 10.0.0.10-20170824-1116
Cheers,
LadMan
Last edited by ladman on Thu Jan 11, 2018 6:12 am; edited 1 time in total |
|
Back to top |
|
 |
Vitor |
Posted: Tue Jan 09, 2018 5:51 am Post subject: Re: Question regarding REST API definition |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
ladman wrote: |
I've tried in the REST API definition in IIB Toolkit to define this under Resources, but have not been successfull. |
Define "not successful".
Have you tried the same definition in a SWAGGER editor?
On the face of it, that doesn't seem like a very difficult API to define. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
ladman |
Posted: Thu Jan 11, 2018 6:11 am Post subject: Re: Question regarding REST API definition [Solved] |
|
|
Newbie
Joined: 07 Mar 2012 Posts: 3
|
Vitor wrote: |
Define "not successful".
|
I didn't realize it was just to add the same syntax in the Resource definition in IIB. So this one is solved now. By creating a Resource as f.ex: "/artist/{artistId}/albums"
Vitor wrote: |
On the face of it, that doesn't seem like a very difficult API to define.
|
I agree. And when you know how to, it is not difficult to define it either.
Thanks.  |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|