Giter VIP home page Giter VIP logo

my-small-satellite's Introduction

my-small-satellite

Build Status

A coding challenge solution my-small-satellite

Requirements

Quick start

  • clone the repository
git clone https://code.poweronoff.click/steam/my-small-satellite.git

#####Test To test the application you can run the following command in the application directory:

mvn clean verify

#####Build To build the application you can run the following command in the application directory:

mvn clean package

#####Configure You have to configure the application. To do this, you have to create application.properties with following content in a same directory wit your JAR file.

# configuration for the json data storage relative path
storage.file.path=json/source-data.json

Please replace the value of storage.file.path with your own. You can use relative and absolute path to your source-data.json file

#####How to run

java -jar my-small-satellite-<Version>.jar

####API Documentation you can reach the REST-API under port 8080 on the localhost

#####List of features

GET http://localhost:8080/features

This call will return a list of features as json in following format:

[
    {
        "id": "39c2f29e-c0f8-4a39-a98b-deed547d6aea",
        "timestamp": 1554831167697,
        "beginViewingDate": 1554831167697,
        "endViewingDate": 1554831202043,
        "missionName": "Sentinel-1B"
    },
    {
        "id": "cf5dbe37-ab95-4af1-97ad-2637aec4ddf0",
        "timestamp": 1556904743783,
        "beginViewingDate": 1556904743783,
        "endViewingDate": 1556904768781,
        "missionName": "Sentinel-1B"
    }
...
]

#####One special feature representation

GET http://localhost:8080/features/{id}

where id is a feature ID. This call will return a single representation for the given feature ID in following format:

{
  "id": "39c2f29e-c0f8-4a39-a98b-deed547d6aea",
  "timestamp": 1554831167697,
  "beginViewingDate": 1554831167697,
  "endViewingDate": 1554831202043,
  "missionName": "Sentinel-1B"
}

#####Image for the single feature

GET http://localhost:8080/features/{id}/quicklook

This call will return a picture for the given feature ID

Enjoy ٩(◕‿◕。)۶

my-small-satellite's People

Watchers

James Cloos avatar Stan Nowogrudski 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.