Defining Multiple REST End Points in Visual Builder – A Best Practice by Shay Shmeltzer

image

Visual Builder Cloud Service makes it very easy to add REST services to your application – through the "new service connection" wizard you specify the URL to any REST service and a new entry is created for you. However, here is a small tip that will make your application management and performance better when you are leveraging multiple services from the same source – gather them into a single service.

A service connection in VBCS can have multiple end-point defined in it. If you just run through the wizard for adding a service – each end point will create a new service definition. The best practice is to add new endpoint definition into the same service definition when possible.

Let’s work through an example:

We’ll use a set of services about countries available here:

https://restcountries.eu/#api-endpoints-code

You’ll see for example these services there:

· https://restcountries.eu/rest/v2/name/{name}?fullText=true

· https://restcountries.eu/rest/v2/alpha/{code}

The right way to add both to your project is:

1. Use the "Create Service" wizard to add the first end point:

Going through the wizard will end up with a place for you to define the specific end point: Read the complete article here.

 

Developer Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

clip_image003 Blog clip_image005 Twitter clip_image004 LinkedIn image[7][2][2][2] Facebook image Meetups

Technorati Tags: PaaS,Cloud,Middleware Update,WebLogic, WebLogic Community,Oracle,OPN,Jürgen Kress

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.