Skip to content

Aristat/http-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages