Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Workshop

Here you can find an example of a simple RESTful application in Spring.

REST or notREST?

My presentation about this workshop you can find here.

Simple RESTful application

How to run it?

cd rest-workshop
mvn clean package jetty:run

How to test GET method using Curl?

curl -H "Accept: application/json" -H "Content-Type: application/json" -X GET http://localhost:8080/api/hello/Wilson

How to test POST method using Curl?

curl -H "Accept: application/json" -H "Content-Type: application/json" -X POST -d '{"value": "Test value"}' http://localhost:8080/api/simple

How to test PUT method using Curl?

curl -H "Accept: application/json" -H "Content-Type: application/json" -X PUT -d '{"value": "Test value", "message": "Test message"}' http://localhost:8080/api/simple/test

About

Workshops

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages