pre-con ed: ca live api creator:  using javascript to invoke existing code, load libraries and...

Post on 10-Jan-2017

43 Views

Category:

Technology

2 Downloads

Preview:

Click to see full reader

TRANSCRIPT

World®’16

PreCon Ed:Extensibility

ValHuber,ConsultingEngineer,CA

D03X102LV

DEVOPS

2 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

©2016CA.Allrightsreserved.Alltrademarksreferencedhereinbelongtotheirrespectivecompanies.

Thecontentprovidedinthis CAWorld2016presentationisintendedforinformationalpurposesonlyanddoesnotformanytypeofwarranty. The informationprovidedbyaCApartnerand/orCAcustomerhasnotbeenreviewedforaccuracybyCA.

ForInformationalPurposesOnlyTermsofthisPresentation

3 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Abstract– LiveAPICreatorExtensibility

WhileLACprovidesuniqueReactiveLogicforCreatingAPIs,supportforserver-sideJavaScriptprovidesfullextensibilityinafamiliarlanguage. Inthissession,gethands-onexperienceandtraining:– CreateJavaScriptEventHandlersandmakeRESTfulanddatabasecalls.

– InvokeyourexistingJavacode,loadJava/JavaScriptlibraries,andcreateyourown.

– Usethenewdebuggertostopinyourcode– allintheBrowser,noIDEtoinstall

andconfigure.

ValHuber

CAConsultingEngineer

Itdon’tmeanathingIfitain’t gotthatswing

4 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Agenda

WHYAPIS

WHAT’STHEPROBLEM

OURAPPROACH

WHEREAREWENOW

JAVASCRIPT EVENTEXAMPLE– CREATING,DEBUGGING

1

2

3

4

5

SUMMARY6

5 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

APIServers…EnablingtheAppEconomyWiththeAgility toCompete

Web

Mobile

Partners

WebHooks

DBsAPI

Server

OmniChannelBusiness

Shippers,Suppliers

1Integration

3

2

Logic

6 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

APIServers– WayMoreThanRestEnterprise-classAPIs…NotToys

Logic

Integration

DataAndtherealworkishere

NestedDocumentsPaginationOptimisticLockingAPI

7 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

APIServers…fortheAppEconomyConventionalApproachProvides…Stubs?!!

Web

Mobile

Partners

WebHooks

DBsAPI

Server

OmniChannelBusiness

Shippers,Suppliers

1Integration

3

2

LogicRaml,SwaggerStubsRestify Schema(?)

YourCodeGoes..Where?

8 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

APIServerAgilityfortheAppEconomy

Web

Mobile

Partners

WebHooks

DBsAPI

Server

OmniChannelBusiness

Shippers,Suppliers

1Integration

3

2

Logic

IntegrationLogic§ Webhook Creation§ Webhook Processing§ SalesForce,SAP,…

ReactiveLogic§ Multi-TableDerivationsandValidations§ Row/ColumnSecurity§ Extensible– JavaScript,Libraries§ AutomaticObjectModel

APILogic- Automated

ClientLogic§ Read/Write§ Display§ MobileAppServices

9 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

WhereAreWeNow

1. StartLAC3/Start.bat

2. StartChrome– clickbookmark

Alreadyinstalled(JDK,unzip)– togetstarted…

10 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Developers

BusinessUsers

ExistingDatabase

NewDatabase

Create/Customize

API

ReactiveLogic&Security

CustomClientDev

CreateDBServer

DBCoding Parallelized

DevelopmentActivities

Iterate

Bottom-Up

Top-Down

Code-First

Northwind

HowThreewaystostart;stayparallel;iterate

11 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

LabObjectives

§ Retrieval– integrateRESTfuldata

§ CustomEndpoints

§ Update– B2BIntegration

§ LoggingandDebug

FollowalongwiththeInstructor

12 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ExtensibilityExample:JavaScriptResourceType

CombineDataSourcewith

ExternalRESTfuldata

13 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ExtensibilityExample:CustomEndpoints

Codeyourown

endpoint

14 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ExtensibilityExample:Integration

AutomaticObjectModel

Discovery– CodeCompletion

Resources– point/clickmapping

andtransformation

Extensibility– LoadableLibraries

15 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ResourceDefinition

AutomaticObjectModel

Discovery– CodeCompletion

Resources– point/clickmapping

andtransformation

Extensibility– LoadableLibraries

16 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

LoadableLibraries

AutomaticObjectModel

Discovery– CodeCompletion

Resources– point/clickmapping

andtransformation

Extensibility– LoadableLibraries

17 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Debugging- Logs

Logging

18 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Debugging- Debugger

Debugger

19 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ExtensibilitywithJavaScript

Events

AutomaticObjectModel

CodeCompletion

Debugger

APIsRequireLogic…NotAgile

ThinAPIsareincompletewithoutthecriticallogicandintegration.

Andthat’swheremostoftheworklies– notagile.

AgilityviaReactiveLogic

InnovativeReactiveLogic:40Xmoreconcise*

APIswithLogicandIntegration

N-foldfaster thanconventionalcoding.

APIs– TableStakesfortheAppEconomyWith,AgilitytoCompete

*BasedonCA’sinternaltestingandcustomerinterviews.

20 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

RecommendedSessions

SESSION# TITLE DATE/TIME

DO3T16TV ReactiveLogic 11/16/2016at10:00am

DO3T17TV IntegrationStrategies 11/17/2016at11:30am

DO3T15TV Myth:LowCodeisaToy 11/17/2016at03:45pm

Innovation,EmpoweringAgilityfortheAppEconomy

http://www.ca.com/us/trials.html

21 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Questions?

22 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Thankyou.

Stayconnectedatcommunities.ca.com

top related