Go Echo API Server for openapi

A hello world service.

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: 1.0
  • Build date: 2022-05-28T21:42:12.319613+10:00[Australia/Sydney]

export GO_POST_PROCESS_FILE="/usr/local/bin/gofmt -w"
openapi-generator generate -i openapi3.yaml -g go-echo-server

Running the server

To run the server, follow these simple steps:

go mod download
go build -o app

To run the server in a docker container

docker build --network=host -t openapi-echo .

Once the image is built, just run

docker run --rm -p 8080:8080 -it openapi-echo

Known Issue

TBA

GitHub

View Github