Giter VIP home page Giter VIP logo

java-dogs's Introduction

Project RESTDogs

Introduction

Develop a simple REST Web application to work with data about dogs Dogs have an auto generated id, breed name, average weight, boolean that true if the breed of dog is appropriate for apartment living otherwise false.

Instructions

Create a Java RESTful API Web application using Web, DevTools, H2, hateoas, and Jackson and JPA.

Data

Seed the data with the following

new Dogs("Springer", 50, false);
new Dogs("Bulldog", 50, true);
new Dogs("Collie", 50, false);
new Dogs("Boston Terrie", 35, true);
new Dogs("Corgie", 35, true);

Expose the following endpoints

Get

/dogs/breeds -> returns a listing of all dogs ordered by breed
/dogs/weight -> returns a listing of all dogs ordered by average weight
/dogs/{breed} -> returns dogs of just that breed
/dogs/apartment -> returns dogs suitable for apartments

Put

/dogs/{id} -> adds or update if already present the dog with id value id

Post

/dogs -> adds the dog

Delete

/dogs/{id} -> deletes the dog with that id

Recommended Steps

  1. Build a new project .
  2. Add properties (DEBUG logs) and dependencies (Jackson) .
  3. Create the data class .
  4. Create the SeedDatabase class .
  5. Create the repository class .
  6. Create the ResourceAssembler class .
  7. Create the Controller class .
  8. Create the ItemNotFoundException class .
  9. Now you can finally expose your endpoints!

Stretch goal and not necessary for MVP

Delete

/dogs/{breed} -> deletes that dog breed

Throughout the project, when adding dogs make sure the breed names are unique

java-dogs's People

Contributors

chancepayne avatar jrmmba8314 avatar

Watchers

James Cloos avatar Sarah Majors 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.