swagger docs added
This commit is contained in:
parent
2d965d53ac
commit
f962cd8cd9
5 changed files with 585 additions and 0 deletions
|
|
@ -4,12 +4,17 @@ import (
|
|||
"context"
|
||||
log "github.com/sirupsen/logrus"
|
||||
"merch-api/config"
|
||||
_ "merch-api/docs"
|
||||
"merch-api/internal/app"
|
||||
"os"
|
||||
"os/signal"
|
||||
"syscall"
|
||||
)
|
||||
|
||||
// @Title Merch API
|
||||
// @Version 2.3
|
||||
// @Description Stores data about merch and prices
|
||||
// @BasePath /api/v2
|
||||
func main() {
|
||||
ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)
|
||||
defer cancel()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue