Skip to content

Commit

Permalink
docs: General API info
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricioabreu committed Apr 8, 2024
1 parent 3fbe861 commit 74b6685
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
8 changes: 4 additions & 4 deletions docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,12 +237,12 @@ const docTemplate = `{

// SwaggerInfo holds exported Swagger Info so clients can modify it
var SwaggerInfo = &swag.Spec{
Version: "",
Version: "1.0",
Host: "",
BasePath: "",
BasePath: "/api/v1",
Schemes: []string{},
Title: "",
Description: "",
Title: "Streaming Platform API",
Description: "Manage your streaming workflow",
InfoInstanceName: "swagger",
SwaggerTemplate: docTemplate,
LeftDelim: "{{",
Expand Down
6 changes: 5 additions & 1 deletion docs/swagger.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
{
"swagger": "2.0",
"info": {
"contact": {}
"description": "Manage your streaming workflow",
"title": "Streaming Platform API",
"contact": {},
"version": "1.0"
},
"basePath": "/api/v1",
"paths": {
"/inputs": {
"post": {
Expand Down
4 changes: 4 additions & 0 deletions docs/swagger.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
basePath: /api/v1
definitions:
api.Error:
properties:
Expand Down Expand Up @@ -40,6 +41,9 @@ definitions:
type: object
info:
contact: {}
description: Manage your streaming workflow
title: Streaming Platform API
version: "1.0"
paths:
/inputs:
post:
Expand Down
5 changes: 5 additions & 0 deletions internal/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ import (
"go.uber.org/zap"
)

// @title Streaming Platform API
// @version 1.0
// @description Manage your streaming workflow
// @BasePath /api/v1

func New(dbq *db.Queries, _ *zap.SugaredLogger, nh service.NotificationHandler) *gin.Engine {
inputController := NewInputController(service.NewInputHandler(dbq))
notificationController := NewNotificationController(nh)
Expand Down

0 comments on commit 74b6685

Please sign in to comment.