Project

General

Profile

Actions

Feature #2931

closed

API v2 hosts JSON response, add *_name for each *_id

Added by Joseph Magen over 10 years ago. Updated almost 6 years ago.

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

Description

Currently

host": {
"name": "fdev2.sat.lab.tlv.redhat.com",
"id": 394,
"ip": "10.35.27.3",
"operatingsystem_id": 42,
"environment_id": 1,

Wanted

host": {
"name": "fdev2.sat.lab.tlv.redhat.com",
"id": 394,
"ip": "10.35.27.3",
"operatingsystem_id": 42,
"operatingsystem_name": "Centos 6.3",
"environment_id": 1,
"environment_name": "Production",


Related issues 2 (0 open2 closed)

Related to Foreman - Feature #2945: Extend AR to add getter/setter methods *_names similar to *_idsClosedJoseph Magen08/18/2013Actions
Has duplicate Foreman - Bug #3098: _name for _id of associated resources are missing in API (rabl)DuplicateMartin Bacovsky09/16/2013Actions
Actions

Also available in: Atom PDF