From 2d230993e037827227af8f84e7e097ab477a65b1 Mon Sep 17 00:00:00 2001 From: Max Jalowski Date: Wed, 30 Sep 2015 22:12:50 +0200 Subject: [PATCH] implemented delete-method for projects/gists --- .../de/fau/cs/mad/fablab/rest/api/ProjectsApi.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main/java/de/fau/cs/mad/fablab/rest/api/ProjectsApi.java b/src/main/java/de/fau/cs/mad/fablab/rest/api/ProjectsApi.java index 1a3b09d..711daad 100644 --- a/src/main/java/de/fau/cs/mad/fablab/rest/api/ProjectsApi.java +++ b/src/main/java/de/fau/cs/mad/fablab/rest/api/ProjectsApi.java @@ -19,8 +19,19 @@ public interface ProjectsApi { @Path("/update/{id}") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.TEXT_PLAIN) + @Deprecated + String updateProjectOld(@PathParam("id")String gistId, ProjectFile project); + + @PUT + @Path("/{id}") + @Consumes(MediaType.APPLICATION_JSON) + @Produces(MediaType.TEXT_PLAIN) String updateProject(@PathParam("id")String gistId, ProjectFile project); + @DELETE + @Path("/{id}") + void deleteProject(@PathParam("id")String gistId); + @POST @Path("/image/upload") @Consumes(MediaType.APPLICATION_JSON)