-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapiary.apib
47 lines (31 loc) · 900 Bytes
/
apiary.apib
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
FORMAT: 1A
HOST: http://polls.apiblueprint.org/
# Garden API
Garden is one API to consume and post information.
## Parameters [/parameters]
### List All Parameters [GET]
+ Response 200 (application/json)
[
{
"name": "humidity",
"value": "80",
"measure": "percent",
"lastUpdate": "2015-08-05T08:40:51.620Z"
}
]
### Create a New Parameter [POST]
You may create your own parameter using this action. It takes a JSON
object containing a parameters values.
+ Request (application/json)
{
"name": "humidity",
"value": "80",
"measure": "percent",
}
+ Response 201 (application/json)
+ Headers
Location: /parameter/UUID
+ Body
{
"created": "2015-08-05T08:40:51.620Z"
}