Giter Site home page Giter Site logo

automatic-irregation-system's Introduction

Plot Watering Integration Service

Reference Documentation

Plot Watering Integration Service is an application which holds Plot and schedules watering for plots by notifying the mock sensor and alerts in case of an error

API Design

[http://localhost:8080/api/v1/plots/{plot-number}]

customerId : unique ID of the plot

Response Structure
{
    "plotNumber": 1,
    "plotOwner": "DJ Tillu",
    "plantedCrop": "Maize",
    "waterRequired": 300,
    "timeOfWatering": "2022-12-05T20:58:46.71+05:30"
}

Gotchas

API could return with 404 status code in the following scenarios

  • plot number does NOT exist in the database

Project Specifications

Dependencies
  • spring-boot-starter-web
  • spring-boot-starter-data-jpa
  • h2database
Build Tool
  • Gradle
Instructions to build and run the project

Build the project

./gradlew clean build

Run the project

./gradlew bootRun

Test data

Data in Plots table
plotNumber plotOwner plantedCrop waterRequired timeOfWatering
1 Prakash Rice 450 2022-12-01T20:58:46.71+05:30
2 Agarwal Cotton 150 2022-12-01T20:58:46.71+05:30
3 DJ Maize 300 2022-12-01T20:58:46.71+05:30

automatic-irregation-system's People

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.