Skip to content

mu-majid/microservices-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Product API

Overview:

  • Building A microservice with GO.
  • Starting with very basic implementation, like using GO standard library to build a custom ServeMUX, with handling routing and matching.

Generating Swagger Documentation

Swagger documentation is generated from the code annotations inside the source using go-swagger.

Go swagger can be installed with the following command:

go get -u github.com/go-swagger/go-swagger/cmd/swagger

You can generate the documentation using the command:

swagger generate spec -o ./swagger.yaml --scan-models

After running the application:

go run main.go

Swagger documentation can be viewed using the ReDoc UI in your browser at http://localhost:9090/docs.

About

Building A micro-services Application with GO.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages