-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
api v2 - systems actions #3514
api v2 - systems actions #3514
Conversation
komidore64
commented
Dec 16, 2013
- - create
- - index
- - show
- - update
- - destroy
- - tasks
- - add_system_groups
- - remove_system_groups
- - package_profile
- - report
- - errata
- - pools
- - releases
- - activate
- - enabled_repos
- - refresh_subscriptions
- - tests!!
- - squash commits
api :POST, "/systems", "Register a system" | ||
param_group :system | ||
api :POST, "/environments/:environment_id/consumers", "Register a system in environment (compatibility)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about leaving this one out so it isn't in docs nor available through apipie?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@thomasmckay have the compatibility routes no-doc'd? i'd be cool with that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removing the rhsm compatibility routes doco in a different PR
Missing param_rules? |
Ideally the v1 controller would be empty with all logic in v2. |
@thomasmckay well of course, ideally |
I had to edit param_rules to include search params (could be bad merge on my local pull-request branch?)
Also got an error on line 332
|
Please squash these commits before you merge so we don't end up with another mess in our git history. |
|
|
@daviddavis will do |
def param_rules | ||
{ | ||
:create => [:system, :facts, :installed_products, :name, :type, :cp_type, :service_level, :location, :content_view_id, :environment_id, :organization_id], | ||
:index => [:system, :name, :pool_id, :search, :uuid, :organization_id, :environment_id, :system_group_id], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still missing :paged, :page_size, :page, and :sort. Probably testable in the UI.
ack pending jenkins |