-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenapi.yaml
72 lines (71 loc) · 2.04 KB
/
openapi.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
openapi: 3.0.1
info:
title: Schedule Api
version: 1.0.0
tags:
- name: schedule
description: schedule endpoints
paths:
/schedule:
post:
tags:
- schedule
summary: schedule device operations according to UTC time from localtime if schedule time does not intersect with opt out times.
operationId: scheduleDeviceOff
requestBody:
description: Pet object that needs to be added to the store
content:
application/json:
schema:
type: object
properties:
type:
type: string
format: url
devId:
type: string
startAt:
type: string
interval:
type: array
items: {}
maxWh:
type: array
items: {}
example:
"type": "limit"
"devId": "001234"
"startAt": "21/09/23 05:34:00"
"interval": [900,900,900,900]
"maxWh": [0,0,0,0]
required: true
responses:
200:
description: device was scheduled
content:
application/json:
schema:
type: object
properties:
type:
type: string
devId:
type: string
startAt:
type: string
interval:
type: array
items: {}
maxWh:
type: array
items: {}
example:
"type": "limit"
"devId": "001234"
"startAt": "2021-09-23T15:34:00+00:00"
"interval": [900,900,900,1111]
"maxWh": [0,0,0,0]
400:
description: device is opt out
502:
description: internal server error