add subspesialis query

This commit is contained in:
2024-09-18 07:42:46 +07:00
parent 73ff9c10bc
commit 1083a60f6f
17 changed files with 662 additions and 219 deletions

View File

@@ -1,4 +1,11 @@
definitions:
models.Response:
properties:
response_code:
type: string
response_message:
type: string
type: object
models.User:
properties:
agama:
@@ -21,7 +28,7 @@ info:
title: Crud User
version: "1"
paths:
/api/v1/user:
/api/user:
get:
description: returs list of all users from the database
responses:
@@ -32,4 +39,37 @@ paths:
summary: return list of all
tags:
- Users
/api/user/create:
post:
description: Insert Data User
responses:
"200":
description: OK
schema:
$ref: '#/definitions/models.Response'
summary: Insert Data User
tags:
- Users
/api/user/delete/:id:
delete:
description: Delete Data User
responses:
"200":
description: OK
schema:
$ref: '#/definitions/models.Response'
summary: Delete Data User
tags:
- Users
/api/user/update/:id:
put:
description: Update Data User
responses:
"200":
description: OK
schema:
$ref: '#/definitions/models.Response'
summary: Update Data User
tags:
- Users
swagger: "2.0"