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)