Code Monkey home page Code Monkey logo

planefinder's Introduction

planefinder

PlaneFinder Spring Boot RESTful web service from Spring Boot Up & Running book converted to Kotlin

Usage

The application will listen on port 7634. To chance the listen port, edit application.properties. It uses the H2 database to store data in memory. It will query http://192.168.1.193/ajax/aircraft for aircraft data. If it cannot get aircraft data from this URL, it will provide some sample data.

The httpie is a user-friendly HTTP client that can be used to test the API:

$ http :7634/aircraft
HTTP/1.1 200 
Connection: keep-alive
Content-Type: application/json
Date: Sun, 13 Jun 2021 08:21:48 GMT
Keep-Alive: timeout=60
Transfer-Encoding: chunked

[
    {
        "adsb": false,
        "altitude": 30000,
        "barometer": 0.0,
        "bds40_seen_time": "2021-06-13T08:21:48.559092392Z",
        "callsign": "SAL001",
        "category": "ct",
        "flightno": "SAL001",
        "heading": 280,
        "id": 4,
        "is_on_ground": true,
        "last_seen_time": "2021-06-13T08:21:48.559089456Z",
        "lat": 39.2979849,
        "lon": -94.71921,
        "polar_bearing": 0.0,
        "polar_distance": 0.0,
        "pos_update_time": "2021-06-13T08:21:48.559092039Z",
        "reg": "N12345",
        "route": "route",
        "selected_altitude": 0,
        "speed": 440,
        "squawk": "sqwk",
        "type": "LJ",
        "vert_rate": 0
    },
    {
        "adsb": false,
        "altitude": 40000,
        "barometer": 0.0,
        "bds40_seen_time": "2021-06-13T08:21:48.559095449Z",
        "callsign": "SAL002",
        "category": "ct",
        "flightno": "SAL002",
        "heading": 65,
        "id": 5,
        "is_on_ground": true,
        "last_seen_time": "2021-06-13T08:21:48.559094960Z",
        "lat": 39.8560963,
        "lon": -104.6759263,
        "polar_bearing": 0.0,
        "polar_distance": 0.0,
        "pos_update_time": "2021-06-13T08:21:48.559095231Z",
        "reg": "N54321",
        "route": "route",
        "selected_altitude": 0,
        "speed": 440,
        "squawk": "sqwk",
        "type": "LJ",
        "vert_rate": 0
    },
    {
        "adsb": false,
        "altitude": 40000,
        "barometer": 0.0,
        "bds40_seen_time": "2021-06-13T08:21:48.559097498Z",
        "callsign": "SAL002",
        "category": "ct",
        "flightno": "SAL002",
        "heading": 65,
        "id": 6,
        "is_on_ground": true,
        "last_seen_time": "2021-06-13T08:21:48.559097033Z",
        "lat": 39.8412964,
        "lon": -105.0048267,
        "polar_bearing": 0.0,
        "polar_distance": 0.0,
        "pos_update_time": "2021-06-13T08:21:48.559097278Z",
        "reg": "N54321",
        "route": "route",
        "selected_altitude": 0,
        "speed": 440,
        "squawk": "sqwk",
        "type": "LJ",
        "vert_rate": 0
    }
]

Reactive implementation

The reactive branch contains a fully reactive implementation using Project Reactor, R2DBC and Spring WebFlux.

planefinder's People

Contributors

mthaler avatar

Stargazers

 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.