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

Chamila de Alwis updated STRATOS-1319:
--------------------------------------
    Description: 
Previously, the PATCH method together with the following resource path was used 
to update the Kubernetes-CoreOS Host via REST API:
kubernetesClusters/<kubernetesClusterId>/minion/<minionId>

However, now the PUT method together with the following resource path is 
available to update the Kubernetes-CoreOS Host via REST API:
/kubernetes/update/host

Furthermore, I had to pass the "clusterId" property as well in the JSON that 
defined the Kubernetes-CoreOS host for it to get executed successfully.

----------------------------------
Issues:
(1.) The following resource path does not follow the REST API standard format 
that has been used for all Stratos API resource paths (i.e., "update" should 
not be explicitly stated in the resource path, "kubernetes" should be 
"kubernetesClusters")

(2)
The "clusterId" should be passed in the resource path rather than getting the 
user to pass it in the Kubernetes-CoreOS Host payload.


Current - /kubernetes/update/host
Expected - /kubernetesClusters/{kubernetesClusterId}/hosts/{hostId}

  was:
Previously, the PATCH method together with the following resource path was used 
to update the Kubernetes-CoreOS Host via REST API:
kubernetesClusters/<kubernetesClusterId>/minion/<minionId>

However, now the PUT method together with the following resource path is 
available to update the Kubernetes-CoreOS Host via REST API:
/kubernetes/update/host

Furthermore, I had to pass the "clusterId" property as well in the JSON that 
defined the Kubernetes-CoreOS host for it to get executed successfully.

----------------------------------
Issues:
(1.) The following resource path does not follow the REST API standard format 
that has been used for all Stratos API resource paths (i.e., "update" should 
not be explicitly stated in the resource path, "kubernetes" should be 
"kubernetesClusters")
Current - /kubernetes/update/host
Expected - /kubernetesClusters/{kubernetesClusterId}/hosts/{hostId}
(2)
The "clusterId" should be passed in the resource path rather than getting the 
user to pass it in the Kubernetes-CoreOS Host payload.



> Issues with updating the Kubernetes-CoreOS Host
> -----------------------------------------------
>
>                 Key: STRATOS-1319
>                 URL: https://issues.apache.org/jira/browse/STRATOS-1319
>             Project: Stratos
>          Issue Type: Bug
>          Components: REST API
>    Affects Versions: 4.1.0 Alpha
>            Reporter: Mariangela Hills
>
> Previously, the PATCH method together with the following resource path was 
> used to update the Kubernetes-CoreOS Host via REST API:
> kubernetesClusters/<kubernetesClusterId>/minion/<minionId>
> However, now the PUT method together with the following resource path is 
> available to update the Kubernetes-CoreOS Host via REST API:
> /kubernetes/update/host
> Furthermore, I had to pass the "clusterId" property as well in the JSON that 
> defined the Kubernetes-CoreOS host for it to get executed successfully.
> ----------------------------------
> Issues:
> (1.) The following resource path does not follow the REST API standard format 
> that has been used for all Stratos API resource paths (i.e., "update" should 
> not be explicitly stated in the resource path, "kubernetes" should be 
> "kubernetesClusters")
> (2)
> The "clusterId" should be passed in the resource path rather than getting the 
> user to pass it in the Kubernetes-CoreOS Host payload.
> Current - /kubernetes/update/host
> Expected - /kubernetesClusters/{kubernetesClusterId}/hosts/{hostId}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to