Code Monkey home page Code Monkey logo

java-dogs's Introduction

Project Restful Dogs

A student that completes this project shows that they can:

  • troubleshoot running services using both system and programmatically generated logs
  • implement server sided routing and rendering for a Spring REST service
  • implement industry standard exception handling including user friendly exception messages

Introduction

We worked with dogs in plain Java. This project returns dog data using Rest APIs with appropriate exception handling, logging, and make use of Server Side Rendering.

Instructions

The provided application exposes the following endpoints

  • /dogs -> returns a list of all dogs
  • /dogs/{id} -> returns a single dog based off of its id number
  • /dogs/breeds/{breed} -> returns all dogs of the given breed

Starting with the dogs-initial application,

Add appropriate exception handling routines. Required exceptions to handle are when

  • a resource is not found
  • the wrong data type is used for a path variable
  • a non-handled endpoint is accessed (a URL not found exception)

Add appropriate logging routines. Required logging include

  • Activating actuator endpoints
  • Tomcat logging routed to a separate log file
  • Custom logging under each Get endpoint saying the endpoint has been accessed
    • should only go to console
    • for example when a clients calls /dogs log should say "/dogs accessed"

Add server side rendering using Thymeleaf to

  • display all dogs ordered by breed
  • display all dogs suitable for apartments ordered by breed

Stretch Goal

  • Add a date and time stamp to your custom logging

java-dogs's People

Contributors

jrmmba8314 avatar chancepayne avatar

Watchers

James Cloos 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.