Comprehensive Spring RESTful Server and Client Application with CRUD Service (inMemory). Contributors are most welcome and you are free to distribute and usage. Liked Sources, Just send Thanks to [NEWFOUND SYSTEMS (http://www.newfound-systems.com)]
- Basic understanding of Spring Framework which includes Spring Boot, Spring Security.
- Understanding of JSON or XML.
- How to Use Google Collections.
- JDK 1.7 and above
- Maven 3+
- Jackson Bind
- Apache Tomcat 8+
- Google Guava Collections
- Advanced Rest Client as Chrome Extension or PostMan for REST Client Testing
Spring Boot Main Class, Just run below class like any another Java Code
- com.newfound.rest.server.app.RestServerApplication
- com.newfound.rest.client.RestTemplateClient
- http://localhost:8080/person/find/all.json (Notice expected response is JSON)
- http://localhost:8080/person/find/all.xml (Notice expected response is XML)
- http://localhost:8080/person/find/id/1.json
- http://localhost:8080/person/find/gender/MALE.json
- http://localhost:8080/person/find/firstName/John
- http://localhost:8080/person/update/1/99999
- http://localhost:8080/person/create
- http://localhost:8080/person/delete/1
{ "code" : 0, "message" : "SUCCESS", "persons" : [ { "id" : 1, "firstName" : "John", "lastName" : "Doe", "emailId" : "john.doe@somewhere.com", "gender" : "MALE", "salary" : 1000 } ] }
0
SUCCESS
1
John
Doe
john.doe@somewhere.com
MALE
1000
$ curl --basic --user admin:admin --request GET http://localhost:8080/person/find/id/1.json
$ curl --basic --user admin:admin --request POST http://localhost:8080/person/create
You can uncomment src/main/resources/application.properties to run secured service enabled
We use [Apache Subversion (https://subversion.apache.org/)] for versioning.
- Chetan Anand - Developer - [NEWFOUND SYSTEMS http://www.newfound-systems.com]
This project is licensed under the Open Free for all License.
- Many Inspirations from http://www.websystique.com for their walk through of Spring related technologies and our big Gurus out in http://stackoverflow.com. Many Thanks