Code Monkey home page Code Monkey logo

metadata-service's Introduction

josesahad

Metadata Service

Spring Boot Service to expose images metadata.

API

The REST API exposes the following endpoints:

- GET /api/features
- GET /api/features/{featureId}
- GET /api/features/{featureId}/quicklook

Data Management

The dataset is loaded from a json file. There is a default path defined in the application-local profile but it is possible to override it by providing the data.static.jsonFile property when running the service (also possible by defining it as an environment variable).

Some considerations regarding data handling:

  • The StaticDatasetAccess class is in charge of reading the static json file and populating a HashMap (the data store). The data is only accessible through this class.
  • The data transformation (from JSON to the "model") is done through Jackson with a custom deserializer.
  • The data store keeps the Feature UUID as the key, and the representation of the Feature (see below) as entry.
  • The translation between the model and the Service happens in the FeatureDTO.

Feature Object

Field Type
id UUID
timestamp long
beginViewingTime long
endViewingTime long
missionName String
quicklook String

Getting Started

Compiling and running tests

  • Run mvn clean test

Running locally

  • Run with mvn spring-boot:run -Dspring.profiles.active=local

By default, the service will expose in http://localhost:8080.

Micrometer + Prometheus

metadata-service's People

Contributors

josesahad avatar

Watchers

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