Manage RESTFUL Services

Eight Stars

Manage RESTFUL Services

I have multiple RESTFul services running on OpenStudio ESB version Runtime Container.

/services/id/<id> --> GET
/services/id/ --> POST
/services/all/ --> GET
and so on

I have a need where I need to bring down a service for maintenance (not all). Eg. If I need to bring down just the POST service....

 

What are the options I have?

Thanks

Thirteen Stars

Re: Manage RESTFUL Services

I not position my self as great expert in ESB part, but what do personally:

 

1. if You want manage services separate - have it as separate Job, it could make different URI path
2. For some operations (some services) I have in database "maintenance" setting parameter - when it enabled, service just return message - "maintenance mode". No problem add this settings for different URI in same Job

  

-----------
Eight Stars

Re: Manage RESTFUL Services

Hello @vapukov: Can you share some more details on option 2? I think that may be easy to implement. Any sample job/ screenshot will be appreciated. Thank you.
Thirteen Stars

Re: Manage RESTFUL Services

first step - define variable (as result of check DB):

Screen Shot 2018-02-17 at 8.23.45 PM.png

Screen Shot 2018-02-17 at 8.25.21 PM.png

 

all other RuIf triggers - check this Status (and other), and fire only if Status = 1

if not - final response:

Screen Shot 2018-02-17 at 8.24.21 PM.png

it return to Client JSON,with Status == "EXO operation disabled""

 

 

-----------
Eight Stars

Re: Manage RESTFUL Services

@vapukov: Thanks. This is helpful.

Cloud Free Trial

Try Talend Cloud free for 30 days.

Tutorial

Introduction to Talend Open Studio for Data Integration.

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.