Git Product home page Git Product logo

winerepository's Introduction

Wine repository

Microservice to store data about wines.

Develop

Requires

  • Kotlin 1.3.31

Build

./gradlew check assemble

This runs all tests and packages the library.

Running

The server builds as a fat jar with a main entrypoint. To start the service, run java -jar build/libs/wine-repository-1.0.0-all.jar.

You may also run in docker:

docker build -t kotlin-server .
docker run -p 8080:8080 kotlin-server

Features/Implementation Notes

  • Supports JSON inputs/outputs, File inputs, and Form inputs (see ktor documentation for more info).
  • Supports collection formats for query parameters: csv, tsv, ssv, pipes.
  • Some Kotlin and Java types are fully qualified to avoid conflicts with types defined in OpenAPI definitions.

Documentation for API Endpoints

All URIs are relative to https://winerepository/v1

Class Method HTTP request Description
DefaultApi wineRepositoryGet GET /wine/repository Get all wines in repository
DefaultApi wineRepositoryPost POST /wine/repository Add a new wine
DefaultApi wineRepositoryPut PUT /wine/repository Update an existing wine
DefaultApi wineRepositoryWineIdGet GET /wine/repository/{wineId} Get wine with id
DefaultApi wineRepositoryWineIdPost POST /wine/repository/{wineId} Add a new vintage
DefaultApi wineRepositoryWineIdPut PUT /wine/repository/{wineId} Update an existing wine
DefaultApi wineRepositoryWineIdVintageGet GET /wine/repository/{wineId}/{vintage} Get wine with id and vintage
DefaultApi wineRepositoryWineIdVintagePut PUT /wine/repository/{wineId}/{vintage} Update an existing vintage of a wine

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.

winerepository's People

Contributors

mrunesson 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.