Revision d076d573
Added by Joseph Magen over 11 years ago
- ID d076d5731d733bbc6210c81d3b11ed7d2ba8b9d7
- added
- modified
- copied
- renamed
- deleted
- .gitignore (diff)
- app
- controllers
- api
- base_controller.rb (diff)
- v1
- architectures_controller.rb (diff)
- audits_controller.rb
- auth_source_ldaps_controller.rb
- bookmarks_controller.rb (diff)
- common_parameters_controller.rb
- compute_resources_controller.rb
- config_templates_controller.rb (diff)
- dashboard_controller.rb (diff)
- domains_controller.rb (diff)
- environments_controller.rb (diff)
- fact_values_controller.rb
- home_controller.rb (diff)
- hostgroups_controller.rb
- hosts_controller.rb
- images_controller.rb
- lookup_keys_controller.rb
- media_controller.rb (diff)
- models_controller.rb
- operatingsystems_controller.rb (diff)
- ptables_controller.rb
- puppetclasses_controller.rb
- reports_controller.rb
- roles_controller.rb
- settings_controller.rb
- smart_proxies_controller.rb
- subnets_controller.rb (diff)
- usergroups_controller.rb
- users_controller.rb (diff)
- auth_source_ldaps_controller.rb (diff)
- hosts_controller.rb (diff)
- api
- models
- bookmark.rb (diff)
- image.rb (diff)
- lookup_key.rb (diff)
- report.rb (diff)
- views
- controllers
- config
- doc
- lib
- test
- fixtures
- functional
- api
- v1
- architectures_controller_test.rb (diff)
- audits_controller_test.rb
- auth_source_ldaps_controller_test.rb
- bookmarks_controller_test.rb (diff)
- common_parameters_controller_test.rb
- compute_resources_controller_test.rb
- config_templates_controller_test.rb (diff)
- dashboard_controller_test.rb (diff)
- domains_controller_test.rb (diff)
- environments_controller_test.rb (diff)
- fact_values_controller_test.rb
- home_controller_test.rb
- hostgroups_controller_test.rb
- hosts_controller_test.rb
- images_controller_test.rb
- lookup_keys_controller_test.rb
- media_controller_test.rb (diff)
- models_controller_test.rb
- operatingsystems_controller_test.rb (diff)
- ptables_controller_test.rb
- puppetclasses_controller_test.rb
- reports_controller_test.rb
- roles_controller_test.rb
- settings_controller_test.rb
- smart_proxies_controller_test.rb
- subnets_controller_test.rb (diff)
- usergroups_controller_test.rb
- users_controller_test.rb (diff)
- v1
- environments_controller_test.rb (diff)
- fact_values_controller_test.rb (diff)
- lookup_keys_controller_test.rb (diff)
- subnets_controller_test.rb (diff)
- api
- unit
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 /})