[ 
https://issues.apache.org/jira/browse/AMBARI-6816?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Srimanth Gunturi resolved AMBARI-6816.
--------------------------------------

    Resolution: Fixed

+1 received. Committed to trunk.

> POST calls to /recommendations and /validations should return 200-OK
> --------------------------------------------------------------------
>
>                 Key: AMBARI-6816
>                 URL: https://issues.apache.org/jira/browse/AMBARI-6816
>             Project: Ambari
>          Issue Type: Task
>          Components: controller
>    Affects Versions: 1.7.0
>            Reporter: Srimanth Gunturi
>            Assignee: Srimanth Gunturi
>             Fix For: 1.7.0
>
>         Attachments: AMBARI-6816.patch
>
>
> Currently POST calls to /recommendations and /validations return 201-Created 
> along with body with no URI for the resources created. 
> According to the HTTP spec:
> {code}The action performed by the POST method might not result in a resource 
> that can be identified by a URI. In this case, either 200 (OK) or 204 (No 
> Content) is the appropriate response status, depending on whether or not the 
> response includes an entity that describes the result.{code}
> Both above API should return 200-OK instead of 201 as they return resources 
> without an URI.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to