Forum Discussion

JustinM89's avatar
JustinM89
Contributor
8 years ago

Organize REST services?

Is there anyway to organize services, say into folders or logical groupings? Currently we have 50+ services all in a giant, unorganized, unordered, unreadable list and it makes adding a new REST request difficult, because to find the correct service, you've just got to scroll through the list until you find it.

 

Sorry if this isn't the right board for this, but I couldn't find any kind of "suggestions" board.

1 Reply

  • I you had provided a screenshot of how your current structure looks like, it would have been easier to suggest a solution. 

     

    1. If you right click a project add rest resource from URI. Each would become separate end points and eventually you'll end up having a lot of end points

     

         Service 1 : http://example.com/customer

         Service 2 : http://example.com/customer/orders

     

    2.  Better is, let's assume you have already created service 'http://example.com/customer'

         To add /customer/orders service, right click on "http://example.com" end point and add new resource

          Give resource path as relative path  '/customer/orders'

     

         You'll end up with a structure like

          http:/example.com 

                                       - > /customer                   (Service 1)

                                      - >  /customer/orders         (Service 2)

     

    3.   Another way is, let's assume again you have already created service 'http://example.com/customer'

         Right click on 'http://example.com/customer' service and select new child resource.

         Give resource path as relative path '/orders'

     

         You'll end with a structure like below

         http://example.com - >

                                          ->customer                        (Service 1)

                                                           ->orders             (Service 2)

     

     

    Play around with options 2 and 3 to organize service which suits your need.

     

    Cheers!

    Gilu Gopi