A Java project to accompany Sam Berry's RESTish API presentation.
This project provides a basic working REST API built using Java (specifically RestEasy, Jackson, and Spring). A lab is intended to be held to walk developers through the steps required to add their own REST API and cover topics such as HTTP verbs, status codes, and other RESTish best practices.
If you want to build and run this project just follow these steps:
- Clone this project from GitHub.
- Build the project using Maven:
mvn package
- Launch the project in Jetty using Maven:
mvn jetty:run-war
- Navigate to http://localhost:8080/greetings. If you see an empty JSON list then it works!
This project provides a Postman collection for testing. If you want to try these out then you'll have to get Postman and import the collection:
- Install Chrome.
- Add the Postman extension to Chrome.
- Launch the Postman app within Chrome.
- Import the file "src/postman/rest-lab.json" into Postman.
You will see a number of resources appear in the left panel. With your Jetty server running you can click through any of them and send them to your server to see what kinds of responses you get.
- RESTish API Lab Resource Documentation: API Docs
- RESTish API Lab Slides: Lab Slides
- RESTish API Lab Technical Guide: Tech Guide