Fixes #6854 - Api status allowed for all users
(cherry picked from commit 7267e023e6db34db8ebb3ba59f4be4b8d0e07624)
fixes #3960 - wrap APIv2 errors in an "error" node
fixes #2248 adds api controllers and actions to access_permissions.rb
Load the apipie documentation when calling '/api'
The documentation is used to list the links for the resources. We makesure it's loaded.
This commit adds most of the functionality required for API v1
The overall goal was to extract the existing JSON responseoverall controllers, and to move them to a seperate name space.
api v1 - render errors with rabl
better detection of permission failure in modelfix ApiConstraintscatch bad routes in api and return json
api v1 - render home#index links from restapi
fixes #1775 - API versioning name space