Skip to content

Instantly share code, notes, and snippets.

@jhiemer
Last active August 29, 2015 14:03
Show Gist options
  • Save jhiemer/a814adaf177f477450fa to your computer and use it in GitHub Desktop.
Save jhiemer/a814adaf177f477450fa to your computer and use it in GitHub Desktop.
# Dimension: Application with Spring Data (SD) REST and Spring MVC
# SD REST offers DELETE via
DELETE
http://horst:8080/entity/239892389239823
# Sometime CUSTOM DELETES are necessary. E.g. for BULK operations (DELETE in this case). SD REST is not able to map those
# operations automatically and expose them.
# The way to go though, is through usage of Spring MVC Controllers. This may be done with a custom Mapping of the
# MVC controller.
DELETE
http://horst:8080/entity/removeBySubInstanceId?subInstanceId=ec81d9fc48f328052fc59e1c6a34ea2f
# Currently failing with an Exception. https://jira.spring.io/browse/DATAREST-353
# So it is no necessarily a 404, because only SD REST sees it as 404, while Spring MVC is still able to handle
# this DELETE request.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment