Manage RESTFUL Services

Highlighted
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

Highlighted
Forteen 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

  

-----------
Highlighted
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.
Highlighted
Forteen 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""

 

 

-----------
Highlighted
Eight Stars

Re: Manage RESTFUL Services

@vapukov: Thanks. This is helpful.

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

An API-First Approach to Modernizing Applications

Learn how to use an API-First Approach to Modernize your Applications

Watch Now

Talend API Designer – Technical Overview

Take a look at this technical overview video of Talend API Designer

Watch Now

Getting Started with APIs

Find out how to get started with APIs

Read