Skip to content

An exemplar repo generated and written in golang with an openapi spec

Notifications You must be signed in to change notification settings

Galactus-Player/gexemplar

Repository files navigation

Go API Server for openapi

An exemplar golang repo with an openapi spec

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.

To see how to make this your own, look here:

README

  • API version: 0.0.1
  • Build date: 2020-10-11T23:12:02.952-04:00[America/New_York]

Documentation for API Endpoints

All URIs are relative to http://galactus.player/v1

Class Method HTTP request Description
DefaultApi count_get Get /count Returns the number of times this endpoint has been called.
DefaultApi dog_get Get /dog Returns the string "woof".

Running the server

To run the server, follow these simple steps:

go run main.go

To run the server in a docker container

docker build --network=host -t openapi .

Once image is built use

docker run --rm -it openapi