Alleva Bed API
The Bed API from Alleva — 4 operation(s) for bed.
Documentation
Documentation
https://api.helloalleva.com/swagger/index.html
APIReference
https://api.helloalleva.com/swagger/index.html
The Bed API from Alleva — 4 operation(s) for bed.
openapi: 3.2.0
info:
title: Alleva Rest Bed API
version: '1.0'
security:
- Bearer: []
tags:
- name: Bed
paths:
/beds:
post:
tags:
- Bed
parameters:
- name: api-version
in: query
schema:
type: string
- name: X-Version
in: header
schema:
type: string
requestBody:
content:
application/json-patch+json; ver=1.0:
schema:
$ref: '#/components/schemas/Bed'
application/json; ver=1.0:
schema:
$ref: '#/components/schemas/Bed'
text/json; ver=1.0:
schema:
$ref: '#/components/schemas/Bed'
application/*+json; ver=1.0:
schema:
$ref: '#/components/schemas/Bed'
responses:
'200':
description: Success
content:
text/plain; ver=1.0:
schema:
$ref: '#/components/schemas/Bed'
application/json; ver=1.0:
schema:
$ref: '#/components/schemas/Bed'
text/json; ver=1.0:
schema:
$ref: '#/components/schemas/Bed'
get:
tags:
- Bed
parameters:
- name: Limit
in: query
schema:
type: integer
format: int64
- name: Cursor
in: query
schema:
type: integer
format: int32
- name: StartDate
in: query
schema:
type: string
format: date-time
- name: EndDate
in: query
schema:
type: string
format: date-time
- name: fields
in: query
schema:
type: array
items:
type: string
- name: api-version
in: query
schema:
type: string
- name: X-Version
in: header
schema:
type: string
responses:
'200':
description: Success
content:
text/plain; ver=1.0:
schema:
type: array
items:
$ref: '#/components/schemas/Bed'
application/json; ver=1.0:
schema:
type: array
items:
$ref: '#/components/schemas/Bed'
text/json; ver=1.0:
schema:
type: array
items:
$ref: '#/components/schemas/Bed'
/v{version}/beds:
post:
tags:
- Bed
parameters:
- name: version
in: path
required: true
schema:
type: string
- name: api-version
in: query
schema:
type: string
- name: X-Version
in: header
schema:
type: string
requestBody:
content:
application/json-patch+json; ver=1.0:
schema:
$ref: '#/components/schemas/Bed'
application/json; ver=1.0:
schema:
$ref: '#/components/schemas/Bed'
text/json; ver=1.0:
schema:
$ref: '#/components/schemas/Bed'
application/*+json; ver=1.0:
schema:
$ref: '#/components/schemas/Bed'
responses:
'200':
description: Success
content:
text/plain; ver=1.0:
schema:
$ref: '#/components/schemas/Bed'
application/json; ver=1.0:
schema:
$ref: '#/components/schemas/Bed'
text/json; ver=1.0:
schema:
$ref: '#/components/schemas/Bed'
get:
tags:
- Bed
parameters:
- name: Limit
in: query
schema:
type: integer
format: int64
- name: Cursor
in: query
schema:
type: integer
format: int32
- name: StartDate
in: query
schema:
type: string
format: date-time
- name: EndDate
in: query
schema:
type: string
format: date-time
- name: fields
in: query
schema:
type: array
items:
type: string
- name: version
in: path
required: true
schema:
type: string
- name: api-version
in: query
schema:
type: string
- name: X-Version
in: header
schema:
type: string
responses:
'200':
description: Success
content:
text/plain; ver=1.0:
schema:
type: array
items:
$ref: '#/components/schemas/Bed'
application/json; ver=1.0:
schema:
type: array
items:
$ref: '#/components/schemas/Bed'
text/json; ver=1.0:
schema:
type: array
items:
$ref: '#/components/schemas/Bed'
/beds/{id}:
delete:
tags:
- Bed
parameters:
- name: id
in: path
required: true
schema:
type: integer
format: int64
- name: api-version
in: query
schema:
type: string
- name: X-Version
in: header
schema:
type: string
responses:
'200':
description: Success
content:
text/plain; ver=1.0:
schema:
$ref: '#/components/schemas/Bed'
application/json; ver=1.0:
schema:
$ref: '#/components/schemas/Bed'
text/json; ver=1.0:
schema:
$ref: '#/components/schemas/Bed'
patch:
tags:
- Bed
parameters:
- name: id
in: path
required: true
schema:
type: integer
format: int64
- name: api-version
in: query
schema:
type: string
- name: X-Version
in: header
schema:
type: string
requestBody:
content:
application/json-patch+json; ver=1.0:
schema:
type: object
additionalProperties:
$ref: '#/components/schemas/JToken'
application/json; ver=1.0:
schema:
type: object
additionalProperties:
$ref: '#/components/schemas/JToken'
text/json; ver=1.0:
schema:
type: object
additionalProperties:
$ref: '#/components/schemas/JToken'
application/*+json; ver=1.0:
schema:
type: object
additionalProperties:
$ref: '#/components/schemas/JToken'
responses:
'200':
description: Success
content:
text/plain; ver=1.0:
schema:
$ref: '#/components/schemas/Bed'
application/json; ver=1.0:
schema:
$ref: '#/components/schemas/Bed'
text/json; ver=1.0:
schema:
$ref: '#/components/schemas/Bed'
get:
tags:
- Bed
parameters:
- name: id
in: path
required: true
schema:
type: integer
format: int64
- name: api-version
in: query
schema:
type: string
- name: X-Version
in: header
schema:
type: string
responses:
'200':
description: Success
content:
text/plain; ver=1.0:
schema:
$ref: '#/components/schemas/Bed'
application/json; ver=1.0:
schema:
$ref: '#/components/schemas/Bed'
text/json; ver=1.0:
schema:
$ref: '#/components/schemas/Bed'
/v{version}/beds/{id}:
delete:
tags:
- Bed
parameters:
- name: id
in: path
required: true
schema:
type: integer
format: int64
- name: version
in: path
required: true
schema:
type: string
- name: api-version
in: query
schema:
type: string
- name: X-Version
in: header
schema:
type: string
responses:
'200':
description: Success
content:
text/plain; ver=1.0:
schema:
$ref: '#/components/schemas/Bed'
application/json; ver=1.0:
schema:
$ref: '#/components/schemas/Bed'
text/json; ver=1.0:
schema:
$ref: '#/components/schemas/Bed'
patch:
tags:
- Bed
parameters:
- name: id
in: path
required: true
schema:
type: integer
format: int64
- name: version
in: path
required: true
schema:
type: string
- name: api-version
in: query
schema:
type: string
- name: X-Version
in: header
schema:
type: string
requestBody:
content:
application/json-patch+json; ver=1.0:
schema:
type: object
additionalProperties:
$ref: '#/components/schemas/JToken'
application/json; ver=1.0:
schema:
type: object
additionalProperties:
$ref: '#/components/schemas/JToken'
text/json; ver=1.0:
schema:
type: object
additionalProperties:
$ref: '#/components/schemas/JToken'
application/*+json; ver=1.0:
schema:
type: object
additionalProperties:
$ref: '#/components/schemas/JToken'
responses:
'200':
description: Success
content:
text/plain; ver=1.0:
schema:
$ref: '#/components/schemas/Bed'
application/json; ver=1.0:
schema:
$ref: '#/components/schemas/Bed'
text/json; ver=1.0:
schema:
$ref: '#/components/schemas/Bed'
get:
tags:
- Bed
parameters:
- name: id
in: path
required: true
schema:
type: integer
format: int64
- name: version
in: path
required: true
schema:
type: string
- name: api-version
in: query
schema:
type: string
- name: X-Version
in: header
schema:
type: string
responses:
'200':
description: Success
content:
text/plain; ver=1.0:
schema:
$ref: '#/components/schemas/Bed'
application/json; ver=1.0:
schema:
$ref: '#/components/schemas/Bed'
text/json; ver=1.0:
schema:
$ref: '#/components/schemas/Bed'
components:
schemas:
JToken:
type: array
items:
$ref: '#/components/schemas/JToken'
Bed:
type: object
properties:
id:
type: integer
format: int32
href:
type:
- string
- 'null'
readOnly: true
name:
type:
- string
- 'null'
description:
type:
- string
- 'null'
forFemale:
type: boolean
isActive:
type: boolean
isMaintenance:
type: boolean
isOccupied:
type:
- boolean
- 'null'
isReserved:
type:
- boolean
- 'null'
room:
$ref: '#/components/schemas/Room'
additionalProperties: false
Room:
type: object
properties:
id:
type: integer
format: int32
href:
type:
- string
- 'null'
readOnly: true
facilityId:
type: integer
format: int32
roomName:
type:
- string
- 'null'
isActive:
type: boolean
totalBeds:
type: integer
format: int32
additionalProperties: false
securitySchemes:
Bearer:
type: apiKey
description: "JWT Authorization header using the Bearer scheme. \n\n Enter Bearer [space] and then\
\ your token in the text input below.\n\nExample: Bearer 12345abcdef"
name: Authorization
in: header
servers:
- url: https://api.helloalleva.com
description: Base URL reconciled from apis.yml