Files
api-lis/cmd/api/docs/docs.go

114 lines
3.3 KiB
Go

// Package docs Code generated by swaggo/swag. DO NOT EDIT
package docs
import "github.com/swaggo/swag"
const docTemplate = `{
"schemes": {{ marshal .Schemes }},
"swagger": "2.0",
"info": {
"description": "{{escape .Description}}",
"title": "{{.Title}}",
"termsOfService": "http://swagger.io/terms/",
"contact": {
"name": "API Support",
"url": "http://www.swagger.io/support",
"email": "support@swagger.io"
},
"license": {
"name": "Apache 2.0",
"url": "http://www.apache.org/licenses/LICENSE-2.0.html"
},
"version": "{{.Version}}"
},
"host": "{{.Host}}",
"basePath": "{{.BasePath}}",
"paths": {
"/mikrobiologi/sendmikro": {
"post": {
"description": "Send Data LIS Mikro",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"LIS Mikro"
],
"summary": "Send Data LIS Mikro",
"parameters": [
{
"description": "Pasien Mikrobiologi request",
"name": "request",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/mikrobiologi.RequestPasienMikrobiologi"
}
}
],
"responses": {
"202": {
"description": "Accepted",
"schema": {
"$ref": "#/definitions/mikrobiologi.ResponseLISMikro"
}
},
"400": {
"description": "Bad request"
}
}
}
}
},
"definitions": {
"mikrobiologi.RequestPasienMikrobiologi": {
"type": "object",
"properties": {
"idxdaftar": {
"type": "string"
},
"nolab": {
"type": "string"
},
"nomr": {
"type": "string"
}
}
},
"mikrobiologi.ResponseLISMikro": {
"type": "object",
"properties": {
"message": {
"type": "string"
},
"nolab": {
"type": "string"
},
"status": {
"type": "string"
}
}
}
}
}`
// SwaggerInfo holds exported Swagger Info so clients can modify it
var SwaggerInfo = &swag.Spec{
Version: "1.0.0",
Host: "localhost:8080",
BasePath: "/api",
Schemes: []string{"http", "https"},
Title: "API Service",
Description: "A comprehensive Go API service with Swagger documentation",
InfoInstanceName: "swagger",
SwaggerTemplate: docTemplate,
LeftDelim: "{{",
RightDelim: "}}",
}
func init() {
swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
}