2021-11-03 10:38:40 +03:00
|
|
|
openapi: 3.0.3
|
2021-11-03 09:40:09 +03:00
|
|
|
info:
|
2021-11-04 11:34:04 +03:00
|
|
|
title: Easy!Appointments API
|
|
|
|
version: 1.0.0
|
|
|
|
description: These are the OpenAPI specs that describe the REST API of Easy!Appointments.
|
|
|
|
termsOfService: https://easyappointments.org/terms-and-conditions
|
|
|
|
contact:
|
|
|
|
name: Easy!Appointments
|
|
|
|
url: https://easyappointments.org
|
|
|
|
email: info@easyappointments.org
|
|
|
|
license:
|
|
|
|
name: GPL-3.0
|
|
|
|
url: https://www.gnu.org/licenses/gpl-3.0.en.html
|
2021-11-03 09:40:09 +03:00
|
|
|
externalDocs:
|
2021-11-04 11:34:04 +03:00
|
|
|
description: Find out more about Easy!Appointments
|
|
|
|
url: https://easyappointments.org/docs.html
|
2021-11-03 09:40:09 +03:00
|
|
|
servers:
|
2021-11-04 11:34:04 +03:00
|
|
|
- url: https://demo.easyappointments.org/index.php/api/v1/
|
2023-08-01 23:08:55 +03:00
|
|
|
- url: http://localhost/index.php/api/v1/
|
2021-11-03 09:40:09 +03:00
|
|
|
tags:
|
2021-11-04 11:34:04 +03:00
|
|
|
- name: admins
|
2021-11-05 11:32:07 +03:00
|
|
|
- name: appointments
|
|
|
|
- name: availabilities
|
|
|
|
- name: categories
|
|
|
|
- name: customers
|
2021-11-04 11:34:04 +03:00
|
|
|
- name: providers
|
|
|
|
- name: secretaries
|
|
|
|
- name: services
|
|
|
|
- name: settings
|
2021-11-05 11:32:07 +03:00
|
|
|
- name: unavailabilities
|
2022-06-19 20:05:45 +03:00
|
|
|
- name: webhooks
|
2021-11-03 09:40:09 +03:00
|
|
|
paths:
|
2021-11-04 11:34:04 +03:00
|
|
|
/availabilities:
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- availabilities
|
|
|
|
summary: Gets availability
|
|
|
|
parameters:
|
|
|
|
- name: providerId
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: serviceId
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: date
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
responses:
|
|
|
|
'200':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: OK
|
2021-11-04 11:34:04 +03:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Availabilities'
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-05 11:32:07 +03:00
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
2021-11-04 11:34:04 +03:00
|
|
|
security:
|
2022-06-19 20:05:45 +03:00
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
/appointments:
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- appointments
|
|
|
|
summary: Get all appointments
|
|
|
|
parameters:
|
|
|
|
- name: page
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: length
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: sort
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: q
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-11-06 17:41:44 +03:00
|
|
|
- name: fields
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: with
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-11-04 11:34:04 +03:00
|
|
|
- name: aggregates
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-11-06 17:02:15 +03:00
|
|
|
deprecated: true
|
2022-10-16 22:17:36 +03:00
|
|
|
- name: date
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
2023-01-14 12:25:25 +03:00
|
|
|
- name: from
|
2022-10-16 22:17:36 +03:00
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
2023-01-14 12:25:25 +03:00
|
|
|
- name: till
|
2022-10-16 22:17:36 +03:00
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
2023-01-14 12:25:25 +03:00
|
|
|
- name: serviceId
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: providerId
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: customerId
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: integer
|
2021-11-04 11:34:04 +03:00
|
|
|
responses:
|
|
|
|
'200':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: OK
|
2021-11-04 11:34:04 +03:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/AppointmentCollection'
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-05 11:32:07 +03:00
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
2021-11-04 11:34:04 +03:00
|
|
|
security:
|
2022-06-19 20:05:45 +03:00
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
post:
|
|
|
|
tags:
|
|
|
|
- appointments
|
|
|
|
summary: Create an appointment
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/AppointmentPayload'
|
2021-11-05 11:32:07 +03:00
|
|
|
required: true
|
2021-11-04 11:34:04 +03:00
|
|
|
responses:
|
|
|
|
'201':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: Created
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/AppointmentRecord'
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-05 11:32:07 +03:00
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
2021-11-04 11:34:04 +03:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
2021-11-04 11:34:04 +03:00
|
|
|
x-codegen-request-body-name: body
|
|
|
|
security:
|
2022-06-19 20:05:45 +03:00
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
/appointments/{appointmentId}:
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- appointments
|
|
|
|
summary: Get an appointment
|
|
|
|
parameters:
|
|
|
|
- name: appointmentId
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
responses:
|
|
|
|
'200':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: OK
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/AppointmentRecord'
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-05 11:32:07 +03:00
|
|
|
'404':
|
|
|
|
description: Not Found
|
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
2021-11-04 11:34:04 +03:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
2021-11-04 11:34:04 +03:00
|
|
|
security:
|
2022-06-19 20:05:45 +03:00
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
put:
|
|
|
|
tags:
|
|
|
|
- appointments
|
|
|
|
summary: Update an appointment
|
|
|
|
parameters:
|
|
|
|
- name: appointmentId
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/AppointmentPayload'
|
2021-11-05 11:32:07 +03:00
|
|
|
required: true
|
2021-11-04 11:34:04 +03:00
|
|
|
responses:
|
|
|
|
'200':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: OK
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/AppointmentRecord'
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-05 11:32:07 +03:00
|
|
|
'404':
|
|
|
|
description: Not Found
|
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
2021-11-04 11:34:04 +03:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
2021-11-04 11:34:04 +03:00
|
|
|
x-codegen-request-body-name: body
|
|
|
|
security:
|
2022-06-19 20:05:45 +03:00
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
delete:
|
|
|
|
tags:
|
|
|
|
- appointments
|
|
|
|
summary: Delete an appointment
|
|
|
|
parameters:
|
|
|
|
- name: appointmentId
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
responses:
|
|
|
|
'204':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: No Content
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-04 11:34:04 +03:00
|
|
|
'404':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: Not Found
|
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
2021-11-04 11:34:04 +03:00
|
|
|
security:
|
2022-06-19 20:05:45 +03:00
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
/unavailabilities:
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- unavailabilities
|
|
|
|
summary: Get all unavailabilities
|
|
|
|
parameters:
|
|
|
|
- name: page
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: length
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: sort
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: q
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-11-06 17:41:44 +03:00
|
|
|
- name: fields
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: with
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-11-04 11:34:04 +03:00
|
|
|
responses:
|
|
|
|
'200':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: OK
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/UnavailabilityCollection'
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-05 11:32:07 +03:00
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
2021-11-04 11:34:04 +03:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
2021-11-04 11:34:04 +03:00
|
|
|
post:
|
|
|
|
tags:
|
|
|
|
- unavailabilities
|
|
|
|
summary: Create an unavailability
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/UnavailabilityPayload'
|
|
|
|
required: true
|
2021-11-04 11:34:04 +03:00
|
|
|
responses:
|
|
|
|
'201':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: Created
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/UnavailabilityRecord'
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-05 11:32:07 +03:00
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
2021-11-04 11:34:04 +03:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
2021-11-04 11:34:04 +03:00
|
|
|
x-codegen-request-body-name: body
|
|
|
|
security:
|
2022-06-19 20:05:45 +03:00
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
/unavailabilities/{unavailabilityId}:
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- unavailabilities
|
|
|
|
summary: Get an unavailability
|
|
|
|
parameters:
|
|
|
|
- name: unavailabilityId
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
responses:
|
|
|
|
'200':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: OK
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/UnavailabilityRecord'
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-05 11:32:07 +03:00
|
|
|
'404':
|
|
|
|
description: Not Found
|
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
2021-11-04 11:34:04 +03:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
2021-11-04 11:34:04 +03:00
|
|
|
security:
|
2022-06-19 20:05:45 +03:00
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
put:
|
|
|
|
tags:
|
|
|
|
- unavailabilities
|
|
|
|
summary: Update an unavailability
|
|
|
|
parameters:
|
|
|
|
- name: unavailabilityId
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/UnavailabilityPayload'
|
|
|
|
required: true
|
2021-11-04 11:34:04 +03:00
|
|
|
responses:
|
|
|
|
'200':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: OK
|
2021-11-04 11:34:04 +03:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/UnavailabilityRecord'
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-05 11:32:07 +03:00
|
|
|
'404':
|
|
|
|
description: Not Found
|
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
2021-11-04 11:34:04 +03:00
|
|
|
x-codegen-request-body-name: body
|
|
|
|
security:
|
2022-06-19 20:05:45 +03:00
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
delete:
|
|
|
|
tags:
|
|
|
|
- unavailabilities
|
|
|
|
summary: Delete an unavailability
|
|
|
|
parameters:
|
|
|
|
- name: unavailabilityId
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
responses:
|
|
|
|
'204':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: No Content
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-04 11:34:04 +03:00
|
|
|
'404':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: Not Found
|
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
2021-11-04 11:34:04 +03:00
|
|
|
security:
|
2022-06-19 20:05:45 +03:00
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
/customers:
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- customers
|
|
|
|
summary: Get all customers
|
|
|
|
parameters:
|
|
|
|
- name: page
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: length
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: sort
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: q
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-11-06 17:41:44 +03:00
|
|
|
- name: fields
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: with
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-11-04 11:34:04 +03:00
|
|
|
responses:
|
|
|
|
'200':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: OK
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/CustomerCollection'
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-05 11:32:07 +03:00
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
2021-11-04 11:34:04 +03:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
2021-11-04 11:34:04 +03:00
|
|
|
security:
|
2022-06-19 20:05:45 +03:00
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
post:
|
|
|
|
tags:
|
|
|
|
- customers
|
|
|
|
summary: Create a customer
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/CustomerPayload'
|
|
|
|
required: true
|
2021-11-04 11:34:04 +03:00
|
|
|
responses:
|
|
|
|
'201':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: Created
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/CustomerRecord'
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-05 11:32:07 +03:00
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
2021-11-04 11:34:04 +03:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
2021-11-04 11:34:04 +03:00
|
|
|
security:
|
2022-06-19 20:05:45 +03:00
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
x-codegen-request-body-name: body
|
|
|
|
/customers/{customerId}:
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- customers
|
|
|
|
summary: Get a customer
|
|
|
|
parameters:
|
|
|
|
- name: customerId
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
responses:
|
|
|
|
'200':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: OK
|
2021-11-04 11:34:04 +03:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/CustomerRecord'
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-05 11:32:07 +03:00
|
|
|
'404':
|
|
|
|
description: Not Found
|
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
2021-11-04 11:34:04 +03:00
|
|
|
security:
|
2022-06-19 20:05:45 +03:00
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
put:
|
|
|
|
tags:
|
|
|
|
- customers
|
|
|
|
summary: Update a customer
|
|
|
|
parameters:
|
|
|
|
- name: customerId
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/CustomerPayload'
|
|
|
|
required: true
|
2021-11-04 11:34:04 +03:00
|
|
|
responses:
|
|
|
|
'200':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: OK
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/CustomerRecord'
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-05 11:32:07 +03:00
|
|
|
'404':
|
|
|
|
description: Not Found
|
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
2021-11-04 11:34:04 +03:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
2021-11-04 11:34:04 +03:00
|
|
|
x-codegen-request-body-name: body
|
|
|
|
security:
|
2022-06-19 20:05:45 +03:00
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
delete:
|
|
|
|
tags:
|
|
|
|
- customers
|
|
|
|
summary: Delete a customer
|
|
|
|
parameters:
|
|
|
|
- name: customerId
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
responses:
|
|
|
|
'204':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: No Content
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-04 11:34:04 +03:00
|
|
|
'404':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: Not Found
|
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
2021-11-04 11:34:04 +03:00
|
|
|
security:
|
2022-06-19 20:05:45 +03:00
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
/services:
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- services
|
|
|
|
summary: Get all services
|
|
|
|
parameters:
|
|
|
|
- name: page
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: length
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: sort
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: q
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-11-06 17:41:44 +03:00
|
|
|
- name: fields
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: with
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-11-04 11:34:04 +03:00
|
|
|
responses:
|
|
|
|
'200':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: OK
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/ServiceCollection'
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-05 11:32:07 +03:00
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
2021-11-04 11:34:04 +03:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
2021-11-04 11:34:04 +03:00
|
|
|
security:
|
2022-06-19 20:05:45 +03:00
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
post:
|
|
|
|
tags:
|
|
|
|
- services
|
|
|
|
summary: Create a service
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-06 17:02:15 +03:00
|
|
|
$ref: '#/components/schemas/ServicePayload'
|
2021-11-05 11:32:07 +03:00
|
|
|
required: true
|
2021-11-04 11:34:04 +03:00
|
|
|
responses:
|
|
|
|
'201':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: Created
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/ServiceRecord'
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-05 11:32:07 +03:00
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
2021-11-04 11:34:04 +03:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
2021-11-04 11:34:04 +03:00
|
|
|
x-codegen-request-body-name: body
|
|
|
|
security:
|
2022-06-19 20:05:45 +03:00
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
/services/{serviceId}:
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- services
|
|
|
|
summary: Get a service
|
|
|
|
parameters:
|
|
|
|
- name: serviceId
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
responses:
|
|
|
|
'200':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: OK
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/ServiceRecord'
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-05 11:32:07 +03:00
|
|
|
'404':
|
|
|
|
description: Not Found
|
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
2021-11-04 11:34:04 +03:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
2021-11-04 11:34:04 +03:00
|
|
|
security:
|
2022-06-19 20:05:45 +03:00
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
put:
|
|
|
|
tags:
|
|
|
|
- services
|
|
|
|
summary: Update a service
|
|
|
|
parameters:
|
|
|
|
- name: serviceId
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/ServicePayload'
|
|
|
|
required: true
|
2021-11-04 11:34:04 +03:00
|
|
|
responses:
|
|
|
|
'200':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: OK
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/ServiceRecord'
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-05 11:32:07 +03:00
|
|
|
'404':
|
|
|
|
description: Not Found
|
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
2021-11-04 11:34:04 +03:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
2021-11-04 11:34:04 +03:00
|
|
|
x-codegen-request-body-name: body
|
|
|
|
security:
|
2022-06-19 20:05:45 +03:00
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
delete:
|
|
|
|
tags:
|
|
|
|
- services
|
|
|
|
summary: Delete a service
|
|
|
|
parameters:
|
|
|
|
- name: serviceId
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
responses:
|
|
|
|
'204':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: No Content
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-04 11:34:04 +03:00
|
|
|
'404':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: Not Found
|
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
2021-11-04 11:34:04 +03:00
|
|
|
security:
|
2022-06-19 20:05:45 +03:00
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
/categories:
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- categories
|
|
|
|
summary: Get all categories
|
|
|
|
parameters:
|
|
|
|
- name: page
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: length
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: sort
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: q
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-11-06 17:41:44 +03:00
|
|
|
- name: fields
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: with
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-11-04 11:34:04 +03:00
|
|
|
responses:
|
|
|
|
'200':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: OK
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/CategoryCollection'
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-05 11:32:07 +03:00
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
2021-11-04 11:34:04 +03:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
2021-11-04 11:34:04 +03:00
|
|
|
security:
|
2022-06-19 20:05:45 +03:00
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
post:
|
|
|
|
tags:
|
|
|
|
- categories
|
|
|
|
summary: Create a category
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/CategoryPayload'
|
|
|
|
required: true
|
2021-11-04 11:34:04 +03:00
|
|
|
responses:
|
|
|
|
'201':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: Created
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/CategoryRecord'
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-05 11:32:07 +03:00
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
2021-11-04 11:34:04 +03:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
2021-11-04 11:34:04 +03:00
|
|
|
x-codegen-request-body-name: body
|
|
|
|
security:
|
2022-06-19 20:05:45 +03:00
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
/categories/{categoryId}:
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- categories
|
|
|
|
summary: Get a category
|
|
|
|
parameters:
|
|
|
|
- name: categoryId
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
responses:
|
|
|
|
'200':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: OK
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/CategoryRecord'
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-05 11:32:07 +03:00
|
|
|
'404':
|
|
|
|
description: Not Found
|
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
2021-11-04 11:34:04 +03:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
2021-11-04 11:34:04 +03:00
|
|
|
security:
|
2022-06-19 20:05:45 +03:00
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
put:
|
|
|
|
tags:
|
|
|
|
- categories
|
|
|
|
summary: Update a category
|
|
|
|
parameters:
|
|
|
|
- name: categoryId
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/CategoryPayload'
|
|
|
|
required: true
|
2021-11-04 11:34:04 +03:00
|
|
|
responses:
|
|
|
|
'200':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: OK
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/CategoryRecord'
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-05 11:32:07 +03:00
|
|
|
'404':
|
|
|
|
description: Not Found
|
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
2021-11-04 11:34:04 +03:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
2021-11-04 11:34:04 +03:00
|
|
|
x-codegen-request-body-name: body
|
|
|
|
security:
|
2022-06-19 20:05:45 +03:00
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
delete:
|
|
|
|
tags:
|
|
|
|
- categories
|
|
|
|
summary: Delete a category
|
|
|
|
parameters:
|
|
|
|
- name: categoryId
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
responses:
|
|
|
|
'204':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: No Content
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-04 11:34:04 +03:00
|
|
|
'404':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: Not Found
|
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
2021-11-04 11:34:04 +03:00
|
|
|
security:
|
2022-06-19 20:05:45 +03:00
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
/admins:
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- admins
|
|
|
|
summary: Get all admins
|
|
|
|
parameters:
|
|
|
|
- name: page
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: length
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: sort
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: q
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: fields
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-11-06 17:41:44 +03:00
|
|
|
- name: with
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-11-04 11:34:04 +03:00
|
|
|
responses:
|
|
|
|
'200':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: OK
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/AdminCollection'
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-05 11:32:07 +03:00
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
2021-11-04 11:34:04 +03:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
2021-11-04 11:34:04 +03:00
|
|
|
security:
|
2022-06-19 20:05:45 +03:00
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
post:
|
|
|
|
tags:
|
|
|
|
- admins
|
|
|
|
summary: Create an admin
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/AdminPayload'
|
2021-11-04 11:34:04 +03:00
|
|
|
required: true
|
|
|
|
responses:
|
|
|
|
'201':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: Created
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/AdminRecord'
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-05 11:32:07 +03:00
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
2021-11-04 11:34:04 +03:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
2021-11-04 11:34:04 +03:00
|
|
|
x-codegen-request-body-name: body
|
|
|
|
security:
|
2022-06-19 20:05:45 +03:00
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
/admins/{adminId}:
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- admins
|
|
|
|
summary: Get an admin
|
|
|
|
parameters:
|
|
|
|
- name: adminId
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
responses:
|
|
|
|
'200':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: OK
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/AdminRecord'
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-05 11:32:07 +03:00
|
|
|
'404':
|
|
|
|
description: Not Found
|
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
2021-11-04 11:34:04 +03:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
2021-11-04 11:34:04 +03:00
|
|
|
security:
|
2022-06-19 20:05:45 +03:00
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
put:
|
|
|
|
tags:
|
|
|
|
- admins
|
|
|
|
summary: Update an admin
|
|
|
|
parameters:
|
|
|
|
- name: adminId
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/AdminPayload'
|
|
|
|
required: true
|
2021-11-04 11:34:04 +03:00
|
|
|
responses:
|
|
|
|
'200':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: OK
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/AdminRecord'
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-05 11:32:07 +03:00
|
|
|
'404':
|
|
|
|
description: Not Found
|
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
2021-11-04 11:34:04 +03:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
2021-11-04 11:34:04 +03:00
|
|
|
x-codegen-request-body-name: body
|
|
|
|
security:
|
2022-06-19 20:05:45 +03:00
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
delete:
|
|
|
|
tags:
|
|
|
|
- admins
|
|
|
|
summary: Delete an admin
|
|
|
|
parameters:
|
|
|
|
- name: adminId
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
responses:
|
|
|
|
'204':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: No Content
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-04 11:34:04 +03:00
|
|
|
'404':
|
|
|
|
description: Not Found
|
2021-11-05 11:32:07 +03:00
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
2021-11-04 11:34:04 +03:00
|
|
|
security:
|
2022-06-19 20:05:45 +03:00
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
/providers:
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- providers
|
|
|
|
summary: Get all providers
|
|
|
|
parameters:
|
|
|
|
- name: page
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: length
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: sort
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: q
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-11-06 17:41:44 +03:00
|
|
|
- name: fields
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: with
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-11-04 11:34:04 +03:00
|
|
|
responses:
|
|
|
|
'200':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: OK
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/ProviderCollection'
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-05 11:32:07 +03:00
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
2021-11-04 11:34:04 +03:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
2021-11-04 11:34:04 +03:00
|
|
|
security:
|
2022-06-19 20:05:45 +03:00
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
post:
|
|
|
|
tags:
|
|
|
|
- providers
|
|
|
|
summary: Create a provider
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/ProviderPayload'
|
|
|
|
required: true
|
2021-11-04 11:34:04 +03:00
|
|
|
responses:
|
|
|
|
'201':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: Created
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/ProviderRecord'
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-05 11:32:07 +03:00
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
2021-11-04 11:34:04 +03:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
2021-11-04 11:34:04 +03:00
|
|
|
x-codegen-request-body-name: body
|
|
|
|
security:
|
2022-06-19 20:05:45 +03:00
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
/providers/{providerId}:
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- providers
|
|
|
|
summary: Get a provider
|
|
|
|
parameters:
|
|
|
|
- name: providerId
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
responses:
|
|
|
|
'200':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: OK
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/ProviderRecord'
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-05 11:32:07 +03:00
|
|
|
'404':
|
|
|
|
description: Not Found
|
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
2021-11-04 11:34:04 +03:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
2021-11-04 11:34:04 +03:00
|
|
|
security:
|
2022-06-19 20:05:45 +03:00
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
put:
|
|
|
|
tags:
|
|
|
|
- providers
|
|
|
|
summary: Update a provider
|
|
|
|
parameters:
|
|
|
|
- name: providerId
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/ProviderPayload'
|
|
|
|
required: true
|
2021-11-04 11:34:04 +03:00
|
|
|
responses:
|
|
|
|
'200':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: OK
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/ProviderRecord'
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-05 11:32:07 +03:00
|
|
|
'404':
|
|
|
|
description: Not Found
|
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
2021-11-04 11:34:04 +03:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
2021-11-04 11:34:04 +03:00
|
|
|
x-codegen-request-body-name: body
|
|
|
|
security:
|
2022-06-19 20:05:45 +03:00
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
delete:
|
|
|
|
tags:
|
|
|
|
- providers
|
|
|
|
summary: Delete a provider
|
|
|
|
parameters:
|
|
|
|
- name: providerId
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
responses:
|
|
|
|
'204':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: No Content
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-04 11:34:04 +03:00
|
|
|
'404':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: Not Found
|
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
2021-11-04 11:34:04 +03:00
|
|
|
security:
|
2022-06-19 20:05:45 +03:00
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
/secretaries:
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- secretaries
|
|
|
|
summary: Get all secretaries
|
|
|
|
parameters:
|
|
|
|
- name: page
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: length
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: sort
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: q
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-11-06 17:41:44 +03:00
|
|
|
- name: fields
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: with
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-11-04 11:34:04 +03:00
|
|
|
responses:
|
|
|
|
'200':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: OK
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/SecretaryCollection'
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-05 11:32:07 +03:00
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
2021-11-04 11:34:04 +03:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
2021-11-04 11:34:04 +03:00
|
|
|
security:
|
2022-06-19 20:05:45 +03:00
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
post:
|
|
|
|
tags:
|
|
|
|
- secretaries
|
|
|
|
summary: Create a secretary
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/SecretaryPayload'
|
|
|
|
required: true
|
2021-11-04 11:34:04 +03:00
|
|
|
responses:
|
|
|
|
'201':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: Created
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/SecretaryRecord'
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-05 11:32:07 +03:00
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
2021-11-04 11:34:04 +03:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
2021-11-04 11:34:04 +03:00
|
|
|
x-codegen-request-body-name: body
|
|
|
|
security:
|
2022-06-19 20:05:45 +03:00
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
/secretaries/{secretaryId}:
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- secretaries
|
|
|
|
summary: Get a secretary
|
|
|
|
parameters:
|
|
|
|
- name: secretaryId
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
responses:
|
|
|
|
'200':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: OK
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/SecretaryRecord'
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-05 11:32:07 +03:00
|
|
|
'404':
|
|
|
|
description: Not Found
|
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
2021-11-04 11:34:04 +03:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
2021-11-04 11:34:04 +03:00
|
|
|
security:
|
2022-06-19 20:05:45 +03:00
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
put:
|
|
|
|
tags:
|
|
|
|
- secretaries
|
|
|
|
summary: Update a secretary
|
|
|
|
parameters:
|
|
|
|
- name: secretaryId
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/SecretaryPayload'
|
|
|
|
required: true
|
2021-11-04 11:34:04 +03:00
|
|
|
responses:
|
|
|
|
'200':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: OK
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/SecretaryRecord'
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-05 11:32:07 +03:00
|
|
|
'404':
|
|
|
|
description: Not Found
|
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
2021-11-04 11:34:04 +03:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
2021-11-04 11:34:04 +03:00
|
|
|
x-codegen-request-body-name: body
|
|
|
|
security:
|
2022-06-19 20:05:45 +03:00
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
delete:
|
|
|
|
tags:
|
|
|
|
- secretaries
|
|
|
|
summary: Delete a secretary
|
|
|
|
parameters:
|
|
|
|
- name: secretaryId
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
responses:
|
|
|
|
'204':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: No Content
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-04 11:34:04 +03:00
|
|
|
'404':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: Not Found
|
2021-11-04 11:34:04 +03:00
|
|
|
security:
|
2022-06-19 20:05:45 +03:00
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
/settings:
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- settings
|
|
|
|
summary: Get all settings
|
|
|
|
parameters:
|
|
|
|
- name: page
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: length
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: sort
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: q
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-11-06 17:41:44 +03:00
|
|
|
- name: fields
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: with
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-11-04 11:34:04 +03:00
|
|
|
responses:
|
|
|
|
'200':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: OK
|
2021-11-04 11:34:04 +03:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/SettingCollection'
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-05 11:32:07 +03:00
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
2021-11-04 11:34:04 +03:00
|
|
|
security:
|
2022-06-19 20:05:45 +03:00
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
/settings/{settingName}:
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- settings
|
|
|
|
summary: Get a setting
|
|
|
|
parameters:
|
|
|
|
- name: settingName
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
responses:
|
|
|
|
'200':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: OK
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/SettingRecord'
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-05 11:32:07 +03:00
|
|
|
'404':
|
|
|
|
description: Not Found
|
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
2021-11-04 11:34:04 +03:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
2021-11-04 11:34:04 +03:00
|
|
|
security:
|
2022-06-19 20:05:45 +03:00
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
put:
|
|
|
|
tags:
|
|
|
|
- settings
|
|
|
|
summary: Update a setting
|
|
|
|
parameters:
|
|
|
|
- name: settingName
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
schema:
|
2021-11-06 17:02:15 +03:00
|
|
|
type: string
|
2021-11-04 11:34:04 +03:00
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/SettingPayload'
|
|
|
|
required: true
|
2021-11-04 11:34:04 +03:00
|
|
|
responses:
|
|
|
|
'200':
|
2021-11-05 11:32:07 +03:00
|
|
|
description: OK
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/SettingRecord'
|
2021-11-06 17:02:15 +03:00
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
2021-11-05 11:32:07 +03:00
|
|
|
'404':
|
|
|
|
description: Not Found
|
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
2021-11-04 11:34:04 +03:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
2021-11-04 11:34:04 +03:00
|
|
|
x-codegen-request-body-name: body
|
|
|
|
security:
|
2022-06-19 20:05:45 +03:00
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
|
|
|
/webhooks:
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- webhooks
|
|
|
|
summary: Get all webhooks
|
|
|
|
parameters:
|
|
|
|
- name: page
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: length
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: sort
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: q
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: fields
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: with
|
|
|
|
in: query
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: OK
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/WebhookCollection'
|
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
|
|
|
post:
|
|
|
|
tags:
|
|
|
|
- webhooks
|
|
|
|
summary: Create a webhook
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/WebhookPayload'
|
|
|
|
required: true
|
|
|
|
responses:
|
|
|
|
'201':
|
|
|
|
description: Created
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/WebhookRecord'
|
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
|
|
x-codegen-request-body-name: body
|
|
|
|
security:
|
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
|
|
|
/webhooks/{webhookId}:
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- webhooks
|
|
|
|
summary: Get a webhook
|
|
|
|
parameters:
|
|
|
|
- name: webhookId
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: OK
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/WebhookRecord'
|
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
|
|
|
'404':
|
|
|
|
description: Not Found
|
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
|
|
|
put:
|
|
|
|
tags:
|
|
|
|
- webhooks
|
|
|
|
summary: Update a webhook
|
|
|
|
parameters:
|
|
|
|
- name: webhookId
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/WebhookPayload'
|
|
|
|
required: true
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: OK
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/WebhookRecord'
|
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
|
|
|
'404':
|
|
|
|
description: Not Found
|
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
|
|
x-codegen-request-body-name: body
|
|
|
|
security:
|
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
|
|
|
delete:
|
|
|
|
tags:
|
|
|
|
- webhooks
|
|
|
|
summary: Delete a webhook
|
|
|
|
parameters:
|
|
|
|
- name: webhookId
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
responses:
|
|
|
|
'204':
|
|
|
|
description: No Content
|
|
|
|
'401':
|
|
|
|
description: Unauthorized
|
|
|
|
'404':
|
|
|
|
description: Not Found
|
|
|
|
'500':
|
|
|
|
description: Internal Server Error
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerToken: [ ]
|
|
|
|
- BasicAuth: [ ]
|
2021-11-03 09:40:09 +03:00
|
|
|
components:
|
2021-11-04 11:34:04 +03:00
|
|
|
schemas:
|
|
|
|
Availabilities:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: string
|
2021-11-05 11:32:07 +03:00
|
|
|
AppointmentRecord:
|
2021-11-04 11:34:04 +03:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
book:
|
|
|
|
type: string
|
|
|
|
start:
|
|
|
|
type: string
|
|
|
|
end:
|
|
|
|
type: string
|
|
|
|
hash:
|
|
|
|
type: string
|
|
|
|
location:
|
|
|
|
type: string
|
2022-10-16 21:54:26 +03:00
|
|
|
color:
|
|
|
|
type: string
|
|
|
|
status:
|
|
|
|
type: string
|
2021-11-04 11:34:04 +03:00
|
|
|
notes:
|
|
|
|
type: string
|
|
|
|
customerId:
|
|
|
|
type: integer
|
|
|
|
providerId:
|
|
|
|
type: integer
|
|
|
|
serviceId:
|
|
|
|
type: integer
|
|
|
|
googleCalendarId:
|
|
|
|
type: string
|
|
|
|
example:
|
|
|
|
id: 1
|
|
|
|
book: '2021-01-01 12:00:00'
|
|
|
|
start: '2021-01-01 17:00:00'
|
|
|
|
end: '2021-01-01 18:00:00'
|
|
|
|
hash: apTWVbSvBJXR
|
2021-11-06 18:47:40 +03:00
|
|
|
location: Test Street 1A, 12345 Some State, Some Place
|
2022-10-16 21:54:26 +03:00
|
|
|
color: '#123456'
|
|
|
|
status: Booked
|
2021-11-06 17:02:15 +03:00
|
|
|
notes: This is a test appointment.
|
2021-11-04 11:34:04 +03:00
|
|
|
customerId: 5
|
|
|
|
providerId: 2
|
|
|
|
serviceId: 6
|
|
|
|
googleCalendarId: null
|
2021-11-05 11:32:07 +03:00
|
|
|
AppointmentPayload:
|
2021-11-04 11:34:04 +03:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
start:
|
|
|
|
type: string
|
|
|
|
end:
|
|
|
|
type: string
|
|
|
|
location:
|
|
|
|
type: string
|
2022-10-16 21:54:26 +03:00
|
|
|
color:
|
|
|
|
type: string
|
|
|
|
status:
|
|
|
|
type: string
|
2021-11-04 11:34:04 +03:00
|
|
|
notes:
|
|
|
|
type: string
|
|
|
|
customerId:
|
|
|
|
type: integer
|
|
|
|
providerId:
|
|
|
|
type: integer
|
|
|
|
serviceId:
|
|
|
|
type: integer
|
|
|
|
example:
|
|
|
|
start: '2021-01-01 17:00:00'
|
|
|
|
end: '2021-01-01 18:00:00'
|
2021-11-06 18:47:40 +03:00
|
|
|
location: Test Street 1A, 12345 Some State, Some Place
|
2022-10-16 21:54:26 +03:00
|
|
|
color: '#123456'
|
|
|
|
status: Booked
|
2021-11-06 17:02:15 +03:00
|
|
|
notes: This is a test appointment.
|
2021-11-04 11:34:04 +03:00
|
|
|
customerId: 5
|
|
|
|
providerId: 2
|
|
|
|
serviceId: 6
|
2021-11-05 11:32:07 +03:00
|
|
|
AppointmentCollection:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/components/schemas/AppointmentRecord'
|
|
|
|
UnavailabilityRecord:
|
2021-11-04 11:34:04 +03:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
book:
|
|
|
|
type: string
|
|
|
|
start:
|
|
|
|
type: string
|
|
|
|
end:
|
|
|
|
type: string
|
2021-11-06 17:02:15 +03:00
|
|
|
hash:
|
|
|
|
type: string
|
|
|
|
location:
|
|
|
|
type: string
|
2021-11-04 11:34:04 +03:00
|
|
|
notes:
|
|
|
|
type: string
|
|
|
|
providerId:
|
|
|
|
type: integer
|
2021-11-06 17:02:15 +03:00
|
|
|
googleCalendarId:
|
|
|
|
type: integer
|
2021-11-04 11:34:04 +03:00
|
|
|
example:
|
|
|
|
id: 1
|
|
|
|
book: '2021-01-01 12:00:00'
|
|
|
|
start: '2021-01-01 17:00:00'
|
2021-11-06 17:02:15 +03:00
|
|
|
end: '2021-01-01 18:00:00'
|
2021-11-06 18:47:40 +03:00
|
|
|
hash: apTWVbSvBJXR
|
|
|
|
location: Test Street 1A, 12345 Some State, Some Place
|
2021-11-06 17:02:15 +03:00
|
|
|
notes: This is a test unavailability.
|
2021-11-04 11:34:04 +03:00
|
|
|
providerId: 2
|
2021-11-06 17:02:15 +03:00
|
|
|
googleCalendarId: null
|
2021-11-05 11:32:07 +03:00
|
|
|
UnavailabilityPayload:
|
2021-11-04 11:34:04 +03:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
start:
|
|
|
|
type: string
|
|
|
|
end:
|
|
|
|
type: string
|
2021-11-06 17:02:15 +03:00
|
|
|
location:
|
|
|
|
type: string
|
2021-11-04 11:34:04 +03:00
|
|
|
notes:
|
|
|
|
type: string
|
|
|
|
providerId:
|
|
|
|
type: integer
|
|
|
|
example:
|
|
|
|
start: '2021-01-01 17:00:00'
|
2021-11-06 17:02:15 +03:00
|
|
|
end: '2021-01-01 18:00:00'
|
2021-11-06 18:47:40 +03:00
|
|
|
location: Test Street 1A, 12345 Some State, Some Place
|
2021-11-06 17:02:15 +03:00
|
|
|
notes: This is a test appointment.
|
2021-11-04 11:34:04 +03:00
|
|
|
providerId: 2
|
2021-11-05 11:32:07 +03:00
|
|
|
UnavailabilityCollection:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/components/schemas/UnavailabilityRecord'
|
|
|
|
CustomerRecord:
|
2021-11-04 11:34:04 +03:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
firstName:
|
|
|
|
type: string
|
|
|
|
lastName:
|
|
|
|
type: string
|
|
|
|
email:
|
|
|
|
type: string
|
|
|
|
phone:
|
|
|
|
type: string
|
|
|
|
address:
|
|
|
|
type: string
|
|
|
|
city:
|
|
|
|
type: string
|
|
|
|
zip:
|
|
|
|
type: string
|
2021-11-06 17:02:15 +03:00
|
|
|
timezone:
|
|
|
|
type: string
|
|
|
|
language:
|
|
|
|
type: string
|
2021-11-04 11:34:04 +03:00
|
|
|
notes:
|
|
|
|
type: string
|
|
|
|
example:
|
|
|
|
id: 1
|
2021-11-06 18:47:40 +03:00
|
|
|
firstName: Steve
|
2021-11-04 11:34:04 +03:00
|
|
|
lastName: Doe
|
2021-11-06 18:47:40 +03:00
|
|
|
email: steve@example.org
|
2021-11-04 11:34:04 +03:00
|
|
|
phone: Test Street 1A
|
|
|
|
city: Some Place
|
|
|
|
zip: '12345'
|
2021-11-06 17:02:15 +03:00
|
|
|
timezone: UTC
|
|
|
|
language: english
|
2021-11-05 11:32:07 +03:00
|
|
|
notes: This is a test customer.
|
|
|
|
CustomerPayload:
|
2021-11-04 11:34:04 +03:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
firstName:
|
|
|
|
type: string
|
|
|
|
lastName:
|
|
|
|
type: string
|
|
|
|
email:
|
|
|
|
type: string
|
|
|
|
phone:
|
|
|
|
type: string
|
|
|
|
address:
|
|
|
|
type: string
|
|
|
|
city:
|
|
|
|
type: string
|
|
|
|
zip:
|
|
|
|
type: string
|
2021-11-06 17:02:15 +03:00
|
|
|
timezone:
|
|
|
|
type: string
|
|
|
|
language:
|
|
|
|
type: string
|
2021-11-04 11:34:04 +03:00
|
|
|
notes:
|
|
|
|
type: string
|
|
|
|
example:
|
2021-11-06 18:47:40 +03:00
|
|
|
firstName: Steve
|
2021-11-04 11:34:04 +03:00
|
|
|
lastName: Doe
|
2021-11-06 18:47:40 +03:00
|
|
|
email: steve@example.org
|
2021-11-04 11:34:04 +03:00
|
|
|
phone: Test Street 1A
|
|
|
|
city: Some Place
|
|
|
|
zip: '12345'
|
2021-11-06 17:02:15 +03:00
|
|
|
timezone: UTC
|
|
|
|
language: english
|
2021-11-05 11:32:07 +03:00
|
|
|
notes: This is a test customer.
|
|
|
|
CustomerCollection:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/components/schemas/CustomerRecord'
|
|
|
|
ServiceRecord:
|
2021-11-04 11:34:04 +03:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
duration:
|
|
|
|
type: integer
|
|
|
|
price:
|
|
|
|
type: number
|
|
|
|
format: float
|
|
|
|
currency:
|
|
|
|
type: string
|
2021-11-06 17:02:15 +03:00
|
|
|
location:
|
|
|
|
type: string
|
2021-11-04 11:34:04 +03:00
|
|
|
description:
|
|
|
|
type: string
|
|
|
|
availabilitiesType:
|
|
|
|
type: string
|
|
|
|
attendantsNumber:
|
|
|
|
type: integer
|
|
|
|
categoryId:
|
|
|
|
type: integer
|
|
|
|
example:
|
|
|
|
id: 1
|
|
|
|
name: Test Service
|
|
|
|
duration: 30
|
|
|
|
price: 10
|
|
|
|
currency: USD
|
2021-11-06 18:47:40 +03:00
|
|
|
location: Test Street 1A, 12345 Some State, Some Place
|
2021-11-04 11:34:04 +03:00
|
|
|
description: This is a test service.
|
2021-11-06 17:02:15 +03:00
|
|
|
availabilitiesType: flexible
|
2021-11-04 11:34:04 +03:00
|
|
|
attendantsNumber: 1
|
|
|
|
categoryId: null
|
2021-11-05 11:32:07 +03:00
|
|
|
ServicePayload:
|
2021-11-04 11:34:04 +03:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
duration:
|
|
|
|
type: integer
|
|
|
|
price:
|
|
|
|
type: number
|
|
|
|
currency:
|
|
|
|
type: string
|
2021-11-06 17:02:15 +03:00
|
|
|
location:
|
|
|
|
type: string
|
2021-11-04 11:34:04 +03:00
|
|
|
description:
|
|
|
|
type: string
|
|
|
|
availabilitiesType:
|
|
|
|
type: string
|
|
|
|
attendantsNumber:
|
|
|
|
type: integer
|
|
|
|
categoryId:
|
|
|
|
type: integer
|
|
|
|
example:
|
|
|
|
name: Test Service
|
|
|
|
duration: 30
|
|
|
|
price: 10
|
|
|
|
currency: USD
|
2021-11-06 18:47:40 +03:00
|
|
|
location: Test Street 1A, 12345 Some State, Some Place
|
2021-11-04 11:34:04 +03:00
|
|
|
description: This is a test service.
|
2021-11-06 17:02:15 +03:00
|
|
|
availabilitiesType: flexible
|
2021-11-04 11:34:04 +03:00
|
|
|
attendantsNumber: 1
|
|
|
|
categoryId: null
|
2021-11-05 11:32:07 +03:00
|
|
|
ServiceCollection:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/components/schemas/ServiceRecord'
|
|
|
|
CategoryRecord:
|
2021-11-04 11:34:04 +03:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
description:
|
|
|
|
type: string
|
|
|
|
example:
|
|
|
|
id: 1
|
|
|
|
name: Test Category
|
|
|
|
description: This is a test category.
|
2021-11-05 11:32:07 +03:00
|
|
|
CategoryPayload:
|
2021-11-04 11:34:04 +03:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
description:
|
|
|
|
type: string
|
|
|
|
example:
|
|
|
|
name: Test Category
|
|
|
|
description: This is a test category.
|
2021-11-05 11:32:07 +03:00
|
|
|
CategoryCollection:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/components/schemas/CategoryRecord'
|
|
|
|
AdminRecord:
|
2021-11-04 11:34:04 +03:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
firstName:
|
|
|
|
type: string
|
|
|
|
lastName:
|
|
|
|
type: string
|
|
|
|
email:
|
|
|
|
type: string
|
|
|
|
mobile:
|
|
|
|
type: string
|
|
|
|
phone:
|
|
|
|
type: string
|
|
|
|
address:
|
|
|
|
type: string
|
|
|
|
city:
|
|
|
|
type: string
|
|
|
|
zip:
|
|
|
|
type: string
|
|
|
|
notes:
|
|
|
|
type: string
|
|
|
|
timezone:
|
|
|
|
type: string
|
|
|
|
settings:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
username:
|
|
|
|
type: string
|
|
|
|
password:
|
|
|
|
type: string
|
|
|
|
format: password
|
|
|
|
notifications:
|
|
|
|
type: boolean
|
|
|
|
calendarView:
|
|
|
|
type: string
|
|
|
|
example:
|
|
|
|
id: 1
|
2021-11-06 18:47:40 +03:00
|
|
|
firstName: Jason
|
2021-11-04 11:34:04 +03:00
|
|
|
lastName: Doe
|
2021-11-06 18:47:40 +03:00
|
|
|
email: jason@example.org
|
2021-11-04 11:34:04 +03:00
|
|
|
mobile: '+10000000000'
|
|
|
|
phone: '+10000000000'
|
|
|
|
address: Test Street 1A
|
|
|
|
city: Some Place
|
|
|
|
zip: '12345'
|
|
|
|
notes: This is a test admin.
|
|
|
|
timezone: UTC
|
|
|
|
settings:
|
2021-11-06 18:47:40 +03:00
|
|
|
username: jasondoe
|
|
|
|
password: Password@123
|
2021-11-04 11:34:04 +03:00
|
|
|
notifications: true
|
|
|
|
calendarView: default
|
2021-11-05 11:32:07 +03:00
|
|
|
AdminPayload:
|
2021-11-04 11:34:04 +03:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
firstName:
|
|
|
|
type: string
|
|
|
|
lastName:
|
|
|
|
type: string
|
|
|
|
email:
|
|
|
|
type: string
|
|
|
|
mobile:
|
|
|
|
type: string
|
|
|
|
phone:
|
|
|
|
type: string
|
|
|
|
address:
|
|
|
|
type: string
|
|
|
|
city:
|
|
|
|
type: string
|
|
|
|
zip:
|
|
|
|
type: string
|
|
|
|
notes:
|
|
|
|
type: string
|
|
|
|
timezone:
|
|
|
|
type: string
|
2021-11-06 17:02:15 +03:00
|
|
|
language:
|
|
|
|
type: string
|
2021-11-04 11:34:04 +03:00
|
|
|
settings:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
username:
|
|
|
|
type: string
|
|
|
|
password:
|
|
|
|
type: string
|
|
|
|
format: password
|
|
|
|
notifications:
|
|
|
|
type: boolean
|
|
|
|
calendarView:
|
|
|
|
type: string
|
|
|
|
example:
|
2021-11-06 18:47:40 +03:00
|
|
|
firstName: Jason
|
2021-11-04 11:34:04 +03:00
|
|
|
lastName: Doe
|
2021-11-06 18:47:40 +03:00
|
|
|
email: jason@example.org
|
2021-11-04 11:34:04 +03:00
|
|
|
mobile: '+10000000000'
|
|
|
|
phone: '+10000000000'
|
|
|
|
address: Test Street 1A
|
|
|
|
city: Some Place
|
|
|
|
zip: '12345'
|
|
|
|
notes: This is a test admin.
|
|
|
|
timezone: UTC
|
2021-11-06 17:02:15 +03:00
|
|
|
language: english
|
2021-11-04 11:34:04 +03:00
|
|
|
settings:
|
2021-11-06 18:47:40 +03:00
|
|
|
username: jasondoe
|
|
|
|
password: Password@123
|
2021-11-04 11:34:04 +03:00
|
|
|
notifications: true
|
|
|
|
calendarView: default
|
2021-11-05 11:32:07 +03:00
|
|
|
AdminCollection:
|
2021-11-04 11:34:04 +03:00
|
|
|
type: array
|
|
|
|
items:
|
2021-11-05 11:32:07 +03:00
|
|
|
$ref: '#/components/schemas/AdminRecord'
|
|
|
|
ProviderRecord:
|
2021-11-04 11:34:04 +03:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
firstName:
|
|
|
|
type: string
|
|
|
|
lastName:
|
|
|
|
type: string
|
|
|
|
email:
|
|
|
|
type: string
|
|
|
|
mobile:
|
|
|
|
type: string
|
|
|
|
phone:
|
|
|
|
type: string
|
|
|
|
address:
|
|
|
|
type: string
|
|
|
|
city:
|
|
|
|
type: string
|
|
|
|
zip:
|
|
|
|
type: string
|
|
|
|
notes:
|
|
|
|
type: string
|
|
|
|
timezone:
|
|
|
|
type: string
|
2021-11-06 17:02:15 +03:00
|
|
|
language:
|
|
|
|
type: string
|
2021-11-04 11:34:04 +03:00
|
|
|
services:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: integer
|
|
|
|
settings:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
username:
|
|
|
|
type: string
|
|
|
|
password:
|
|
|
|
type: string
|
|
|
|
notifications:
|
|
|
|
type: boolean
|
|
|
|
calendarView:
|
|
|
|
type: string
|
|
|
|
googleSync:
|
|
|
|
type: boolean
|
|
|
|
googleCalendar:
|
|
|
|
type: string
|
|
|
|
googleToken:
|
|
|
|
type: string
|
|
|
|
syncFutureDays:
|
|
|
|
type: string
|
|
|
|
syncPastDays:
|
|
|
|
type: string
|
|
|
|
workingPlan:
|
|
|
|
type: string
|
|
|
|
example:
|
|
|
|
id: 1
|
2021-11-06 18:47:40 +03:00
|
|
|
firstName: Chris
|
2021-11-04 11:34:04 +03:00
|
|
|
lastName: Doe
|
2021-11-06 18:47:40 +03:00
|
|
|
email: chris@example.org
|
2021-11-04 11:34:04 +03:00
|
|
|
mobile: '+10000000000'
|
|
|
|
phone: '+10000000000'
|
|
|
|
address: Test Street 1A
|
|
|
|
city: Some Place
|
|
|
|
zip: '12345'
|
|
|
|
notes: This is a test provider.
|
|
|
|
timezone: UTC
|
2021-11-06 17:02:15 +03:00
|
|
|
language: english
|
2022-06-19 20:05:45 +03:00
|
|
|
services: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
settings:
|
2021-11-06 18:47:40 +03:00
|
|
|
username: chrisdoe
|
|
|
|
password: Password@123
|
2021-11-04 11:34:04 +03:00
|
|
|
notifications: true
|
|
|
|
calendarView: default
|
|
|
|
googleSync: false
|
|
|
|
googleCalendar: null
|
|
|
|
googleToken: null
|
|
|
|
syncFutureDays: 90
|
|
|
|
syncPastDays: 30
|
|
|
|
workingPlan:
|
|
|
|
sunday: null
|
|
|
|
monday:
|
|
|
|
start: '09:00'
|
|
|
|
end: '17:00'
|
2022-06-19 20:05:45 +03:00
|
|
|
breaks: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
tuesday:
|
|
|
|
start: '09:00'
|
|
|
|
end: '17:00'
|
2022-06-19 20:05:45 +03:00
|
|
|
breaks: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
wednesday:
|
|
|
|
start: '09:00'
|
|
|
|
end: '17:00'
|
2022-06-19 20:05:45 +03:00
|
|
|
breaks: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
thursday:
|
|
|
|
start: '09:00'
|
|
|
|
end: '17:00'
|
2022-06-19 20:05:45 +03:00
|
|
|
breaks: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
friday:
|
|
|
|
start: '09:00'
|
|
|
|
end: '17:00'
|
2022-06-19 20:05:45 +03:00
|
|
|
breaks: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
saturday: null
|
2021-11-05 11:32:07 +03:00
|
|
|
ProviderPayload:
|
2021-11-04 11:34:04 +03:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
firstName:
|
|
|
|
type: string
|
|
|
|
lastName:
|
|
|
|
type: string
|
|
|
|
email:
|
|
|
|
type: string
|
|
|
|
mobile:
|
|
|
|
type: string
|
|
|
|
phone:
|
|
|
|
type: string
|
|
|
|
address:
|
|
|
|
type: string
|
|
|
|
city:
|
|
|
|
type: string
|
|
|
|
zip:
|
|
|
|
type: string
|
|
|
|
notes:
|
|
|
|
type: string
|
|
|
|
timezone:
|
|
|
|
type: string
|
2021-11-06 17:02:15 +03:00
|
|
|
language:
|
|
|
|
type: string
|
2021-11-04 11:34:04 +03:00
|
|
|
services:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: integer
|
|
|
|
settings:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
username:
|
|
|
|
type: string
|
|
|
|
password:
|
|
|
|
type: string
|
|
|
|
format: password
|
|
|
|
notifications:
|
|
|
|
type: boolean
|
|
|
|
calendarView:
|
|
|
|
type: string
|
|
|
|
googleSync:
|
|
|
|
type: boolean
|
|
|
|
googleCalendar:
|
|
|
|
type: string
|
|
|
|
googleToken:
|
|
|
|
type: string
|
|
|
|
syncFutureDays:
|
|
|
|
type: string
|
|
|
|
syncPastDays:
|
|
|
|
type: string
|
|
|
|
workingPlan:
|
|
|
|
type: string
|
|
|
|
example:
|
2021-11-06 18:47:40 +03:00
|
|
|
firstName: Chris
|
2021-11-04 11:34:04 +03:00
|
|
|
lastName: Doe
|
2021-11-06 18:47:40 +03:00
|
|
|
email: chris@example.org
|
2021-11-04 11:34:04 +03:00
|
|
|
mobile: '+10000000000'
|
|
|
|
phone: '+10000000000'
|
|
|
|
address: Test Street 1A
|
|
|
|
city: Some Place
|
|
|
|
zip: '12345'
|
|
|
|
notes: This is a test provider.
|
|
|
|
timezone: UTC
|
2021-11-06 17:02:15 +03:00
|
|
|
language: english
|
2022-06-19 20:05:45 +03:00
|
|
|
services: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
settings:
|
2021-11-06 18:47:40 +03:00
|
|
|
username: chrisdoe
|
|
|
|
password: Password@123
|
2021-11-04 11:34:04 +03:00
|
|
|
notifications: true
|
|
|
|
calendarView: default
|
|
|
|
googleSync: false
|
|
|
|
googleCalendar: null
|
|
|
|
googleToken: null
|
|
|
|
syncFutureDays: 90
|
|
|
|
syncPastDays: 30
|
|
|
|
workingPlan:
|
|
|
|
sunday: null
|
|
|
|
monday:
|
|
|
|
start: '09:00'
|
|
|
|
end: '17:00'
|
2022-06-19 20:05:45 +03:00
|
|
|
breaks: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
tuesday:
|
|
|
|
start: '09:00'
|
|
|
|
end: '17:00'
|
2022-06-19 20:05:45 +03:00
|
|
|
breaks: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
wednesday:
|
|
|
|
start: '09:00'
|
|
|
|
end: '17:00'
|
2022-06-19 20:05:45 +03:00
|
|
|
breaks: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
thursday:
|
|
|
|
start: '09:00'
|
|
|
|
end: '17:00'
|
2022-06-19 20:05:45 +03:00
|
|
|
breaks: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
friday:
|
|
|
|
start: '09:00'
|
|
|
|
end: '17:00'
|
2022-06-19 20:05:45 +03:00
|
|
|
breaks: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
saturday: null
|
2021-11-05 11:32:07 +03:00
|
|
|
ProviderCollection:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/components/schemas/ProviderRecord'
|
|
|
|
SecretaryRecord:
|
2021-11-04 11:34:04 +03:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
firstName:
|
|
|
|
type: string
|
|
|
|
lastName:
|
|
|
|
type: string
|
|
|
|
email:
|
|
|
|
type: string
|
|
|
|
mobile:
|
|
|
|
type: string
|
|
|
|
phone:
|
|
|
|
type: string
|
|
|
|
address:
|
|
|
|
type: string
|
|
|
|
city:
|
|
|
|
type: string
|
|
|
|
zip:
|
|
|
|
type: string
|
|
|
|
notes:
|
|
|
|
type: string
|
|
|
|
timezone:
|
|
|
|
type: string
|
2021-11-06 17:02:15 +03:00
|
|
|
language:
|
|
|
|
type: string
|
2021-11-04 11:34:04 +03:00
|
|
|
providers:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: integer
|
|
|
|
settings:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
username:
|
|
|
|
type: string
|
|
|
|
password:
|
|
|
|
type: string
|
|
|
|
format: password
|
|
|
|
notifications:
|
|
|
|
type: boolean
|
|
|
|
calendarView:
|
|
|
|
type: string
|
|
|
|
example:
|
|
|
|
id: 1
|
2021-11-06 18:47:40 +03:00
|
|
|
firstName: Jessy
|
2021-11-04 11:34:04 +03:00
|
|
|
lastName: Doe
|
2021-11-06 18:47:40 +03:00
|
|
|
email: jessy@example.org
|
2021-11-04 11:34:04 +03:00
|
|
|
mobile: '+10000000000'
|
|
|
|
phone: '+10000000000'
|
|
|
|
address: Test Street 1A
|
|
|
|
city: Some Place
|
|
|
|
zip: '12345'
|
|
|
|
notes: This is a test service.
|
|
|
|
timezone: UTC
|
2021-11-06 17:02:15 +03:00
|
|
|
language: english
|
2022-06-19 20:05:45 +03:00
|
|
|
providers: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
settings:
|
2021-11-06 18:47:40 +03:00
|
|
|
username: jessydoe
|
|
|
|
password: Password@123
|
2021-11-04 11:34:04 +03:00
|
|
|
notifications: true
|
|
|
|
calendarView: default
|
2021-11-05 11:32:07 +03:00
|
|
|
SecretaryPayload:
|
2021-11-04 11:34:04 +03:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
firstName:
|
|
|
|
type: string
|
|
|
|
lastName:
|
|
|
|
type: string
|
|
|
|
email:
|
|
|
|
type: string
|
|
|
|
mobile:
|
|
|
|
type: string
|
|
|
|
phone:
|
|
|
|
type: string
|
|
|
|
address:
|
|
|
|
type: string
|
|
|
|
city:
|
|
|
|
type: string
|
|
|
|
zip:
|
|
|
|
type: string
|
|
|
|
notes:
|
|
|
|
type: string
|
|
|
|
timezone:
|
|
|
|
type: string
|
2021-11-06 17:02:15 +03:00
|
|
|
language:
|
|
|
|
type: string
|
|
|
|
providers:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: integer
|
2021-11-04 11:34:04 +03:00
|
|
|
settings:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
username:
|
|
|
|
type: string
|
|
|
|
password:
|
|
|
|
type: string
|
|
|
|
format: password
|
|
|
|
notifications:
|
|
|
|
type: boolean
|
|
|
|
calendarView:
|
|
|
|
type: string
|
|
|
|
example:
|
2021-11-06 18:47:40 +03:00
|
|
|
firstName: Jessy
|
2021-11-04 11:34:04 +03:00
|
|
|
lastName: Doe
|
2021-11-06 18:47:40 +03:00
|
|
|
email: jessy@example.org
|
2021-11-04 11:34:04 +03:00
|
|
|
mobile: '+10000000000'
|
|
|
|
phone: '+10000000000'
|
|
|
|
address: Test Street 1A
|
|
|
|
city: Some Place
|
|
|
|
zip: '12345'
|
|
|
|
notes: This is a test service.
|
|
|
|
timezone: UTC
|
2021-11-06 17:02:15 +03:00
|
|
|
language: english
|
2022-06-19 20:05:45 +03:00
|
|
|
providers: [ ]
|
2021-11-04 11:34:04 +03:00
|
|
|
settings:
|
2021-11-06 18:47:40 +03:00
|
|
|
username: jessydoe
|
|
|
|
password: Password@123
|
2021-11-04 11:34:04 +03:00
|
|
|
notifications: true
|
|
|
|
calendarView: default
|
2021-11-05 11:32:07 +03:00
|
|
|
SecretaryCollection:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/components/schemas/SecretaryRecord'
|
|
|
|
SettingRecord:
|
2021-11-04 11:34:04 +03:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
value:
|
|
|
|
type: string
|
|
|
|
example:
|
|
|
|
name: company_name
|
|
|
|
value: ACME Inc
|
2021-11-05 11:32:07 +03:00
|
|
|
SettingPayload:
|
2021-11-04 11:34:04 +03:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
value:
|
|
|
|
type: string
|
|
|
|
example:
|
|
|
|
value: ACME Inc
|
2021-11-05 11:32:07 +03:00
|
|
|
SettingCollection:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/components/schemas/SettingRecord'
|
2022-06-19 20:05:45 +03:00
|
|
|
WebhookRecord:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
url:
|
|
|
|
type: string
|
|
|
|
actions:
|
|
|
|
type: string
|
|
|
|
secretToken:
|
|
|
|
type: string
|
|
|
|
isSslVerified:
|
|
|
|
type: boolean
|
|
|
|
notes:
|
|
|
|
type: string
|
|
|
|
example:
|
|
|
|
id: 1
|
|
|
|
name: Test Webhook
|
|
|
|
url: https://example.org/webhook?withTestQueryParam=Value
|
|
|
|
actions: appointment_create,appointment_update,customer_delete,category_create
|
|
|
|
secretToken: SecureSecretTokenHere
|
|
|
|
isSslVerified: true
|
|
|
|
notes: This is a webhook.
|
|
|
|
WebhookPayload:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
url:
|
|
|
|
type: string
|
|
|
|
actions:
|
|
|
|
type: string
|
|
|
|
secretToken:
|
|
|
|
type: string
|
|
|
|
isSslVerified:
|
|
|
|
type: boolean
|
|
|
|
notes:
|
|
|
|
type: string
|
|
|
|
example:
|
|
|
|
name: Test Webhook
|
|
|
|
url: https://example.org/webhook?withTestQueryParam=Value
|
|
|
|
actions: appointment_create,appointment_update,customer_delete,category_create
|
|
|
|
secretToken: SecureSecretTokenHere
|
|
|
|
isSslVerified: true
|
|
|
|
notes: This is a webhook.
|
|
|
|
WebhookCollection:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/components/schemas/WebhookRecord'
|
2021-11-05 11:32:07 +03:00
|
|
|
ErrorResponse:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
success:
|
|
|
|
type: boolean
|
|
|
|
message:
|
|
|
|
type: string
|
|
|
|
example:
|
|
|
|
success: false
|
|
|
|
message: Test error message with debug info.
|
2021-11-04 11:34:04 +03:00
|
|
|
securitySchemes:
|
|
|
|
BearerToken:
|
|
|
|
type: http
|
|
|
|
scheme: bearer
|
|
|
|
description: >-
|
|
|
|
You can generate the API key from the settings page to authorize with
|
|
|
|
Bearer Token.
|
|
|
|
BasicAuth:
|
|
|
|
type: http
|
|
|
|
scheme: basic
|
|
|
|
description: >-
|
|
|
|
You can use the credentials of an admin user to authorize with Basic
|
|
|
|
Auth.
|