Giter VIP home page Giter VIP logo

restzoo-spring's Introduction

Rest Zoo

This is a Spring Boot project with a REST API and Liquibase integrations, for CRUD related operations regarding the population of Giant Anteaters of a Zoo.

Data information

  • The date format is "yyyy-MM-ddThh-mm-ss" as per established in ISO 8061. The program crash if the format isn't fulfilled

  • The length should be in centimeters, and a rational number between 30 and 220

  • The weight should be in grams, and a rational number between 1600 and 50000

  • The age should be in years, and a positive rational number smaller than 31

How to use it?

  • The service root is on localhost:8080/animals

  • To get all the animals use a GET request in the root: localhost:8080/animals

  • To get a single animal, use a GET request on either the link localhost:8080/animals/{name} or localhost:8080/animals/{id} replacing the {name} with the animal's name and the {id} with the animal's id

  • To register a new animal, use a POST request on the link localhost:8080/animals with a json body following this format:

    {
      "name": "unique string of <120 characters",
      "sex": "M for Masculine, F for Feminine",
      "weight": "String number between 1600 and 50000",
      "age": positive rational number smaller than 31,
      "length": "String number between 30 and 220",
      "arrivalDate": "a date in the format yyyy-MM-ddThh-mm-ss in the past"
    }
    

    In case the new animal has parents within the zoo, ADD the following attributes to the request body json:

    {
      "father": "the NAME of the father",
      "mother": "the NAME of the mother"
    }
    

restzoo-spring's People

Contributors

eggsforbacon avatar

Watchers

 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.