An exemplar golang repo with an openapi spec
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:
- API version: 0.0.1
- Build date: 2020-10-11T23:12:02.952-04:00[America/New_York]
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". |
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