Seamless integration with Magnolia's REST API
Transcript of Seamless integration with Magnolia's REST API
Magnolia Conference • Thursday, June 11, 2015 • Basel, Switzerland, Europe, Earth, Solar System, Milky Way
Seamless integration with Magnolia's REST API
2
Jan HaderkaZak Greant
#mconf15 @zakgreant @rah003
4
Magnolia 5.4
Flickr / Yoel Ben-Avraham
#mconf15
new /commands endpoint
magnolia-rest API v2
@zakgreant @rah003
6
Endpoints
Properties
Cache Commands
Unsplash
Nodes
#mconf15 @zakgreant @rah003
9 Flickr / Kenny Louie
#mconf15 Flickr / Isa Dubach
Flickr / Kenny Louie
Mikaël Espen messages endpoint
AngularJS messenger app@zakgreant @rah003
10
Magnolia IS rest CLIENT
Flickr / Kenny Louie
#mconf15 @zakgreant @rah003
11
Magnolia IS rest client
Flickr / Kenny Louie
#mconf15
Smarter Commerce integration
@zakgreant @rah003
13
Magnolia IS rest client
Flickr / Kenny Louie
#mconf15
Canto Cumulus integration
Websphere Commerce integration
Sugar CRM integration
Eloqua integration**ANY** integration
@zakgreant @rah003
14
WHY?
Flickr / Kenny Louie
#mconf15
Let your users manage content via single interface
@zakgreant @rah003
15
WHY?
Flickr / Kenny Louie
#mconf15
Provide nicer UI
@zakgreant @rah003
16
WHY?
Flickr / Kenny Louie
#mconf15
It’s hip/cool?
@zakgreant @rah003
17
WHY?
Flickr / Kenny Louie
#mconf15
Everybody does that?
@zakgreant @rah003
18 Flickr / Kenny Louie
#mconf15
Example of querying Node
@zakgreant @rah003
curl --user superuser:superuser http://localhost:8080/.rest/nodes/v1/events/0
#mconf15 @zakgreant @rah003
20 Flickr / Kenny Louie
#mconf15
Example of querying Property
@zakgreant @rah003
curl --user superuser:superuser http://localhost:8080/.rest/properties/v1/website/travel/title
#mconf15 @zakgreant @rah003
22 Flickr / Kenny Louie
#mconf15
Example of executing command
@zakgreant @rah003
curl --user superuser:superuser http://localhost:8080/.rest/commands/v2/default/version?path=/travel
#mconf15 @zakgreant @rah003
24 Flickr / Kenny Louie
#mconf15
Example of building custom end point
@zakgreant @rah003
# Let’s scratch this preso and go live!# Much more RESTful ... and entertaining
#mconf15 @zakgreant @rah003