api list tindakan

This commit is contained in:
renaldybrada
2026-02-05 10:16:31 +07:00
parent 18a3509933
commit 0cbaba6a4d
9 changed files with 253 additions and 2 deletions
+44
View File
@@ -353,6 +353,39 @@ const docTemplate = `{
}
}
}
},
"/reference/tindakan/": {
"get": {
"tags": [
"Reference"
],
"summary": "Get List Tindakan",
"parameters": [
{
"type": "string",
"description": "Search keyword",
"name": "search",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/tindakan.TindakanModel"
}
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/shared.BaseErrorResponse"
}
}
}
}
}
},
"definitions": {
@@ -753,6 +786,17 @@ const docTemplate = `{
"type": "string"
}
}
},
"tindakan.TindakanModel": {
"type": "object",
"properties": {
"KodeTindakan": {
"type": "string"
},
"Tindakan": {
"type": "string"
}
}
}
}
}`
+44
View File
@@ -347,6 +347,39 @@
}
}
}
},
"/reference/tindakan/": {
"get": {
"tags": [
"Reference"
],
"summary": "Get List Tindakan",
"parameters": [
{
"type": "string",
"description": "Search keyword",
"name": "search",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/tindakan.TindakanModel"
}
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/shared.BaseErrorResponse"
}
}
}
}
}
},
"definitions": {
@@ -747,6 +780,17 @@
"type": "string"
}
}
},
"tindakan.TindakanModel": {
"type": "object",
"properties": {
"KodeTindakan": {
"type": "string"
},
"Tindakan": {
"type": "string"
}
}
}
}
}
+28
View File
@@ -263,6 +263,13 @@ definitions:
sub_spesialis:
type: string
type: object
tindakan.TindakanModel:
properties:
KodeTindakan:
type: string
Tindakan:
type: string
type: object
host: localhost:8080
info:
contact: {}
@@ -489,4 +496,25 @@ paths:
summary: Get List Sub Spesialis
tags:
- Reference
/reference/tindakan/:
get:
parameters:
- description: Search keyword
in: query
name: search
type: string
responses:
"200":
description: OK
schema:
items:
$ref: '#/definitions/tindakan.TindakanModel'
type: array
"500":
description: Internal Server Error
schema:
$ref: '#/definitions/shared.BaseErrorResponse'
summary: Get List Tindakan
tags:
- Reference
swagger: "2.0"