Project

General

Profile

Actions

Bug #2086

closed

Unable to use /api/puppetclasses/:id

Added by Jan Vansteenkiste over 11 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
API
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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\""
}
}

Actions #1

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

Actions #2

Updated by Joseph Magen almost 11 years ago

  • Description updated (diff)
  • Status changed from Feedback to Closed
Actions

Also available in: Atom PDF