Skip to content

GolangUnited/data-service_nonconformists_gateway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go United - API Gateway

Generate code for REST API

Oapi-codegen

  1. Install oapi-codegen
$ go install github.com/deepmap/oapi-codegen/cmd/oapi-codegen@latest
  1. Command to run code generator:
$ oapi-codegen -generate types,server -package rest api/openapi/openapi.yaml > internal/api/rest/rest.gen.go

Swagger codegen

$ wget https://raw.githubusercontent.com/swagger-api/swagger-codegen/master/standalone-gen-dev/run-in-docker.sh -O swagger-codegen.sh

Run containers for dev environment

$ sudo docker compose -f ./compose/docker-compose.dev.yml build
$ sudo docker compose -f ./compose/docker-compose.dev.yml -p gounited up -d

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published