Download - Joomla REST API
Joomla REST API
CTO, TechjoomlaDirector, Tekdi Web Solutions@coolbung | @techjoomlawww.techjoomla.com
My Joomla! connection
5-star personality on the Joomla Forum
Started using Joomla since Mambo days
Using Joomla since 1.0
Webservices working group co-ordinator
Did you check-in ?
How did it happen ?
ScanQR CodeExtractTicket IDValidateTicket IDSendWelcome EmailShow Message
You buy a ticket!
REST What ?
Representational State Transfer
A web page is a human readable representation
A webservice is a machine readable representation
REST piggybacks on HTTP
Hidden workhorse to integrate with external applications
https://search.twitter.com/search.json?q=jd13in&result_type=all
https://twitter.com/search/realtime?q=jd13in
Human Readable Web Page
Machine Readable Web Service
REST APIs
What is a REST API?Machine readable data
A way to interact with data over HTTPPOST = CreateGET= ReadPUT= UpdateDELETE= Delete
Why do I need REST APIs ?
INSERT INTO jos_users (name, username, email, password, block)VALUES ('James Bond', '[email protected]', '[email protected]', MD5(007), 0)
INSERT INTO jos_user_usergroup_map VALUES(62, 8)
My JAVA app
My Joomla! website
What do I do then ?
index.php?option=com_api&app=users&resource=createuser&format=raw
[POST]name= Ashwin Dateusername= [email protected]= [email protected]= supersecretkey= 4358a6fc7470713c79f31b163558a2639b3036ed
Cool! What else can I do ?
Tell me more.. who else uses it ?
Who else ?
News apps Look at http://infochangeindia.org/ic/
Reportoise Sales Reports
Zoo Image browser
Snappcloud
Did anyone say Enterprise ?
A fortune 500 semiconductor company, for a HTML5 based Desktop app.Managing a repository of 100,000 micro products
Product approval workflow
Mobile LMS Using Joomla
Another upcoming app from Techjoomla..
Already in use by Enterprise in Healthcare, Marketing & more
!
Take a course on iPad
Go through a few lessons
Go meet your girlfriend
Come back and start the course on your PC
Fortunately the iPad spoke REST
Uploaded your progress to the Web LMS
You can resume where you left off
Content Synchronization
Subordinate creates articles in Joomla on staging server
Manager saves and views article on staging server
Manager then 'pushes' an approved article over to production
The staging & production site speak REST
Preventive Maintenance
APIAgent
New machine provisioningMaintenanceannouncements
Electronic monitoring of machines - like a drill
'Vital stats' like temperature, vibrations monitored
Deviations send alerts to engineers & management
Causes discussed on private forum and conclusion archived for future reference
Preventive Maintenance
Current Drawbacks
Need to write plugins
Small amount of code rewrite
Components not using Joomla MVC may need a lot of plugin code
What's Available
Jomsocial
Joomla Articles & Categories
Some of AEC
Few Ideas
view.json.php
restcontroller.php
format=json
Next Steps
Discussion on integrating Framework on Framework (FOF) into Joomla core
FOF gives access to RESTful json data
Build on top of it to implement all of POST/GET/PUT/DELETE and various HTTP codes
Re-use existing 'models' to fetch data objects
Please join in!
Webservices working grouphttp://docs.joomla.org/Web_Services_Working_Group
Code on githubhttps://github.com/techjoomla/com_api-pluginshttps://github.com/techjoomla/com_api
Joomla! General Development Google Grouphttps://groups.google.com/forum/?fromgroups=#!forum/joomla-dev-general
Thank You
Ashwin DateTwitter : @coolbung / @techjoomlaEmail : [email protected]://www.slideshare.net/coolbung