penambahan data lis

This commit is contained in:
2025-08-26 08:27:29 +07:00
parent ac12d30dee
commit 683d8c9ed1
13 changed files with 523 additions and 40 deletions
+113
View File
@@ -0,0 +1,113 @@
// 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)
}
+93
View File
@@ -0,0 +1,93 @@
{
"schemes": [
"http",
"https"
],
"swagger": "2.0",
"info": {
"description": "A comprehensive Go API service with Swagger documentation",
"title": "API Service",
"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": "1.0.0"
},
"host": "localhost:8080",
"basePath": "/api",
"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"
}
}
}
}
}
+62
View File
@@ -0,0 +1,62 @@
basePath: /api
definitions:
mikrobiologi.RequestPasienMikrobiologi:
properties:
idxdaftar:
type: string
nolab:
type: string
nomr:
type: string
type: object
mikrobiologi.ResponseLISMikro:
properties:
message:
type: string
nolab:
type: string
status:
type: string
type: object
host: localhost:8080
info:
contact:
email: support@swagger.io
name: API Support
url: http://www.swagger.io/support
description: A comprehensive Go API service with Swagger documentation
license:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
termsOfService: http://swagger.io/terms/
title: API Service
version: 1.0.0
paths:
/mikrobiologi/sendmikro:
post:
consumes:
- application/json
description: Send Data LIS Mikro
parameters:
- description: Pasien Mikrobiologi request
in: body
name: request
required: true
schema:
$ref: '#/definitions/mikrobiologi.RequestPasienMikrobiologi'
produces:
- application/json
responses:
"202":
description: Accepted
schema:
$ref: '#/definitions/mikrobiologi.ResponseLISMikro'
"400":
description: Bad request
summary: Send Data LIS Mikro
tags:
- LIS Mikro
schemes:
- http
- https
swagger: "2.0"