Implement ExceptionMapper (2.1.3.1)

This commit is contained in:
2021-04-29 12:03:16 +02:00
parent 89467e49cb
commit 1e96417a3f
3 changed files with 34 additions and 4 deletions
@@ -32,8 +32,8 @@ public interface ITripServiceResource {
Response addStop(@PathParam("id") Long tripId, @FormParam("locationId") Long locationId) throws InvalidTripException, EntityNotFoundException;
@DELETE
@Path("{id}/stops")
Response removeStop(@PathParam("id") Long tripId, @FormParam("locationId") Long locationId) throws InvalidTripException, EntityNotFoundException;
@Path("{id}/stops/{locationId}")
Response removeStop(@PathParam("id") Long tripId, @PathParam("locationId") Long locationId) throws InvalidTripException, EntityNotFoundException;
@POST
@Path("{id}/match")