Giter Club home page Giter Club logo

pfeffernusse's Introduction

OpenAPI generated server

Overview

This server was generated by the OpenAPI Generator project. By using the OpenAPI-Spec from a remote server, you can easily generate a server stub. This is an example of building a OpenAPI-enabled Flask server.

This example uses the Connexion library on top of Flask.

Requirements

Python 3.5.2+

Usage

To run the development server, please execute the following from the root directory:

pip3 install -r requirements.txt
python3 -m pfeffernusse

and open your browser to here:

http://localhost:8080/v1/ui/

Your OpenAPI definition lives here:

http://localhost:8080/v1/openapi.json

To run the production server locally please execute the following from the root directory:

pip3 install -r requirements.txt
gunicorn --bind 0.0.0.0:8080 pfeffernusse.wsgi

Running with Docker

To run the server on a Docker container, please execute the following from the root directory:

# building the image
docker build -t pfeffernusse .

# starting up a container
docker run -p 8080:8080 pfeffernusse

The Docker container runs pfeffernusse using gunicorn.

OpenAPI Specification

We maintain a versioned specification via the USGS Astro SwaggerHub organization. The current version of the specification is available at: https://app.swaggerhub.com/apis/USGS-Astro/pfeffernusse2/0.1.4-oas3

Writing a driver

Documentation on adding to or extending an existing driver is available via the wiki at https://github.com/USGS-Astrogeology/pfeffernusse/wiki/Writing-New-Drivers.

We currently support:

Mission Instrument Data Format(s)
Messenger MDIS-NAC PDS3 EDR
Messenger MDIS-WAC PDS3 EDR
MRO CTX PDS3 EDR
LRO NAC PDS3 EDR
LRO WAC PDS3 EDR
Cassini ISS-NAC* PDS3 EDR
Cassini ISS-WAC* PSD3 EDR

Code Generation

To regenerate the auto-generated portions of the code base, it is necesary to have the openapi-generator-cli installed. Installation instructions are available here. Once installed, simply run make server to (re)generate the autogenerated components. This is generally only used when testing changes to the specification locally before publishing them.

pfeffernusse's People

Contributors

cneubauerusgs avatar jlaura avatar thareusgs avatar

Watchers

 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.