-
Notifications
You must be signed in to change notification settings - Fork 286
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
updates for v2 API and ping controller #3438
Conversation
def respond_for_show(options = {}) | ||
respond_with_template_resource(options[:template] || 'show', controller_name, options) | ||
end | ||
COLLECTION_ROOT = "results" |
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.
Why set the collection root here instead of directly in the template?
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.
no particular reason. i can move.
going to use layouts instead of templates inside of templates. layouts shouldn't break tests |
these files were moved: app/views/api/v2/common/collection_resource.json.rabl --> app/views/katello/api/v2/common/collection_resource.json.rabl app/views/api/v2/common/single_resource.json.rabl --> app/views/katello/api/v2/common/single_resource.json.rabl
also included is optional root-node for single resource responses Conflicts: app/controllers/katello/api/v2/api_controller.rb
closing due to merge of PR continued in #3462. |
will be included in a separate PR that contains collection responses