The Power of APIs
Post on 31-Aug-2014
270 Views
Preview:
DESCRIPTION
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
Sources
Entando REST API Engine https://github.com/entando/Entando/wiki/Entando-REST-API-Engine
Entando Wiki https://github.com/entando/Entando/wiki
Entando Portalwww.entando.com
Thanks
www.entando.comr.bonazzo@entando.com
@Entando
linkedin.com/company/Entando
facebook.com/Entando
Follow us
top related