Actions
Bug #2086
closedUnable to use /api/puppetclasses/:id
Description
Returns:
{
"error": {
"message": "Missing template api/v1/puppetclasses/show with {:formats=>[:json], :locale=>[:en, :en], :handlers=>[:rxml, :erb, :rjs, :rhtml, :builder, :rabl]} in view paths \"/usr/share/foreman/app/views\", \"/usr/lib/ruby/gems/1.8/gems/apipie-rails-0.0.13/app/views\""
}
}
Updated by Joseph Magen almost 11 years ago
- Status changed from New to Feedback
There is no :show action in v1/puppetclasses_controller which is why you are getting the missing template error.
The functionality that you are looking for does exist in v2. Just pass version=2 in the header like this
curl -s -H "Accept:application/json,version=2" -k -u $USER:$PASS --get https://$HOST/api/puppetclasses/10
Updated by Joseph Magen almost 11 years ago
- Description updated (diff)
- Status changed from Feedback to Closed
Actions