This site has been archived. To learn more about our current products Ibexa Content, Ibexa Experience, Ibexa Commerce head over to the Ibexa Developer Portal
By
Thursday 13 June 2013 2:45:37 pm
(For french speaking people, a french version of this article is available on my own blog)
One part of the Public API and REST API workshop at the eZ Unconference 2013 was dedicated to a concrete demo of the eZ Publish REST API v2. I chose to build a completely static HTML5/JavaScript application to show that with a very few lines of code, it's possible to build a quite fancy application :-)
The code of this application is now available on Github in the eZunConf2013-REST-API-demo repository and you can install it in any recent enough eZ Publish 5 setup. With a modern browser supporting the getUserMedia/Stream API, it allows to take a photo with your computer webcam and to create the corresponding Image content in eZ Publish! Here's a quick screencast showing it in action:
You can imagine such feature on any site where you want the users to have a proper picture profile for instance a social network, a company intranet, a community website, ...
For others technical details, I let you examine the JavaScript source code. Please be lenient on the code, this example was really build in a hurry and to be as easy as possible to understand. I hope I'll find the time to create a better and a more advanced example soon.