John Speidel created AMBARI-6201:
------------------------------------
Summary: Fix sub-resource names in /stacks API
Key: AMBARI-6201
URL: https://issues.apache.org/jira/browse/AMBARI-6201
Project: Ambari
Issue Type: Bug
Affects Versions: 1.6.0
Reporter: John Speidel
Assignee: John Speidel
Fix For: 1.6.1
The /stacks api uses sub-resource names such as stackServices and
serviceComponents instead of services and components which are the names of the
resources specified in the URL. These incorrect resource names would need to
be used in any queries for stack resources.
For example:
To get stack service named HDFS the URL would be:
api/v1/stacks/HDP/versions/2.1/services/HDFS
But, if we wanted to do a query of for HDFS services across all versions:
api/v1/stacks/HDP/versions?stackServices/StackServices/service_name=HDFS
Instead this should be:
api/v1/stacks/HDP/versions?services/StackServices/service_name=HDFS
Fix all sub-resource names that are returned and fix sub-resource names used in
queries and partial response.
--
This message was sent by Atlassian JIRA
(v6.2#6252)