Dispatcher is a front controller of whole api.
Also sends 404 response if request is not matched with an endpoint.
Basic implementation of dispatcher - do exactly what is described in the previous section.
Adds decorators for advanced handling of request and response transformations.
For more information see chapter about decorators
Adds possibility to return scalar or array from endpoint - raw data are transformed into response with status 200 and Content-Type application/json.
Used by default (but could be overriden by decorator plugin)