Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Http Server

It's small example http server based on openapi. Not suitable for microservices, it's better to look to the kit

Generate api.gen.go

oapi-codegen -package api -generate types,chi-server,spec -o internal/app/api/api.gen.go openapi.yaml

Run

go mod download
go run main.go s
curl localhost:3000/api/v1/products/1

About

Example http server

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages