ServerMania logo

Get Recipe Group Details

To view the list of recipe groups, use the following request:

GET /recipe_groups/:recipe_group_id.xml
GET /recipe_groups/:recipe_group_id.json

XML Request Example

curl -i -X GET -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:userpass --url http://test/recipe_groups/6.xml

JSON Request Example

curl -i -X GET -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass --url http://test/recipe_groups/6.json

Where you have to specify the recipe group ID.

XML Output Example

<recipe_group>
  <created_at type="datetime">2013-05-24T08:54:13+00:00</created_at>
  <depth type="integer">1</depth>
  <id type="integer">6</id>
  <label>Decomissioning</label>
  <lft type="integer">8</lft>
  <parent_id type="integer">1</parent_id>
  <rgt type="integer">9</rgt>
  <updated_at type="datetime">2013-05-24T08:54:13+00:00</updated_at>
</recipe_group>

Where:

label – the group name

id - recipe group ID

label - template group name

parent_id - id of the target recipe group

lft - left nested set identifier

rgt - right nested set identifier

depth - the depth of a given node (distance from this template group to the root)

created_at – the date when the recipe group was created

updated_at – the date when the recipe group was updated