198 lines
4.7 KiB
YAML
198 lines
4.7 KiB
YAML
definitions:
|
|
types.SearchDoctorPayload:
|
|
properties:
|
|
keyword:
|
|
type: string
|
|
page:
|
|
type: integer
|
|
perpage:
|
|
type: integer
|
|
required:
|
|
- page
|
|
- perpage
|
|
type: object
|
|
types.SearchPatientPayload:
|
|
properties:
|
|
keyword:
|
|
type: string
|
|
page:
|
|
type: integer
|
|
perpage:
|
|
type: integer
|
|
required:
|
|
- page
|
|
- perpage
|
|
type: object
|
|
types.SignInPayload:
|
|
properties:
|
|
email:
|
|
type: string
|
|
password:
|
|
maxLength: 130
|
|
minLength: 6
|
|
type: string
|
|
required:
|
|
- email
|
|
- password
|
|
type: object
|
|
info:
|
|
contact: {}
|
|
description: westone api documentation test
|
|
license:
|
|
name: Apache 2.0
|
|
url: http://www.apache.org/licenses/LICENSE-2.0.html
|
|
termsOfService: http://swagger.io/terms/
|
|
title: WESTONE API
|
|
version: "1.0"
|
|
paths:
|
|
/westone/api/v1/auth/login:
|
|
post:
|
|
consumes:
|
|
- application/json
|
|
description: login using westone account
|
|
parameters:
|
|
- description: parameter
|
|
in: body
|
|
name: parameter
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/types.SignInPayload'
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
additionalProperties: true
|
|
type: object
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
additionalProperties: true
|
|
type: object
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
additionalProperties: true
|
|
type: object
|
|
summary: login using westone account
|
|
tags:
|
|
- Auth
|
|
/westone/api/v1/mddoctor/searchdoctor:
|
|
post:
|
|
consumes:
|
|
- application/json
|
|
description: Search Doctors by name, NIK, Doctor Code, DOB, or phone number
|
|
parameters:
|
|
- description: Authorization token
|
|
in: header
|
|
name: authorization
|
|
required: true
|
|
type: string
|
|
- description: parameter
|
|
in: body
|
|
name: parameter
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/types.SearchDoctorPayload'
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
additionalProperties: true
|
|
type: object
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
additionalProperties: true
|
|
type: object
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
additionalProperties: true
|
|
type: object
|
|
summary: Search Doctors listing
|
|
tags:
|
|
- Doctor
|
|
/westone/api/v1/mdpatient/searchpatient:
|
|
post:
|
|
consumes:
|
|
- application/json
|
|
description: Search patients by name, NIK, registration number, DOB, or phone
|
|
number
|
|
parameters:
|
|
- description: Authorization token
|
|
in: header
|
|
name: authorization
|
|
required: true
|
|
type: string
|
|
- description: parameter
|
|
in: body
|
|
name: parameter
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/types.SearchPatientPayload'
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
additionalProperties: true
|
|
type: object
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
additionalProperties: true
|
|
type: object
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
additionalProperties: true
|
|
type: object
|
|
summary: Search patient listing
|
|
tags:
|
|
- Patient
|
|
/westone/api/v1/mdpatient/searchpatientold:
|
|
post:
|
|
consumes:
|
|
- application/json
|
|
description: Search patients by name, NIK, registration number, DOB, or phone
|
|
number
|
|
parameters:
|
|
- description: Authorization token
|
|
in: header
|
|
name: authorization
|
|
required: true
|
|
type: string
|
|
- description: parameter
|
|
in: body
|
|
name: parameter
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/types.SearchPatientPayload'
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
additionalProperties: true
|
|
type: object
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
additionalProperties: true
|
|
type: object
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
additionalProperties: true
|
|
type: object
|
|
summary: Search patient listing old methods
|
|
tags:
|
|
- Patient
|
|
swagger: "2.0"
|