The Power of APIs

Post on 31-Aug-2014

270 Views

Category:

Technology

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

Integration of data coming from third-party systems doesn't have to be a complicated matter. API Engines can help you save time and deliver high quality results and information in real time. Entando can easily help you display from a single point of access data coming from: Business Intelligence Suites (eg Jaspersoft or Pentaho) Customer Relationship Management systems (eg SugarCRM) Social Media Other 3rd Party Systems

Transcript

Entando Corporation

www.entando.com

Who we are

OSBCMarket traction

•• 50k+ downloads worldwide (US, India, Europe)

•• 100+ supported organizations

•• 40+ partners

Fast growing

•• CRN Emerging vendor 2013

•• Hot OSS company – OSBC 2012

•• Expanding globally

The Nexus of Forces

Social

Mobile

Information

Cloud

● Enterprise horizontal portal ● Web content management ● Framework features

All in one platform

What we offer

Topic of the day

The Power of APIs

Why REST APIs

● Rich web clients can talk directly with your Application● Useful when integrating multiple different clients● RESTful way takes less effort● Work out-of-the-box, no setup, just a design model● Standardize development

Creating an API on standards that already exist makes it much easier for application developers to use your API.

Guidelines

Entando REST APIs are designed with the following standards:

● Provide access to data & services via a standard JSON/XML-based Api

● All resources must be accessed using a base URI

<APPLICATION_BASE_URL>/api/rs/<LANG_CODE>/<NAMESPACE>/<RESOURCE_NAME>.<EXTENSION>?<QUERY_STRING>

myportal.com/api/rs/en/jcms/contents?contentType=CNG

myportal.com/api/rs/en/jcms/content.json?id=CNG51

● All response needs to be Self Documented

Building a Card Manager(Api Definition)

Building a Card Manager(Bean Definition)

Building a Card Manager

public class CardManager {public List<Card> getCardsForApi(Properties properties) throws Throwable { String holder = properties.getProperty("holder"); return this.searchCards(holder); } public Card getCardForApi(Properties properties) throws Throwable { String idString = properties.getProperty("id"); int id = 0; try { id = Integer.parseInt(idString); } catch (NumberFormatException e) { throw new ApiException(IApiErrorCodes.API_PARAMETER_VALIDATION_ERROR, "Invalid number format for 'id' parameter - '" + idString + "'", Response.Status.CONFLICT); }…

Entando REST APIs

Thanks

www.entando.comr.bonazzo@entando.com

@Entando

linkedin.com/company/Entando

facebook.com/Entando

Follow us

top related