From fc4e1b55bafe6c48e58103ae8478161f2019bb22 Mon Sep 17 00:00:00 2001 From: Phillip Wirth Date: Fri, 9 Feb 2024 09:38:49 +0100 Subject: [PATCH] change PUT for POST for easier usage in gh actions --- src/main/java/de/svs/NamespaceController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/svs/NamespaceController.java b/src/main/java/de/svs/NamespaceController.java index 4c86045..4cebf78 100644 --- a/src/main/java/de/svs/NamespaceController.java +++ b/src/main/java/de/svs/NamespaceController.java @@ -86,7 +86,7 @@ public TemplateInstance post(@FormParam("namespace") String namespace, @FormPara } - @PUT + @POST @Path("/createIfNotExistsAndWait") @RestStreamElementType(MediaType.TEXT_PLAIN) public RestMulti createIfNotExistsAndWait(NamespaceDto dto) { @@ -131,7 +131,7 @@ public RestMulti extendAndWait(NamespaceDto dto) { } } - @POST + @PUT @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) public NamespaceDto createNamespaceEntry(NamespaceDto dto) {