ListData
Details
Curl request
$ curl 'http://skylar.livingfire.de/api/profile/listdatas' -i
Create
A POST
request will create a ListData.
Curl request
$ curl 'http://skylar.livingfire.de/api/listdatas' -i -X POST \
-H 'Content-Type: application/hal+json' \
-d '{
"id" : null,
"uuid" : "dc06c6d1-39d9-4869-8628-938dd0fa0375",
"logstash" : "2017-04-01T00:00:00+02:00",
"description" : "beautiful weather and good run",
"group" : "running",
"entryDate" : 1498339310293,
"dimension" : "distance",
"unit" : "km",
"value" : "13"
}'
HTTP response
HTTP/1.1 201 Created
Location: http://skylar.livingfire.de/api/listdatas/0
Retrieve
A GET
request will retrieve a ListData.
Response fields
Path | Type | Description |
---|---|---|
|
|
|
|
|
yyyy-MM-dd’T’HH:mm:ssXXX SimpleDateFormat |
|
|
Description or name |
|
|
Name of a dimension in a matrix. E.g. distance, time, x, y, z, … |
|
|
The group this value belongs to. This can be thougt of a as a another dimension in a matrix |
|
|
Creation date |
|
|
A unit of measurement like km, s, ccm |
|
|
Value like 42, 3.1415, 'Hello World!' |
|
|
Links to other resources |
Curl request
$ curl 'http://skylar.livingfire.de/api/listdatas/0' -i
HTTP response
HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
Content-Length: 460
{
"uuid" : "dc06c6d1-39d9-4869-8628-938dd0fa0375",
"logstash" : "2017-04-01T00:00:00+02:00",
"description" : "beautiful weather and good run",
"group" : "running",
"entryDate" : "2017-06-24T21:21:50.000+0000",
"dimension" : "distance",
"unit" : "km",
"value" : "13",
"_links" : {
"self" : {
"href" : "http://skylar.livingfire.de/api/listdatas/0"
},
"listdata" : {
"href" : "http://skylar.livingfire.de/api/listdatas/0"
}
}
}
Links
Relation | Description |
---|---|
|
Canonical link for this resource |
|
This ListData |