mirror of https://github.com/snachodog/mybuddy.git
parent
ac8766c9d5
commit
3d2baed7ab
|
@ -1,7 +1,8 @@
|
||||||
openapi: 3.0.2
|
openapi: 3.0.2
|
||||||
info:
|
info:
|
||||||
title: Baby Buddy API
|
title: Baby Buddy API
|
||||||
version: ''
|
version: 1
|
||||||
|
description: API documentation for the Baby Buddy application
|
||||||
paths:
|
paths:
|
||||||
/api/bmi/:
|
/api/bmi/:
|
||||||
get:
|
get:
|
||||||
|
@ -618,6 +619,12 @@ paths:
|
||||||
description: The initial index from which to return the results.
|
description: The initial index from which to return the results.
|
||||||
schema:
|
schema:
|
||||||
type: integer
|
type: integer
|
||||||
|
- name: id
|
||||||
|
required: false
|
||||||
|
in: query
|
||||||
|
description: id
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
- name: first_name
|
- name: first_name
|
||||||
required: false
|
required: false
|
||||||
in: query
|
in: query
|
||||||
|
@ -710,6 +717,12 @@ paths:
|
||||||
description: ''
|
description: ''
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: id
|
||||||
|
required: false
|
||||||
|
in: query
|
||||||
|
description: id
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
- name: first_name
|
- name: first_name
|
||||||
required: false
|
required: false
|
||||||
in: query
|
in: query
|
||||||
|
@ -759,6 +772,12 @@ paths:
|
||||||
description: ''
|
description: ''
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: id
|
||||||
|
required: false
|
||||||
|
in: query
|
||||||
|
description: id
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
- name: first_name
|
- name: first_name
|
||||||
required: false
|
required: false
|
||||||
in: query
|
in: query
|
||||||
|
@ -819,6 +838,12 @@ paths:
|
||||||
description: ''
|
description: ''
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: id
|
||||||
|
required: false
|
||||||
|
in: query
|
||||||
|
description: id
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
- name: first_name
|
- name: first_name
|
||||||
required: false
|
required: false
|
||||||
in: query
|
in: query
|
||||||
|
@ -2009,22 +2034,40 @@ paths:
|
||||||
description: child
|
description: child
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
- name: date
|
- name: end
|
||||||
required: false
|
required: false
|
||||||
in: query
|
in: query
|
||||||
description: DateTime
|
description: End DateTime
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
- name: date_max
|
- name: end_max
|
||||||
required: false
|
required: false
|
||||||
in: query
|
in: query
|
||||||
description: Max. DateTime
|
description: Max. End DateTime
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
- name: date_min
|
- name: end_min
|
||||||
required: false
|
required: false
|
||||||
in: query
|
in: query
|
||||||
description: Min. DateTime
|
description: Min. End DateTime
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
- name: start
|
||||||
|
required: false
|
||||||
|
in: query
|
||||||
|
description: Start DateTime
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
- name: start_max
|
||||||
|
required: false
|
||||||
|
in: query
|
||||||
|
description: Max. End DateTime
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
- name: start_min
|
||||||
|
required: false
|
||||||
|
in: query
|
||||||
|
description: Min. Start DateTime
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
- name: ordering
|
- name: ordering
|
||||||
|
@ -2101,22 +2144,40 @@ paths:
|
||||||
description: child
|
description: child
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
- name: date
|
- name: end
|
||||||
required: false
|
required: false
|
||||||
in: query
|
in: query
|
||||||
description: DateTime
|
description: End DateTime
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
- name: date_max
|
- name: end_max
|
||||||
required: false
|
required: false
|
||||||
in: query
|
in: query
|
||||||
description: Max. DateTime
|
description: Max. End DateTime
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
- name: date_min
|
- name: end_min
|
||||||
required: false
|
required: false
|
||||||
in: query
|
in: query
|
||||||
description: Min. DateTime
|
description: Min. End DateTime
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
- name: start
|
||||||
|
required: false
|
||||||
|
in: query
|
||||||
|
description: Start DateTime
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
- name: start_max
|
||||||
|
required: false
|
||||||
|
in: query
|
||||||
|
description: Max. End DateTime
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
- name: start_min
|
||||||
|
required: false
|
||||||
|
in: query
|
||||||
|
description: Min. Start DateTime
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
- name: ordering
|
- name: ordering
|
||||||
|
@ -2150,22 +2211,40 @@ paths:
|
||||||
description: child
|
description: child
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
- name: date
|
- name: end
|
||||||
required: false
|
required: false
|
||||||
in: query
|
in: query
|
||||||
description: DateTime
|
description: End DateTime
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
- name: date_max
|
- name: end_max
|
||||||
required: false
|
required: false
|
||||||
in: query
|
in: query
|
||||||
description: Max. DateTime
|
description: Max. End DateTime
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
- name: date_min
|
- name: end_min
|
||||||
required: false
|
required: false
|
||||||
in: query
|
in: query
|
||||||
description: Min. DateTime
|
description: Min. End DateTime
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
- name: start
|
||||||
|
required: false
|
||||||
|
in: query
|
||||||
|
description: Start DateTime
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
- name: start_max
|
||||||
|
required: false
|
||||||
|
in: query
|
||||||
|
description: Max. End DateTime
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
- name: start_min
|
||||||
|
required: false
|
||||||
|
in: query
|
||||||
|
description: Min. Start DateTime
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
- name: ordering
|
- name: ordering
|
||||||
|
@ -2210,22 +2289,40 @@ paths:
|
||||||
description: child
|
description: child
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
- name: date
|
- name: end
|
||||||
required: false
|
required: false
|
||||||
in: query
|
in: query
|
||||||
description: DateTime
|
description: End DateTime
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
- name: date_max
|
- name: end_max
|
||||||
required: false
|
required: false
|
||||||
in: query
|
in: query
|
||||||
description: Max. DateTime
|
description: Max. End DateTime
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
- name: date_min
|
- name: end_min
|
||||||
required: false
|
required: false
|
||||||
in: query
|
in: query
|
||||||
description: Min. DateTime
|
description: Min. End DateTime
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
- name: start
|
||||||
|
required: false
|
||||||
|
in: query
|
||||||
|
description: Start DateTime
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
- name: start_max
|
||||||
|
required: false
|
||||||
|
in: query
|
||||||
|
description: Max. End DateTime
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
- name: start_min
|
||||||
|
required: false
|
||||||
|
in: query
|
||||||
|
description: Min. Start DateTime
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
- name: ordering
|
- name: ordering
|
||||||
|
@ -3087,12 +3184,6 @@ paths:
|
||||||
description: The initial index from which to return the results.
|
description: The initial index from which to return the results.
|
||||||
schema:
|
schema:
|
||||||
type: integer
|
type: integer
|
||||||
- name: active
|
|
||||||
required: false
|
|
||||||
in: query
|
|
||||||
description: active
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
- name: child
|
- name: child
|
||||||
required: false
|
required: false
|
||||||
in: query
|
in: query
|
||||||
|
@ -3209,12 +3300,6 @@ paths:
|
||||||
description: A unique integer value identifying this Timer.
|
description: A unique integer value identifying this Timer.
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
- name: active
|
|
||||||
required: false
|
|
||||||
in: query
|
|
||||||
description: active
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
- name: child
|
- name: child
|
||||||
required: false
|
required: false
|
||||||
in: query
|
in: query
|
||||||
|
@ -3288,12 +3373,6 @@ paths:
|
||||||
description: A unique integer value identifying this Timer.
|
description: A unique integer value identifying this Timer.
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
- name: active
|
|
||||||
required: false
|
|
||||||
in: query
|
|
||||||
description: active
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
- name: child
|
- name: child
|
||||||
required: false
|
required: false
|
||||||
in: query
|
in: query
|
||||||
|
@ -3378,12 +3457,6 @@ paths:
|
||||||
description: A unique integer value identifying this Timer.
|
description: A unique integer value identifying this Timer.
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
- name: active
|
|
||||||
required: false
|
|
||||||
in: query
|
|
||||||
description: active
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
- name: child
|
- name: child
|
||||||
required: false
|
required: false
|
||||||
in: query
|
in: query
|
||||||
|
@ -4041,37 +4114,6 @@ paths:
|
||||||
description: ''
|
description: ''
|
||||||
tags:
|
tags:
|
||||||
- api
|
- api
|
||||||
/api/timers/{id}/stop/:
|
|
||||||
patch:
|
|
||||||
operationId: stopTimer
|
|
||||||
description: ''
|
|
||||||
parameters:
|
|
||||||
- name: id
|
|
||||||
in: path
|
|
||||||
required: true
|
|
||||||
description: A unique integer value identifying this Timer.
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
requestBody:
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: '#/components/schemas/Timer'
|
|
||||||
application/x-www-form-urlencoded:
|
|
||||||
schema:
|
|
||||||
$ref: '#/components/schemas/Timer'
|
|
||||||
multipart/form-data:
|
|
||||||
schema:
|
|
||||||
$ref: '#/components/schemas/Timer'
|
|
||||||
responses:
|
|
||||||
'200':
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: '#/components/schemas/Timer'
|
|
||||||
description: ''
|
|
||||||
tags:
|
|
||||||
- api
|
|
||||||
components:
|
components:
|
||||||
schemas:
|
schemas:
|
||||||
BMI:
|
BMI:
|
||||||
|
@ -4291,9 +4333,16 @@ components:
|
||||||
type: integer
|
type: integer
|
||||||
amount:
|
amount:
|
||||||
type: number
|
type: number
|
||||||
time:
|
start:
|
||||||
type: string
|
type: string
|
||||||
format: date-time
|
format: date-time
|
||||||
|
end:
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
duration:
|
||||||
|
type: string
|
||||||
|
readOnly: true
|
||||||
|
nullable: true
|
||||||
notes:
|
notes:
|
||||||
type: string
|
type: string
|
||||||
nullable: true
|
nullable: true
|
||||||
|
@ -4304,7 +4353,6 @@ components:
|
||||||
required:
|
required:
|
||||||
- child
|
- child
|
||||||
- amount
|
- amount
|
||||||
- time
|
|
||||||
Sleep:
|
Sleep:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
@ -4333,8 +4381,8 @@ components:
|
||||||
readOnly: true
|
readOnly: true
|
||||||
nullable: true
|
nullable: true
|
||||||
nap:
|
nap:
|
||||||
type: string
|
type: boolean
|
||||||
readOnly: true
|
nullable: true
|
||||||
notes:
|
notes:
|
||||||
type: string
|
type: string
|
||||||
nullable: true
|
nullable: true
|
||||||
|
@ -4401,18 +4449,9 @@ components:
|
||||||
start:
|
start:
|
||||||
type: string
|
type: string
|
||||||
format: date-time
|
format: date-time
|
||||||
end:
|
|
||||||
type: string
|
|
||||||
format: date-time
|
|
||||||
readOnly: true
|
|
||||||
nullable: true
|
|
||||||
duration:
|
duration:
|
||||||
type: string
|
type: string
|
||||||
readOnly: true
|
readOnly: true
|
||||||
nullable: true
|
|
||||||
active:
|
|
||||||
type: boolean
|
|
||||||
readOnly: true
|
|
||||||
user:
|
user:
|
||||||
type: integer
|
type: integer
|
||||||
nullable: true
|
nullable: true
|
||||||
|
@ -4472,4 +4511,4 @@ components:
|
||||||
type: string
|
type: string
|
||||||
required:
|
required:
|
||||||
- child
|
- child
|
||||||
- weight
|
- weight
|
Loading…
Reference in New Issue