Revision d076d573
Added by Joseph Magen over 11 years ago
- ID d076d5731d733bbc6210c81d3b11ed7d2ba8b9d7
app/views/api/v1/architectures/show.json.rabl | ||
---|---|---|
object @architecture
|
||
|
||
attributes :name, :id
|
||
|
||
|
||
attributes :name, :id, :created_at, :operatingsystem_ids, :updated_at
|
Also available in: Unified diff
This commit adds most of the functionality required for API v1
The overall goal was to extract the existing JSON response
overall controllers, and to move them to a seperate name space.
this include same request and response generated using
APIPIE_RECORD=examples rake test:api
whats missing:
1. Permissions checks for all new controllers
2. Nested routes (e.g. /hosts/id/reports)
3. running tests with oauth/basic_auth (instead of as_admin {get /})