Files
api-lis/cmd/api/docs/swagger.json

93 lines
2.7 KiB
JSON

{
"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"
}
}
}
}
}