2020-06-19 22:13:01 +00:00
|
|
|
openapi: 3.0.2
|
|
|
|
info:
|
|
|
|
title: Baby Buddy API
|
|
|
|
version: 1
|
|
|
|
description: API documentation for the Baby Buddy application
|
|
|
|
paths:
|
|
|
|
/api/children/:
|
|
|
|
get:
|
|
|
|
operationId: listChilds
|
|
|
|
description: ''
|
|
|
|
parameters:
|
|
|
|
- name: limit
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Number of results to return per page.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: offset
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: The initial index from which to return the results.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: first_name
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: first_name
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: last_name
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: last_name
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: slug
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: slug
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: birth_date
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: birth_date
|
|
|
|
schema:
|
|
|
|
type: string
|
2020-06-19 22:13:01 +00:00
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
count:
|
|
|
|
type: integer
|
|
|
|
example: 123
|
|
|
|
next:
|
|
|
|
type: string
|
|
|
|
nullable: true
|
2021-10-31 20:21:04 +00:00
|
|
|
format: uri
|
|
|
|
example: http://api.example.org/accounts/?offset=400&limit=100
|
2020-06-19 22:13:01 +00:00
|
|
|
previous:
|
|
|
|
type: string
|
|
|
|
nullable: true
|
2021-10-31 20:21:04 +00:00
|
|
|
format: uri
|
|
|
|
example: http://api.example.org/accounts/?offset=200&limit=100
|
2020-06-19 22:13:01 +00:00
|
|
|
results:
|
|
|
|
type: array
|
|
|
|
items:
|
2021-10-31 20:21:04 +00:00
|
|
|
$ref: '#/components/schemas/Child'
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
2020-06-19 22:13:01 +00:00
|
|
|
post:
|
|
|
|
operationId: createChild
|
|
|
|
description: ''
|
|
|
|
parameters: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Child'
|
2020-06-19 22:13:01 +00:00
|
|
|
application/x-www-form-urlencoded:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Child'
|
2020-06-19 22:13:01 +00:00
|
|
|
multipart/form-data:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Child'
|
2020-06-19 22:13:01 +00:00
|
|
|
responses:
|
2021-10-31 20:21:04 +00:00
|
|
|
'201':
|
2020-06-19 22:13:01 +00:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-10-31 20:21:04 +00:00
|
|
|
$ref: '#/components/schemas/Child'
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
2020-06-19 22:13:01 +00:00
|
|
|
/api/children/{slug}/:
|
|
|
|
get:
|
|
|
|
operationId: retrieveChild
|
|
|
|
description: ''
|
|
|
|
parameters:
|
|
|
|
- name: slug
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: ''
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: first_name
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: first_name
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: last_name
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: last_name
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: slug
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: slug
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: birth_date
|
2020-06-19 22:13:01 +00:00
|
|
|
required: false
|
|
|
|
in: query
|
2021-10-31 20:21:04 +00:00
|
|
|
description: birth_date
|
2020-06-19 22:13:01 +00:00
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-10-31 20:21:04 +00:00
|
|
|
$ref: '#/components/schemas/Child'
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
2020-06-19 22:13:01 +00:00
|
|
|
patch:
|
2021-10-31 20:21:04 +00:00
|
|
|
operationId: partialUpdateChild
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
|
|
|
parameters:
|
|
|
|
- name: slug
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: ''
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: first_name
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: first_name
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: last_name
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: last_name
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: slug
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: slug
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: birth_date
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: birth_date
|
|
|
|
schema:
|
|
|
|
type: string
|
2020-06-19 22:13:01 +00:00
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Child'
|
2020-06-19 22:13:01 +00:00
|
|
|
application/x-www-form-urlencoded:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Child'
|
2020-06-19 22:13:01 +00:00
|
|
|
multipart/form-data:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Child'
|
2020-06-19 22:13:01 +00:00
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-10-31 20:21:04 +00:00
|
|
|
$ref: '#/components/schemas/Child'
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
2020-06-19 22:13:01 +00:00
|
|
|
delete:
|
|
|
|
operationId: destroyChild
|
|
|
|
description: ''
|
|
|
|
parameters:
|
|
|
|
- name: slug
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: ''
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: first_name
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: first_name
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: last_name
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: last_name
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: slug
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: slug
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: birth_date
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: birth_date
|
|
|
|
schema:
|
|
|
|
type: string
|
2020-06-19 22:13:01 +00:00
|
|
|
responses:
|
|
|
|
'204':
|
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
2020-06-19 22:13:01 +00:00
|
|
|
/api/changes/:
|
|
|
|
get:
|
|
|
|
operationId: listDiaperChanges
|
|
|
|
description: ''
|
|
|
|
parameters:
|
|
|
|
- name: limit
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Number of results to return per page.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: offset
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: The initial index from which to return the results.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: child
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: child
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: wet
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: wet
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: solid
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: solid
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: color
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: color
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
enum:
|
|
|
|
- black
|
|
|
|
- brown
|
|
|
|
- green
|
|
|
|
- yellow
|
|
|
|
- name: amount
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: amount
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: date
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: date_min
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Min. Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: date_max
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Max. Date
|
|
|
|
schema:
|
|
|
|
type: string
|
2020-06-19 22:13:01 +00:00
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
count:
|
|
|
|
type: integer
|
|
|
|
example: 123
|
|
|
|
next:
|
|
|
|
type: string
|
|
|
|
nullable: true
|
2021-10-31 20:21:04 +00:00
|
|
|
format: uri
|
|
|
|
example: http://api.example.org/accounts/?offset=400&limit=100
|
2020-06-19 22:13:01 +00:00
|
|
|
previous:
|
|
|
|
type: string
|
|
|
|
nullable: true
|
2021-10-31 20:21:04 +00:00
|
|
|
format: uri
|
|
|
|
example: http://api.example.org/accounts/?offset=200&limit=100
|
2020-06-19 22:13:01 +00:00
|
|
|
results:
|
|
|
|
type: array
|
|
|
|
items:
|
2021-10-31 20:21:04 +00:00
|
|
|
$ref: '#/components/schemas/DiaperChange'
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
2020-06-19 22:13:01 +00:00
|
|
|
post:
|
|
|
|
operationId: createDiaperChange
|
|
|
|
description: ''
|
|
|
|
parameters: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/DiaperChange'
|
2020-06-19 22:13:01 +00:00
|
|
|
application/x-www-form-urlencoded:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/DiaperChange'
|
2020-06-19 22:13:01 +00:00
|
|
|
multipart/form-data:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/DiaperChange'
|
2020-06-19 22:13:01 +00:00
|
|
|
responses:
|
2021-10-31 20:21:04 +00:00
|
|
|
'201':
|
2020-06-19 22:13:01 +00:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-10-31 20:21:04 +00:00
|
|
|
$ref: '#/components/schemas/DiaperChange'
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
2020-06-19 22:13:01 +00:00
|
|
|
/api/changes/{id}/:
|
|
|
|
get:
|
|
|
|
operationId: retrieveDiaperChange
|
|
|
|
description: ''
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: A unique integer value identifying this Diaper Change.
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: child
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: child
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: wet
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: wet
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: solid
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: solid
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: color
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: color
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
enum:
|
|
|
|
- black
|
|
|
|
- brown
|
|
|
|
- green
|
|
|
|
- yellow
|
|
|
|
- name: amount
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: amount
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: date
|
2020-06-19 22:13:01 +00:00
|
|
|
required: false
|
|
|
|
in: query
|
2021-10-31 20:21:04 +00:00
|
|
|
description: Date
|
2020-06-19 22:13:01 +00:00
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: date_min
|
2020-06-19 22:13:01 +00:00
|
|
|
required: false
|
|
|
|
in: query
|
2021-10-31 20:21:04 +00:00
|
|
|
description: Min. Date
|
2020-06-19 22:13:01 +00:00
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: date_max
|
2020-06-19 22:13:01 +00:00
|
|
|
required: false
|
|
|
|
in: query
|
2021-10-31 20:21:04 +00:00
|
|
|
description: Max. Date
|
2020-06-19 22:13:01 +00:00
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-10-31 20:21:04 +00:00
|
|
|
$ref: '#/components/schemas/DiaperChange'
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
2020-06-19 22:13:01 +00:00
|
|
|
patch:
|
2021-10-31 20:21:04 +00:00
|
|
|
operationId: partialUpdateDiaperChange
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: A unique integer value identifying this Diaper Change.
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: child
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: child
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: wet
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: wet
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: solid
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: solid
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: color
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: color
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
enum:
|
|
|
|
- black
|
|
|
|
- brown
|
|
|
|
- green
|
|
|
|
- yellow
|
|
|
|
- name: amount
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: amount
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: date
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: date_min
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Min. Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: date_max
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Max. Date
|
|
|
|
schema:
|
|
|
|
type: string
|
2020-06-19 22:13:01 +00:00
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/DiaperChange'
|
2020-06-19 22:13:01 +00:00
|
|
|
application/x-www-form-urlencoded:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/DiaperChange'
|
2020-06-19 22:13:01 +00:00
|
|
|
multipart/form-data:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/DiaperChange'
|
2020-06-19 22:13:01 +00:00
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-10-31 20:21:04 +00:00
|
|
|
$ref: '#/components/schemas/DiaperChange'
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
2020-06-19 22:13:01 +00:00
|
|
|
delete:
|
|
|
|
operationId: destroyDiaperChange
|
|
|
|
description: ''
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: A unique integer value identifying this Diaper Change.
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: child
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: child
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: wet
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: wet
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: solid
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: solid
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: color
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: color
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
enum:
|
|
|
|
- black
|
|
|
|
- brown
|
|
|
|
- green
|
|
|
|
- yellow
|
|
|
|
- name: amount
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: amount
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: date
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: date_min
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Min. Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: date_max
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Max. Date
|
|
|
|
schema:
|
|
|
|
type: string
|
2020-06-19 22:13:01 +00:00
|
|
|
responses:
|
|
|
|
'204':
|
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
2020-06-19 22:13:01 +00:00
|
|
|
/api/feedings/:
|
|
|
|
get:
|
|
|
|
operationId: listFeedings
|
|
|
|
description: ''
|
|
|
|
parameters:
|
|
|
|
- name: limit
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Number of results to return per page.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: offset
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: The initial index from which to return the results.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: child
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: child
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: type
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: type
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
enum:
|
|
|
|
- breast milk
|
|
|
|
- formula
|
|
|
|
- fortified breast milk
|
2021-10-31 20:21:04 +00:00
|
|
|
- solid food
|
2020-06-19 22:13:01 +00:00
|
|
|
- name: method
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: method
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
enum:
|
|
|
|
- bottle
|
|
|
|
- left breast
|
|
|
|
- right breast
|
|
|
|
- both breasts
|
2021-10-31 20:21:04 +00:00
|
|
|
- parent fed
|
|
|
|
- self fed
|
|
|
|
- name: end
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: end_min
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Min. End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: end_max
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Max. End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Start Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start_min
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Min. Start Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start_end
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Max. End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
2020-06-19 22:13:01 +00:00
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
count:
|
|
|
|
type: integer
|
|
|
|
example: 123
|
|
|
|
next:
|
|
|
|
type: string
|
|
|
|
nullable: true
|
2021-10-31 20:21:04 +00:00
|
|
|
format: uri
|
|
|
|
example: http://api.example.org/accounts/?offset=400&limit=100
|
2020-06-19 22:13:01 +00:00
|
|
|
previous:
|
|
|
|
type: string
|
|
|
|
nullable: true
|
2021-10-31 20:21:04 +00:00
|
|
|
format: uri
|
|
|
|
example: http://api.example.org/accounts/?offset=200&limit=100
|
2020-06-19 22:13:01 +00:00
|
|
|
results:
|
|
|
|
type: array
|
|
|
|
items:
|
2021-10-31 20:21:04 +00:00
|
|
|
$ref: '#/components/schemas/Feeding'
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
2020-06-19 22:13:01 +00:00
|
|
|
post:
|
|
|
|
operationId: createFeeding
|
|
|
|
description: ''
|
|
|
|
parameters: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Feeding'
|
2020-06-19 22:13:01 +00:00
|
|
|
application/x-www-form-urlencoded:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Feeding'
|
2020-06-19 22:13:01 +00:00
|
|
|
multipart/form-data:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Feeding'
|
2020-06-19 22:13:01 +00:00
|
|
|
responses:
|
2021-10-31 20:21:04 +00:00
|
|
|
'201':
|
2020-06-19 22:13:01 +00:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-10-31 20:21:04 +00:00
|
|
|
$ref: '#/components/schemas/Feeding'
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
2020-06-19 22:13:01 +00:00
|
|
|
/api/feedings/{id}/:
|
|
|
|
get:
|
|
|
|
operationId: retrieveFeeding
|
|
|
|
description: ''
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: A unique integer value identifying this Feeding.
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: child
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: child
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: type
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: type
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
enum:
|
|
|
|
- breast milk
|
|
|
|
- formula
|
|
|
|
- fortified breast milk
|
2021-10-31 20:21:04 +00:00
|
|
|
- solid food
|
2020-06-19 22:13:01 +00:00
|
|
|
- name: method
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: method
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
enum:
|
|
|
|
- bottle
|
|
|
|
- left breast
|
|
|
|
- right breast
|
|
|
|
- both breasts
|
2021-10-31 20:21:04 +00:00
|
|
|
- parent fed
|
|
|
|
- self fed
|
|
|
|
- name: end
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: end_min
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Min. End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: end_max
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Max. End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Start Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start_min
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Min. Start Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start_end
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Max. End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
2020-06-19 22:13:01 +00:00
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-10-31 20:21:04 +00:00
|
|
|
$ref: '#/components/schemas/Feeding'
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
|
|
|
patch:
|
|
|
|
operationId: partialUpdateFeeding
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: A unique integer value identifying this Feeding.
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: child
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: child
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: type
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: type
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
enum:
|
|
|
|
- breast milk
|
|
|
|
- formula
|
|
|
|
- fortified breast milk
|
2021-10-31 20:21:04 +00:00
|
|
|
- solid food
|
2020-06-19 22:13:01 +00:00
|
|
|
- name: method
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: method
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
enum:
|
|
|
|
- bottle
|
|
|
|
- left breast
|
|
|
|
- right breast
|
|
|
|
- both breasts
|
2021-10-31 20:21:04 +00:00
|
|
|
- parent fed
|
|
|
|
- self fed
|
|
|
|
- name: end
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: End Date
|
2020-06-19 22:13:01 +00:00
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: end_min
|
2020-06-19 22:13:01 +00:00
|
|
|
required: false
|
|
|
|
in: query
|
2021-10-31 20:21:04 +00:00
|
|
|
description: Min. End Date
|
2020-06-19 22:13:01 +00:00
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: end_max
|
2020-06-19 22:13:01 +00:00
|
|
|
required: false
|
|
|
|
in: query
|
2021-10-31 20:21:04 +00:00
|
|
|
description: Max. End Date
|
2020-06-19 22:13:01 +00:00
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: start
|
2020-06-19 22:13:01 +00:00
|
|
|
required: false
|
|
|
|
in: query
|
2021-10-31 20:21:04 +00:00
|
|
|
description: Start Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start_min
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Min. Start Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start_end
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Max. End Date
|
2020-06-19 22:13:01 +00:00
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Feeding'
|
2020-06-19 22:13:01 +00:00
|
|
|
application/x-www-form-urlencoded:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Feeding'
|
2020-06-19 22:13:01 +00:00
|
|
|
multipart/form-data:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Feeding'
|
2020-06-19 22:13:01 +00:00
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-10-31 20:21:04 +00:00
|
|
|
$ref: '#/components/schemas/Feeding'
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
2020-06-19 22:13:01 +00:00
|
|
|
delete:
|
|
|
|
operationId: destroyFeeding
|
|
|
|
description: ''
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: A unique integer value identifying this Feeding.
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: child
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: child
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: type
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: type
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
enum:
|
|
|
|
- breast milk
|
|
|
|
- formula
|
|
|
|
- fortified breast milk
|
2021-10-31 20:21:04 +00:00
|
|
|
- solid food
|
2020-06-19 22:13:01 +00:00
|
|
|
- name: method
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: method
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
enum:
|
|
|
|
- bottle
|
|
|
|
- left breast
|
|
|
|
- right breast
|
|
|
|
- both breasts
|
2021-10-31 20:21:04 +00:00
|
|
|
- parent fed
|
|
|
|
- self fed
|
|
|
|
- name: end
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: end_min
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Min. End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: end_max
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Max. End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Start Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start_min
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Min. Start Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start_end
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Max. End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
2020-06-19 22:13:01 +00:00
|
|
|
responses:
|
|
|
|
'204':
|
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
2020-06-19 22:13:01 +00:00
|
|
|
/api/notes/:
|
|
|
|
get:
|
|
|
|
operationId: listNotes
|
|
|
|
description: ''
|
|
|
|
parameters:
|
|
|
|
- name: limit
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Number of results to return per page.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: offset
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: The initial index from which to return the results.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: child
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: child
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: date
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: date_min
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Min. Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: date_max
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Max. Date
|
|
|
|
schema:
|
|
|
|
type: string
|
2020-06-19 22:13:01 +00:00
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
count:
|
|
|
|
type: integer
|
|
|
|
example: 123
|
|
|
|
next:
|
|
|
|
type: string
|
|
|
|
nullable: true
|
2021-10-31 20:21:04 +00:00
|
|
|
format: uri
|
|
|
|
example: http://api.example.org/accounts/?offset=400&limit=100
|
2020-06-19 22:13:01 +00:00
|
|
|
previous:
|
|
|
|
type: string
|
|
|
|
nullable: true
|
2021-10-31 20:21:04 +00:00
|
|
|
format: uri
|
|
|
|
example: http://api.example.org/accounts/?offset=200&limit=100
|
2020-06-19 22:13:01 +00:00
|
|
|
results:
|
|
|
|
type: array
|
|
|
|
items:
|
2021-10-31 20:21:04 +00:00
|
|
|
$ref: '#/components/schemas/Note'
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
2020-06-19 22:13:01 +00:00
|
|
|
post:
|
|
|
|
operationId: createNote
|
|
|
|
description: ''
|
|
|
|
parameters: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Note'
|
2020-06-19 22:13:01 +00:00
|
|
|
application/x-www-form-urlencoded:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Note'
|
2020-06-19 22:13:01 +00:00
|
|
|
multipart/form-data:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Note'
|
2020-06-19 22:13:01 +00:00
|
|
|
responses:
|
2021-10-31 20:21:04 +00:00
|
|
|
'201':
|
2020-06-19 22:13:01 +00:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-10-31 20:21:04 +00:00
|
|
|
$ref: '#/components/schemas/Note'
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
2020-06-19 22:13:01 +00:00
|
|
|
/api/notes/{id}/:
|
|
|
|
get:
|
|
|
|
operationId: retrieveNote
|
|
|
|
description: ''
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: A unique integer value identifying this Note.
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: child
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: child
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: date
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Date
|
2020-06-19 22:13:01 +00:00
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: date_min
|
2020-06-19 22:13:01 +00:00
|
|
|
required: false
|
|
|
|
in: query
|
2021-10-31 20:21:04 +00:00
|
|
|
description: Min. Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: date_max
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Max. Date
|
2020-06-19 22:13:01 +00:00
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-10-31 20:21:04 +00:00
|
|
|
$ref: '#/components/schemas/Note'
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
2020-06-19 22:13:01 +00:00
|
|
|
patch:
|
2021-10-31 20:21:04 +00:00
|
|
|
operationId: partialUpdateNote
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: A unique integer value identifying this Note.
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: child
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: child
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: date
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: date_min
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Min. Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: date_max
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Max. Date
|
|
|
|
schema:
|
|
|
|
type: string
|
2020-06-19 22:13:01 +00:00
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Note'
|
2020-06-19 22:13:01 +00:00
|
|
|
application/x-www-form-urlencoded:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Note'
|
2020-06-19 22:13:01 +00:00
|
|
|
multipart/form-data:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Note'
|
2020-06-19 22:13:01 +00:00
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-10-31 20:21:04 +00:00
|
|
|
$ref: '#/components/schemas/Note'
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
2020-06-19 22:13:01 +00:00
|
|
|
delete:
|
|
|
|
operationId: destroyNote
|
|
|
|
description: ''
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: A unique integer value identifying this Note.
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: child
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: child
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: date
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: date_min
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Min. Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: date_max
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Max. Date
|
|
|
|
schema:
|
|
|
|
type: string
|
2020-06-19 22:13:01 +00:00
|
|
|
responses:
|
|
|
|
'204':
|
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
2020-06-19 22:13:01 +00:00
|
|
|
/api/sleep/:
|
|
|
|
get:
|
|
|
|
operationId: listSleeps
|
|
|
|
description: ''
|
|
|
|
parameters:
|
|
|
|
- name: limit
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Number of results to return per page.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: offset
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: The initial index from which to return the results.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: child
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: child
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: end
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: end_min
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Min. End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: end_max
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Max. End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Start Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start_min
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Min. Start Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start_end
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Max. End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
2020-06-19 22:13:01 +00:00
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
count:
|
|
|
|
type: integer
|
|
|
|
example: 123
|
|
|
|
next:
|
|
|
|
type: string
|
|
|
|
nullable: true
|
2021-10-31 20:21:04 +00:00
|
|
|
format: uri
|
|
|
|
example: http://api.example.org/accounts/?offset=400&limit=100
|
2020-06-19 22:13:01 +00:00
|
|
|
previous:
|
|
|
|
type: string
|
|
|
|
nullable: true
|
2021-10-31 20:21:04 +00:00
|
|
|
format: uri
|
|
|
|
example: http://api.example.org/accounts/?offset=200&limit=100
|
2020-06-19 22:13:01 +00:00
|
|
|
results:
|
|
|
|
type: array
|
|
|
|
items:
|
2021-10-31 20:21:04 +00:00
|
|
|
$ref: '#/components/schemas/Sleep'
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
2020-06-19 22:13:01 +00:00
|
|
|
post:
|
|
|
|
operationId: createSleep
|
|
|
|
description: ''
|
|
|
|
parameters: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Sleep'
|
2020-06-19 22:13:01 +00:00
|
|
|
application/x-www-form-urlencoded:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Sleep'
|
2020-06-19 22:13:01 +00:00
|
|
|
multipart/form-data:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Sleep'
|
2020-06-19 22:13:01 +00:00
|
|
|
responses:
|
2021-10-31 20:21:04 +00:00
|
|
|
'201':
|
2020-06-19 22:13:01 +00:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-10-31 20:21:04 +00:00
|
|
|
$ref: '#/components/schemas/Sleep'
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
2020-06-19 22:13:01 +00:00
|
|
|
/api/sleep/{id}/:
|
|
|
|
get:
|
|
|
|
operationId: retrieveSleep
|
|
|
|
description: ''
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: A unique integer value identifying this Sleep.
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: child
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: child
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: end
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: end_min
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Min. End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: end_max
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Max. End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Start Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start_min
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Min. Start Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start_end
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Max. End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
2020-06-19 22:13:01 +00:00
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-10-31 20:21:04 +00:00
|
|
|
$ref: '#/components/schemas/Sleep'
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
|
|
|
patch:
|
|
|
|
operationId: partialUpdateSleep
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: A unique integer value identifying this Sleep.
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: child
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: child
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: end
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: end_min
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Min. End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: end_max
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Max. End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Start Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start_min
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Min. Start Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start_end
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Max. End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
2020-06-19 22:13:01 +00:00
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Sleep'
|
2020-06-19 22:13:01 +00:00
|
|
|
application/x-www-form-urlencoded:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Sleep'
|
2020-06-19 22:13:01 +00:00
|
|
|
multipart/form-data:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Sleep'
|
2020-06-19 22:13:01 +00:00
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-10-31 20:21:04 +00:00
|
|
|
$ref: '#/components/schemas/Sleep'
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
|
|
|
delete:
|
|
|
|
operationId: destroySleep
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: A unique integer value identifying this Sleep.
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: child
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: child
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: end
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: End Date
|
2020-06-19 22:13:01 +00:00
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: end_min
|
2020-06-19 22:13:01 +00:00
|
|
|
required: false
|
|
|
|
in: query
|
2021-10-31 20:21:04 +00:00
|
|
|
description: Min. End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: end_max
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Max. End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Start Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start_min
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Min. Start Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start_end
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Max. End Date
|
2020-06-19 22:13:01 +00:00
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
responses:
|
|
|
|
'204':
|
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
2020-06-19 22:13:01 +00:00
|
|
|
/api/temperature/:
|
|
|
|
get:
|
|
|
|
operationId: listTemperatures
|
|
|
|
description: ''
|
|
|
|
parameters:
|
|
|
|
- name: limit
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Number of results to return per page.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: offset
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: The initial index from which to return the results.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: child
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: child
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: date
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: date_min
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Min. Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: date_max
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Max. Date
|
|
|
|
schema:
|
|
|
|
type: string
|
2020-06-19 22:13:01 +00:00
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
count:
|
|
|
|
type: integer
|
|
|
|
example: 123
|
|
|
|
next:
|
|
|
|
type: string
|
|
|
|
nullable: true
|
2021-10-31 20:21:04 +00:00
|
|
|
format: uri
|
|
|
|
example: http://api.example.org/accounts/?offset=400&limit=100
|
2020-06-19 22:13:01 +00:00
|
|
|
previous:
|
|
|
|
type: string
|
|
|
|
nullable: true
|
2021-10-31 20:21:04 +00:00
|
|
|
format: uri
|
|
|
|
example: http://api.example.org/accounts/?offset=200&limit=100
|
2020-06-19 22:13:01 +00:00
|
|
|
results:
|
|
|
|
type: array
|
|
|
|
items:
|
2021-10-31 20:21:04 +00:00
|
|
|
$ref: '#/components/schemas/Temperature'
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
2020-06-19 22:13:01 +00:00
|
|
|
post:
|
|
|
|
operationId: createTemperature
|
|
|
|
description: ''
|
|
|
|
parameters: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Temperature'
|
2020-06-19 22:13:01 +00:00
|
|
|
application/x-www-form-urlencoded:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Temperature'
|
2020-06-19 22:13:01 +00:00
|
|
|
multipart/form-data:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Temperature'
|
2020-06-19 22:13:01 +00:00
|
|
|
responses:
|
2021-10-31 20:21:04 +00:00
|
|
|
'201':
|
2020-06-19 22:13:01 +00:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-10-31 20:21:04 +00:00
|
|
|
$ref: '#/components/schemas/Temperature'
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
2020-06-19 22:13:01 +00:00
|
|
|
/api/temperature/{id}/:
|
|
|
|
get:
|
|
|
|
operationId: retrieveTemperature
|
|
|
|
description: ''
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: A unique integer value identifying this Temperature.
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: child
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: child
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: date
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Date
|
2020-06-19 22:13:01 +00:00
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: date_min
|
2020-06-19 22:13:01 +00:00
|
|
|
required: false
|
|
|
|
in: query
|
2021-10-31 20:21:04 +00:00
|
|
|
description: Min. Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: date_max
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Max. Date
|
2020-06-19 22:13:01 +00:00
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-10-31 20:21:04 +00:00
|
|
|
$ref: '#/components/schemas/Temperature'
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
2020-06-19 22:13:01 +00:00
|
|
|
patch:
|
2021-10-31 20:21:04 +00:00
|
|
|
operationId: partialUpdateTemperature
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: A unique integer value identifying this Temperature.
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: child
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: child
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: date
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: date_min
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Min. Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: date_max
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Max. Date
|
|
|
|
schema:
|
|
|
|
type: string
|
2020-06-19 22:13:01 +00:00
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Temperature'
|
2020-06-19 22:13:01 +00:00
|
|
|
application/x-www-form-urlencoded:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Temperature'
|
2020-06-19 22:13:01 +00:00
|
|
|
multipart/form-data:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Temperature'
|
2020-06-19 22:13:01 +00:00
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-10-31 20:21:04 +00:00
|
|
|
$ref: '#/components/schemas/Temperature'
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
2020-06-19 22:13:01 +00:00
|
|
|
delete:
|
|
|
|
operationId: destroyTemperature
|
|
|
|
description: ''
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: A unique integer value identifying this Temperature.
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: child
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: child
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: date
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: date_min
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Min. Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: date_max
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Max. Date
|
|
|
|
schema:
|
|
|
|
type: string
|
2020-06-19 22:13:01 +00:00
|
|
|
responses:
|
|
|
|
'204':
|
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
2020-06-19 22:13:01 +00:00
|
|
|
/api/timers/:
|
|
|
|
get:
|
|
|
|
operationId: listTimers
|
|
|
|
description: ''
|
|
|
|
parameters:
|
|
|
|
- name: limit
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Number of results to return per page.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: offset
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: The initial index from which to return the results.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: child
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: child
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: active
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: active
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: user
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: user
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: end
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: end_min
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Min. End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: end_max
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Max. End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Start Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start_min
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Min. Start Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start_end
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Max. End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
2020-06-19 22:13:01 +00:00
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
count:
|
|
|
|
type: integer
|
|
|
|
example: 123
|
|
|
|
next:
|
|
|
|
type: string
|
|
|
|
nullable: true
|
2021-10-31 20:21:04 +00:00
|
|
|
format: uri
|
|
|
|
example: http://api.example.org/accounts/?offset=400&limit=100
|
2020-06-19 22:13:01 +00:00
|
|
|
previous:
|
|
|
|
type: string
|
|
|
|
nullable: true
|
2021-10-31 20:21:04 +00:00
|
|
|
format: uri
|
|
|
|
example: http://api.example.org/accounts/?offset=200&limit=100
|
2020-06-19 22:13:01 +00:00
|
|
|
results:
|
|
|
|
type: array
|
|
|
|
items:
|
2021-10-31 20:21:04 +00:00
|
|
|
$ref: '#/components/schemas/Timer'
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
2020-06-19 22:13:01 +00:00
|
|
|
post:
|
|
|
|
operationId: createTimer
|
|
|
|
description: ''
|
|
|
|
parameters: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Timer'
|
2020-06-19 22:13:01 +00:00
|
|
|
application/x-www-form-urlencoded:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Timer'
|
2020-06-19 22:13:01 +00:00
|
|
|
multipart/form-data:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Timer'
|
2020-06-19 22:13:01 +00:00
|
|
|
responses:
|
2021-10-31 20:21:04 +00:00
|
|
|
'201':
|
2020-06-19 22:13:01 +00:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-10-31 20:21:04 +00:00
|
|
|
$ref: '#/components/schemas/Timer'
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
2020-06-19 22:13:01 +00:00
|
|
|
/api/timers/{id}/:
|
|
|
|
get:
|
|
|
|
operationId: retrieveTimer
|
|
|
|
description: ''
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: A unique integer value identifying this Timer.
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: child
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: child
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: active
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: active
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: user
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: user
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: end
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: End Date
|
2020-06-19 22:13:01 +00:00
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: end_min
|
2020-06-19 22:13:01 +00:00
|
|
|
required: false
|
|
|
|
in: query
|
2021-10-31 20:21:04 +00:00
|
|
|
description: Min. End Date
|
2020-06-19 22:13:01 +00:00
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: end_max
|
2020-06-19 22:13:01 +00:00
|
|
|
required: false
|
|
|
|
in: query
|
2021-10-31 20:21:04 +00:00
|
|
|
description: Max. End Date
|
2020-06-19 22:13:01 +00:00
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: start
|
2020-06-19 22:13:01 +00:00
|
|
|
required: false
|
|
|
|
in: query
|
2021-10-31 20:21:04 +00:00
|
|
|
description: Start Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start_min
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Min. Start Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start_end
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Max. End Date
|
2020-06-19 22:13:01 +00:00
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-10-31 20:21:04 +00:00
|
|
|
$ref: '#/components/schemas/Timer'
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
2020-06-19 22:13:01 +00:00
|
|
|
patch:
|
2021-10-31 20:21:04 +00:00
|
|
|
operationId: partialUpdateTimer
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: A unique integer value identifying this Timer.
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: child
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: child
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: active
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: active
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: user
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: user
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: end
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: end_min
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Min. End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: end_max
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Max. End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Start Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start_min
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Min. Start Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start_end
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Max. End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
2020-06-19 22:13:01 +00:00
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Timer'
|
2020-06-19 22:13:01 +00:00
|
|
|
application/x-www-form-urlencoded:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Timer'
|
2020-06-19 22:13:01 +00:00
|
|
|
multipart/form-data:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Timer'
|
2020-06-19 22:13:01 +00:00
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-10-31 20:21:04 +00:00
|
|
|
$ref: '#/components/schemas/Timer'
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
2020-06-19 22:13:01 +00:00
|
|
|
delete:
|
|
|
|
operationId: destroyTimer
|
|
|
|
description: ''
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: A unique integer value identifying this Timer.
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: child
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: child
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: active
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: active
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: user
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: user
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: end
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: end_min
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Min. End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: end_max
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Max. End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Start Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start_min
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Min. Start Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start_end
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Max. End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
responses:
|
|
|
|
'204':
|
|
|
|
description: ''
|
|
|
|
tags:
|
|
|
|
- api
|
|
|
|
/api/tummy-times/:
|
|
|
|
get:
|
|
|
|
operationId: listTummyTimes
|
|
|
|
description: ''
|
|
|
|
parameters:
|
2020-06-19 22:13:01 +00:00
|
|
|
- name: limit
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Number of results to return per page.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: offset
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: The initial index from which to return the results.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: child
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: child
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: end
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: end_min
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Min. End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: end_max
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Max. End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Start Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start_min
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Min. Start Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start_end
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Max. End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
2020-06-19 22:13:01 +00:00
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
count:
|
|
|
|
type: integer
|
|
|
|
example: 123
|
|
|
|
next:
|
|
|
|
type: string
|
|
|
|
nullable: true
|
2021-10-31 20:21:04 +00:00
|
|
|
format: uri
|
|
|
|
example: http://api.example.org/accounts/?offset=400&limit=100
|
2020-06-19 22:13:01 +00:00
|
|
|
previous:
|
|
|
|
type: string
|
|
|
|
nullable: true
|
2021-10-31 20:21:04 +00:00
|
|
|
format: uri
|
|
|
|
example: http://api.example.org/accounts/?offset=200&limit=100
|
2020-06-19 22:13:01 +00:00
|
|
|
results:
|
|
|
|
type: array
|
|
|
|
items:
|
2021-10-31 20:21:04 +00:00
|
|
|
$ref: '#/components/schemas/TummyTime'
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
2020-06-19 22:13:01 +00:00
|
|
|
post:
|
|
|
|
operationId: createTummyTime
|
|
|
|
description: ''
|
|
|
|
parameters: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/TummyTime'
|
2020-06-19 22:13:01 +00:00
|
|
|
application/x-www-form-urlencoded:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/TummyTime'
|
2020-06-19 22:13:01 +00:00
|
|
|
multipart/form-data:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/TummyTime'
|
2020-06-19 22:13:01 +00:00
|
|
|
responses:
|
2021-10-31 20:21:04 +00:00
|
|
|
'201':
|
2020-06-19 22:13:01 +00:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-10-31 20:21:04 +00:00
|
|
|
$ref: '#/components/schemas/TummyTime'
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
2020-06-19 22:13:01 +00:00
|
|
|
/api/tummy-times/{id}/:
|
|
|
|
get:
|
|
|
|
operationId: retrieveTummyTime
|
|
|
|
description: ''
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: A unique integer value identifying this Tummy Time.
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: child
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: child
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: end
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: End Date
|
2020-06-19 22:13:01 +00:00
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: end_min
|
2020-06-19 22:13:01 +00:00
|
|
|
required: false
|
|
|
|
in: query
|
2021-10-31 20:21:04 +00:00
|
|
|
description: Min. End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: end_max
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Max. End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Start Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start_min
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Min. Start Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start_end
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Max. End Date
|
2020-06-19 22:13:01 +00:00
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-10-31 20:21:04 +00:00
|
|
|
$ref: '#/components/schemas/TummyTime'
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
2020-06-19 22:13:01 +00:00
|
|
|
patch:
|
2021-10-31 20:21:04 +00:00
|
|
|
operationId: partialUpdateTummyTime
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: A unique integer value identifying this Tummy Time.
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: child
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: child
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: end
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: end_min
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Min. End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: end_max
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Max. End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Start Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start_min
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Min. Start Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start_end
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Max. End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
2020-06-19 22:13:01 +00:00
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/TummyTime'
|
2020-06-19 22:13:01 +00:00
|
|
|
application/x-www-form-urlencoded:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/TummyTime'
|
2020-06-19 22:13:01 +00:00
|
|
|
multipart/form-data:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/TummyTime'
|
2020-06-19 22:13:01 +00:00
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-10-31 20:21:04 +00:00
|
|
|
$ref: '#/components/schemas/TummyTime'
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
2020-06-19 22:13:01 +00:00
|
|
|
delete:
|
|
|
|
operationId: destroyTummyTime
|
|
|
|
description: ''
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: A unique integer value identifying this Tummy Time.
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: child
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: child
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: end
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: end_min
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Min. End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: end_max
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Max. End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Start Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start_min
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Min. Start Date
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: start_end
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Max. End Date
|
|
|
|
schema:
|
|
|
|
type: string
|
2020-06-19 22:13:01 +00:00
|
|
|
responses:
|
|
|
|
'204':
|
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
2020-06-19 22:13:01 +00:00
|
|
|
/api/weight/:
|
|
|
|
get:
|
|
|
|
operationId: listWeights
|
|
|
|
description: ''
|
|
|
|
parameters:
|
|
|
|
- name: limit
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: Number of results to return per page.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: offset
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: The initial index from which to return the results.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: child
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: child
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: date
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: date
|
|
|
|
schema:
|
|
|
|
type: string
|
2020-06-19 22:13:01 +00:00
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
count:
|
|
|
|
type: integer
|
|
|
|
example: 123
|
|
|
|
next:
|
|
|
|
type: string
|
|
|
|
nullable: true
|
2021-10-31 20:21:04 +00:00
|
|
|
format: uri
|
|
|
|
example: http://api.example.org/accounts/?offset=400&limit=100
|
2020-06-19 22:13:01 +00:00
|
|
|
previous:
|
|
|
|
type: string
|
|
|
|
nullable: true
|
2021-10-31 20:21:04 +00:00
|
|
|
format: uri
|
|
|
|
example: http://api.example.org/accounts/?offset=200&limit=100
|
2020-06-19 22:13:01 +00:00
|
|
|
results:
|
|
|
|
type: array
|
|
|
|
items:
|
2021-10-31 20:21:04 +00:00
|
|
|
$ref: '#/components/schemas/Weight'
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
2020-06-19 22:13:01 +00:00
|
|
|
post:
|
|
|
|
operationId: createWeight
|
|
|
|
description: ''
|
|
|
|
parameters: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Weight'
|
2020-06-19 22:13:01 +00:00
|
|
|
application/x-www-form-urlencoded:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Weight'
|
2020-06-19 22:13:01 +00:00
|
|
|
multipart/form-data:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Weight'
|
2020-06-19 22:13:01 +00:00
|
|
|
responses:
|
2021-10-31 20:21:04 +00:00
|
|
|
'201':
|
2020-06-19 22:13:01 +00:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-10-31 20:21:04 +00:00
|
|
|
$ref: '#/components/schemas/Weight'
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
2020-06-19 22:13:01 +00:00
|
|
|
/api/weight/{id}/:
|
|
|
|
get:
|
|
|
|
operationId: retrieveWeight
|
|
|
|
description: ''
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: A unique integer value identifying this Weight.
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: child
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: child
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: date
|
2020-06-19 22:13:01 +00:00
|
|
|
required: false
|
|
|
|
in: query
|
2021-10-31 20:21:04 +00:00
|
|
|
description: date
|
2020-06-19 22:13:01 +00:00
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-10-31 20:21:04 +00:00
|
|
|
$ref: '#/components/schemas/Weight'
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
2020-06-19 22:13:01 +00:00
|
|
|
patch:
|
2021-10-31 20:21:04 +00:00
|
|
|
operationId: partialUpdateWeight
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: A unique integer value identifying this Weight.
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: child
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: child
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: date
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: date
|
|
|
|
schema:
|
|
|
|
type: string
|
2020-06-19 22:13:01 +00:00
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Weight'
|
2020-06-19 22:13:01 +00:00
|
|
|
application/x-www-form-urlencoded:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Weight'
|
2020-06-19 22:13:01 +00:00
|
|
|
multipart/form-data:
|
2021-10-31 20:21:04 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/Weight'
|
2020-06-19 22:13:01 +00:00
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-10-31 20:21:04 +00:00
|
|
|
$ref: '#/components/schemas/Weight'
|
2020-06-19 22:13:01 +00:00
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
2020-06-19 22:13:01 +00:00
|
|
|
delete:
|
|
|
|
operationId: destroyWeight
|
|
|
|
description: ''
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: A unique integer value identifying this Weight.
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: child
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: child
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-31 20:21:04 +00:00
|
|
|
- name: date
|
|
|
|
required: false
|
|
|
|
in: query
|
|
|
|
description: date
|
|
|
|
schema:
|
|
|
|
type: string
|
2020-06-19 22:13:01 +00:00
|
|
|
responses:
|
|
|
|
'204':
|
|
|
|
description: ''
|
2021-10-31 20:21:04 +00:00
|
|
|
tags:
|
|
|
|
- api
|
|
|
|
components:
|
|
|
|
schemas:
|
|
|
|
Child:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
readOnly: true
|
|
|
|
first_name:
|
|
|
|
type: string
|
|
|
|
maxLength: 255
|
|
|
|
last_name:
|
|
|
|
type: string
|
|
|
|
maxLength: 255
|
|
|
|
birth_date:
|
|
|
|
type: string
|
|
|
|
format: date
|
|
|
|
slug:
|
|
|
|
type: string
|
|
|
|
readOnly: true
|
|
|
|
pattern: ^[-\w]+\z
|
|
|
|
picture:
|
|
|
|
type: string
|
|
|
|
format: binary
|
|
|
|
nullable: true
|
|
|
|
required:
|
|
|
|
- first_name
|
|
|
|
- last_name
|
|
|
|
- birth_date
|
|
|
|
DiaperChange:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
readOnly: true
|
|
|
|
child:
|
|
|
|
type: integer
|
|
|
|
time:
|
|
|
|
type: string
|
|
|
|
format: date-time
|
|
|
|
wet:
|
|
|
|
type: boolean
|
|
|
|
solid:
|
|
|
|
type: boolean
|
|
|
|
color:
|
|
|
|
enum:
|
|
|
|
- black
|
|
|
|
- brown
|
|
|
|
- green
|
|
|
|
- yellow
|
|
|
|
type: string
|
|
|
|
amount:
|
|
|
|
type: number
|
|
|
|
nullable: true
|
|
|
|
notes:
|
|
|
|
type: string
|
|
|
|
nullable: true
|
|
|
|
required:
|
|
|
|
- child
|
|
|
|
- time
|
|
|
|
- wet
|
|
|
|
- solid
|
|
|
|
Feeding:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
readOnly: true
|
|
|
|
child:
|
|
|
|
type: integer
|
|
|
|
nullable: true
|
|
|
|
start:
|
|
|
|
type: string
|
|
|
|
format: date-time
|
|
|
|
end:
|
|
|
|
type: string
|
|
|
|
format: date-time
|
|
|
|
duration:
|
|
|
|
type: string
|
|
|
|
readOnly: true
|
|
|
|
type:
|
|
|
|
enum:
|
|
|
|
- breast milk
|
|
|
|
- formula
|
|
|
|
- fortified breast milk
|
|
|
|
- solid food
|
|
|
|
type: string
|
|
|
|
method:
|
|
|
|
enum:
|
|
|
|
- bottle
|
|
|
|
- left breast
|
|
|
|
- right breast
|
|
|
|
- both breasts
|
|
|
|
- parent fed
|
|
|
|
- self fed
|
|
|
|
type: string
|
|
|
|
amount:
|
|
|
|
type: number
|
|
|
|
nullable: true
|
|
|
|
notes:
|
|
|
|
type: string
|
|
|
|
nullable: true
|
|
|
|
required:
|
|
|
|
- type
|
|
|
|
- method
|
|
|
|
Note:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
readOnly: true
|
|
|
|
child:
|
|
|
|
type: integer
|
|
|
|
note:
|
|
|
|
type: string
|
|
|
|
time:
|
|
|
|
type: string
|
|
|
|
format: date-time
|
|
|
|
required:
|
|
|
|
- child
|
|
|
|
- note
|
|
|
|
Sleep:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
readOnly: true
|
|
|
|
child:
|
|
|
|
type: integer
|
|
|
|
nullable: true
|
|
|
|
start:
|
|
|
|
type: string
|
|
|
|
format: date-time
|
|
|
|
end:
|
|
|
|
type: string
|
|
|
|
format: date-time
|
|
|
|
duration:
|
|
|
|
type: string
|
|
|
|
readOnly: true
|
|
|
|
nap:
|
|
|
|
type: string
|
|
|
|
readOnly: true
|
|
|
|
notes:
|
|
|
|
type: string
|
|
|
|
nullable: true
|
|
|
|
Temperature:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
readOnly: true
|
|
|
|
child:
|
|
|
|
type: integer
|
|
|
|
temperature:
|
|
|
|
type: number
|
|
|
|
time:
|
|
|
|
type: string
|
|
|
|
format: date-time
|
|
|
|
notes:
|
|
|
|
type: string
|
|
|
|
nullable: true
|
|
|
|
required:
|
|
|
|
- child
|
|
|
|
- temperature
|
|
|
|
- time
|
|
|
|
Timer:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
readOnly: true
|
|
|
|
child:
|
|
|
|
type: integer
|
|
|
|
nullable: true
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
nullable: true
|
|
|
|
maxLength: 255
|
|
|
|
start:
|
|
|
|
type: string
|
|
|
|
format: date-time
|
|
|
|
end:
|
|
|
|
type: string
|
|
|
|
format: date-time
|
|
|
|
readOnly: true
|
|
|
|
duration:
|
|
|
|
type: string
|
|
|
|
readOnly: true
|
|
|
|
active:
|
|
|
|
type: boolean
|
|
|
|
readOnly: true
|
|
|
|
user:
|
|
|
|
type: integer
|
|
|
|
nullable: true
|
|
|
|
TummyTime:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
readOnly: true
|
|
|
|
child:
|
|
|
|
type: integer
|
|
|
|
nullable: true
|
|
|
|
start:
|
|
|
|
type: string
|
|
|
|
format: date-time
|
|
|
|
end:
|
|
|
|
type: string
|
|
|
|
format: date-time
|
|
|
|
duration:
|
|
|
|
type: string
|
|
|
|
readOnly: true
|
|
|
|
milestone:
|
|
|
|
type: string
|
|
|
|
maxLength: 255
|
|
|
|
Weight:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
readOnly: true
|
|
|
|
child:
|
|
|
|
type: integer
|
|
|
|
weight:
|
|
|
|
type: number
|
|
|
|
date:
|
|
|
|
type: string
|
|
|
|
format: date
|
|
|
|
notes:
|
|
|
|
type: string
|
|
|
|
nullable: true
|
|
|
|
required:
|
|
|
|
- child
|
|
|
|
- weight
|
|
|
|
- date
|