Coder Social home page Coder Social logo

rest-lab-java's Introduction

Java RESTish Lab

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.

Packaging

If you want to build and run this project just follow these steps:

  1. Clone this project from GitHub.
  2. Build the project using Maven: mvn package
  3. Launch the project in Jetty using Maven: mvn jetty:run-war
  4. Navigate to http://localhost:8080/greetings. If you see an empty JSON list then it works!

Testing

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:

  1. Install Chrome.
  2. Add the Postman extension to Chrome.
  3. Launch the Postman app within Chrome.
  4. 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.

Lab Links

rest-lab-java's People

Contributors

dgrabows avatar egillespie avatar sam-berry avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.