Skip to content

thomasma/springmvc-restful

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RESTful API's With SpringMVC (Starter Project)

While SpringMVC makes it quite easy to create RESTful services, this starter project adds a few things more. It provides a consistent way to send error messages in json back to the caller and also integrates Spring Security into the mix. Though using a mock set of users.

To run the application...

mvn clean package mvn jetty:run

To access the RESTful Services...

To Get XML Responses...

Either replace HTTP Header with application/json with application/xml OR append .xml (or .json) extension to the URI. Example... curl -XGET -H "Accept: application/xml" --user admin:password http://localhost:8080/service/note/notes curl -XGET --user admin:password http://localhost:8080/service/note/notes.xml

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages