initiate swagger docs
This commit is contained in:
@@ -0,0 +1,80 @@
|
||||
{
|
||||
"swagger": "2.0",
|
||||
"info": {
|
||||
"description": "Dokumentasi API Antrian Operasi",
|
||||
"title": "Antrian Operasi API",
|
||||
"contact": {},
|
||||
"version": "1.0"
|
||||
},
|
||||
"host": "localhost:8080",
|
||||
"basePath": "/api",
|
||||
"paths": {
|
||||
"/dokter/": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"dokter"
|
||||
],
|
||||
"summary": "Get List Dokter",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/dokter.DokterResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/shared.BaseErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"definitions": {
|
||||
"dokter.DokterResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"hfis_code": {
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"nama_ksm": {
|
||||
"type": "string"
|
||||
},
|
||||
"nama_lengkap": {
|
||||
"type": "string"
|
||||
},
|
||||
"nip": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"shared.BaseErrorResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"code": {
|
||||
"type": "integer"
|
||||
},
|
||||
"errors": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"message": {
|
||||
"type": "string"
|
||||
},
|
||||
"success": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user