ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » [Solved] Question regarding REST API definition

Post new topic  Reply to topic
 [Solved] Question regarding REST API definition « View previous topic :: View next topic » 
Author Message
ladman
PostPosted: Mon Jan 08, 2018 10:55 pm    Post subject: [Solved] Question regarding REST API definition Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Tue Jan 09, 2018 5:51 am    Post subject: Re: Question regarding REST API definition Reply with quote

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
View user's profile Send private message
ladman
PostPosted: Thu Jan 11, 2018 6:11 am    Post subject: Re: Question regarding REST API definition [Solved] Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » [Solved] Question regarding REST API definition
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.