Skip to content

Commit

Permalink
change PUT for POST for easier usage in gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Loki-Afro committed Feb 9, 2024
1 parent f5af497 commit fc4e1b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/de/svs/NamespaceController.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public TemplateInstance post(@FormParam("namespace") String namespace, @FormPara
}


@PUT
@POST
@Path("/createIfNotExistsAndWait")
@RestStreamElementType(MediaType.TEXT_PLAIN)
public RestMulti<OutboundSseEvent> createIfNotExistsAndWait(NamespaceDto dto) {
Expand Down Expand Up @@ -131,7 +131,7 @@ public RestMulti<OutboundSseEvent> extendAndWait(NamespaceDto dto) {
}
}

@POST
@PUT
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public NamespaceDto createNamespaceEntry(NamespaceDto dto) {
Expand Down

0 comments on commit fc4e1b5

Please sign in to comment.