commit | 83eb2a7303c3d0540f0f78b60cbcd386158096b3 | [log] [tgz] |
---|---|---|
author | Jian Li <pyguni@gmail.com> | Fri Jan 03 02:09:03 2020 +0900 |
committer | Jian Li <pyguni@gmail.com> | Sat Jan 04 01:24:38 2020 +0900 |
tree | d93b59482e9f09917a2f32311462dbc3de1d5043 | |
parent | d376e0669d0a25d6edd6b7d0e9fd8fe7b9c4d422 [diff] |
Fix: add JSON consume type to support postOnBoardNode K8S REST API Change-Id: Ic6992228f92bb8867749237fa7aa9115840c5398
diff --git a/apps/k8s-node/app/src/main/java/org/onosproject/k8snode/web/K8sNodeWebResource.java b/apps/k8s-node/app/src/main/java/org/onosproject/k8snode/web/K8sNodeWebResource.java index 1786f4c..2f12f25 100644 --- a/apps/k8s-node/app/src/main/java/org/onosproject/k8snode/web/K8sNodeWebResource.java +++ b/apps/k8s-node/app/src/main/java/org/onosproject/k8snode/web/K8sNodeWebResource.java
@@ -258,6 +258,7 @@ * if the JSON is malformed, and 304 NOT_MODIFIED without the updated config */ @PUT + @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) @Path("update/postonboard/{hostname}") public Response postOnBoardNode(@PathParam("hostname") String hostname) {