25.02.2015 Views

Introducing Spring Framework

Introducing Spring Framework

Introducing Spring Framework

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

HTTP-DELETE<br />

Chapter 12 ■ Exposing a REST API<br />

Lastly, you are going to test the HTTP-DELETE method, and for this you are going to need the ID. You can use the<br />

previous ID, 1acbb68a-a859-49c9-ac88-d9e9322bac55. And again you can use either the CURL command or the<br />

RESTClient add-on. Figure 12-5 shows the RESTClient.<br />

Figure 12-5. HTTP-DELETE - http://localhost:8080/mydocuments/documents/1acbb68a-a859-49c9-ac88-<br />

d9e9322bac55<br />

If you execute the HTTP-GET method at http://localhost:8080/mydocuments/documents, you will see that the<br />

document with ID 1acbb68a-a859-49c9-ac88-d9e9322bac55 was removed.<br />

181

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!