aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Musum <musum@yahoo-inc.com>2017-06-13 07:55:28 +0200
committerGitHub <noreply@github.com>2017-06-13 07:55:28 +0200
commit9b0fe5a78568d5f2f191fbc8593ca0a7c3b7bb9b (patch)
tree3583f1b2c3a8937a9c41b28cd49dfe58cbbd30ca
parenta5882c6d0116c41ababf2d830cd786cca010b361 (diff)
parent43042ebcc90fb6e74a27c360c72c9b29f42dc000 (diff)
Merge pull request #2721 from yahoo/hakon/use-put
Use PUT
-rw-r--r--orchestrator-restapi/src/main/java/com/yahoo/vespa/orchestrator/restapi/HostApi.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/orchestrator-restapi/src/main/java/com/yahoo/vespa/orchestrator/restapi/HostApi.java b/orchestrator-restapi/src/main/java/com/yahoo/vespa/orchestrator/restapi/HostApi.java
index e5ff92011da..b389ac37aa3 100644
--- a/orchestrator-restapi/src/main/java/com/yahoo/vespa/orchestrator/restapi/HostApi.java
+++ b/orchestrator-restapi/src/main/java/com/yahoo/vespa/orchestrator/restapi/HostApi.java
@@ -1,7 +1,6 @@
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.orchestrator.restapi;
-import com.yahoo.vespa.jaxrs.annotation.PATCH;
import com.yahoo.vespa.orchestrator.restapi.wire.GetHostResponse;
import com.yahoo.vespa.orchestrator.restapi.wire.PatchHostRequest;
import com.yahoo.vespa.orchestrator.restapi.wire.PatchHostResponse;
@@ -42,8 +41,9 @@ public interface HostApi {
/**
* Tweak internal Orchestrator state for host.
+ * Note: This should really be a patch method, but I was unable to get that working with PATCH from jaxrs_utils!?
*/
- @PATCH
+ @PUT
@Path("/{hostname}")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)