docs: project docs, scripts, deployment configs, and evidence
This commit is contained in:
50
docs/swagger.go
Normal file
50
docs/swagger.go
Normal file
@@ -0,0 +1,50 @@
|
||||
// Package docs GENERATED BY SWAG; DO NOT EDIT
|
||||
package docs
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// SwaggerInfo holds the Swagger information
|
||||
var SwaggerInfo = &swaggerInfo{
|
||||
Version: "1.0",
|
||||
Host: "localhost:8080",
|
||||
BasePath: "/",
|
||||
Schemes: []string{"http", "https"},
|
||||
Title: "User Management System API",
|
||||
Description: "API for user management, authentication, and authorization",
|
||||
}
|
||||
|
||||
type swaggerInfo struct {
|
||||
Version string `json:"version"`
|
||||
Host string `json:"host"`
|
||||
BasePath string `json:"basePath"`
|
||||
Schemes []string `json:"schemes"`
|
||||
Title string `json:"title"`
|
||||
Description string `json:"description"`
|
||||
}
|
||||
|
||||
// SwaggerJSON returns the swagger spec as JSON
|
||||
var SwaggerJSON = `{
|
||||
"swagger": "2.0",
|
||||
"info": {
|
||||
"title": "User Management System API",
|
||||
"description": "API for user management, authentication, and authorization",
|
||||
"version": "1.0"
|
||||
},
|
||||
"host": "localhost:8080",
|
||||
"basePath": "/",
|
||||
"schemes": ["http", "https"],
|
||||
"paths": {}
|
||||
}`
|
||||
|
||||
// GetSwagger returns the swagger specification
|
||||
func GetSwagger() []byte {
|
||||
return []byte(SwaggerJSON)
|
||||
}
|
||||
|
||||
func init() {
|
||||
// Initialize swagger
|
||||
s := GetSwagger()
|
||||
var _ = json.Unmarshal(s, &swaggerInfo{})
|
||||
}
|
||||
Reference in New Issue
Block a user