Files
api-bpjs-surkon/docs/swagger.yaml
2024-09-23 08:16:30 +07:00

76 lines
1.6 KiB
YAML

definitions:
models.Response:
properties:
response_code:
type: string
response_message:
type: string
type: object
models.User:
properties:
agama:
type: string
alamat:
type: string
id:
type: string
jenis_kelamin:
type: string
nama:
type: string
umur:
type: integer
type: object
host: localhost:8080
info:
contact: {}
description: Rest API CRUD User
title: Crud User
version: "1"
paths:
/api/user:
get:
description: returs list of all users from the database
responses:
"200":
description: OK
schema:
$ref: '#/definitions/models.User'
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"