An example of creating API using Zend Framework 2