User
The information stored for a Skylar User Account.
Details
Curl request
$ curl 'http://skylar.livingfire.de/api/profile/users' -i -X GET
Create
A POST
request will create a User.
Curl request
$ curl 'http://skylar.livingfire.de/api/users' -i -X POST \
-H 'Content-Type: application/hal+json' \
-d '{
"id" : null,
"uuid" : "9ea65c1c-ae99-4a1a-b840-e8d7f5ec2c10",
"logstash" : "2017-04-01T00:00:00+02:00",
"description" : "Thomas",
"relationSettingsSetBy" : [ ],
"relationListdatasCanView" : [ ],
"locationConfiguration" : {
"language" : "de",
"region" : "DE",
"timeZoneString" : "Europe/Berlin",
"locale" : "de_DE",
"zoneId" : "Europe/Berlin",
"zonedDateTime" : "2019-01-28T16:08:13.091+01:00"
},
"ttsConfiguration" : {
"ttsGender" : "female",
"ttsLanguage" : "de",
"location" : {
"language" : "de",
"region" : "DE",
"timeZoneString" : "Europe/Berlin",
"locale" : "de_DE",
"zoneId" : "Europe/Berlin",
"zonedDateTime" : "2019-01-28T16:08:13.093+01:00"
}
}
}'
HTTP response
HTTP/1.1 201 Created
Location: http://skylar.livingfire.de/api/users/6
Retrieve
A GET
request will retrieve a User.
Response fields
Path | Type | Description |
---|---|---|
|
|
|
|
|
ISO 8601 date with TimeZone UTC in format "yyyy-MM-dd’T’HH:mm:ssZ" e.g. 2017-04-01T00:00:00Z |
|
|
Description or name |
|
|
Links to other resources |
|
|
LocationConfiguration - language e.g. de |
|
|
LocationConfiguration - region e.g. DE |
|
|
LocationConfiguration - timeZoneString e.g. Europe/Berlin |
|
|
LocationConfiguration - locale e.g. de_DE |
|
|
LocationConfiguration - zoneId e.g. Europe/Berlin |
|
|
LocationConfiguration - zonedDateTime e.g. 2017-11-02T19:24:13.514+01:00 |
|
|
TtsConfiguration - e.g. |
|
|
TtsConfiguration ttsGender - e.g. female |
|
|
TtsConfiguration ttsLanguage - e.g. german |
|
|
LocationConfiguration - language e.g. de |
|
|
LocationConfiguration - region e.g. DE |
|
|
LocationConfiguration - timeZoneString e.g. Europe/Berlin |
|
|
LocationConfiguration - locale e.g. de_DE |
|
|
LocationConfiguration - zoneId e.g. Europe/Berlin |
|
|
LocationConfiguration - zonedDateTime e.g. 2017-11-02T19:24:13.514+01:00 |
Curl request
$ curl 'http://skylar.livingfire.de/api/users/6' -i -X GET
HTTP response
HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
Content-Length: 1088
{
"uuid" : "9ea65c1c-ae99-4a1a-b840-e8d7f5ec2c10",
"logstash" : "2017-04-01T00:00:00+02:00",
"description" : "Thomas",
"locationConfiguration" : {
"language" : "de",
"region" : "DE",
"timeZoneString" : "Europe/Berlin",
"locale" : "de_DE",
"zoneId" : "Europe/Berlin",
"zonedDateTime" : "2019-01-28T16:08:13.188+01:00"
},
"ttsConfiguration" : {
"ttsGender" : "female",
"ttsLanguage" : "de",
"location" : {
"language" : "de",
"region" : "DE",
"timeZoneString" : "Europe/Berlin",
"locale" : "de_DE",
"zoneId" : "Europe/Berlin",
"zonedDateTime" : "2019-01-28T16:08:13.192+01:00"
}
},
"_links" : {
"self" : {
"href" : "http://skylar.livingfire.de/api/users/6"
},
"user" : {
"href" : "http://skylar.livingfire.de/api/users/6"
},
"relationListdatasCanView" : {
"href" : "http://skylar.livingfire.de/api/users/6/relationListdatasCanView"
},
"relationSettingsSetBy" : {
"href" : "http://skylar.livingfire.de/api/users/6/relationSettingsSetBy"
}
}
}
Update
A PATCH
request will update a User.
Curl request
$ curl 'http://skylar.livingfire.de/api/users/6' -i -X PATCH \
-H 'Content-Type: application/hal+json' \
-d '{
"description" : "Skylar"
}'
HTTP response
HTTP/1.1 204 No Content
Delete
A DELETE
request will delete a User.
Curl request
$ curl 'http://skylar.livingfire.de/api/users/6' -i -X DELETE \
-H 'Content-Type: application/hal+json'
HTTP response
HTTP/1.1 204 No Content
Search
Details
Curl request
$ curl 'http://skylar.livingfire.de/api/users/search' -i -X GET
HTTP response
HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
Content-Length: 521
{
"_links" : {
"findByUuid" : {
"href" : "http://skylar.livingfire.de/api/users/search/findByUuid{?uuid}",
"templated" : true
},
"findByDescription" : {
"href" : "http://skylar.livingfire.de/api/users/search/findByDescription{?description}",
"templated" : true
},
"exportAllRelationsToCsv" : {
"href" : "http://skylar.livingfire.de/api/users/search/exportAllRelationsToCsv"
},
"self" : {
"href" : "http://skylar.livingfire.de/api/users/search"
}
}
}
findByUuid
A GET
request will retrieve a User.
Request parameters
Parameter | Description |
---|---|
|
Response fields
Path | Type | Description |
---|---|---|
|
|
|
|
|
ISO 8601 date with TimeZone UTC in format "yyyy-MM-dd’T’HH:mm:ssZ" e.g. 2017-04-01T00:00:00Z |
|
|
Description or name |
|
|
Links to other resources |
|
|
LocationConfiguration - language e.g. de |
|
|
LocationConfiguration - region e.g. DE |
|
|
LocationConfiguration - timeZoneString e.g. Europe/Berlin |
|
|
LocationConfiguration - locale e.g. de_DE |
|
|
LocationConfiguration - zoneId e.g. Europe/Berlin |
|
|
LocationConfiguration - zonedDateTime e.g. 2017-11-02T19:24:13.514+01:00 |
|
|
TtsConfiguration - e.g. |
|
|
TtsConfiguration ttsGender - e.g. female |
|
|
TtsConfiguration ttsLanguage - e.g. german |
|
|
LocationConfiguration - language e.g. de |
|
|
LocationConfiguration - region e.g. DE |
|
|
LocationConfiguration - timeZoneString e.g. Europe/Berlin |
|
|
LocationConfiguration - locale e.g. de_DE |
|
|
LocationConfiguration - zoneId e.g. Europe/Berlin |
|
|
LocationConfiguration - zonedDateTime e.g. 2017-11-02T19:24:13.514+01:00 |
Curl request
$ curl 'http://skylar.livingfire.de/api/users/search/findByUuid?uuid=9ea65c1c-ae99-4a1a-b840-e8d7f5ec2c10' -i -X GET
HTTP response
HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
Content-Length: 1088
{
"uuid" : "9ea65c1c-ae99-4a1a-b840-e8d7f5ec2c10",
"logstash" : "2017-04-01T00:00:00+02:00",
"description" : "Skylar",
"locationConfiguration" : {
"language" : "de",
"region" : "DE",
"timeZoneString" : "Europe/Berlin",
"locale" : "de_DE",
"zoneId" : "Europe/Berlin",
"zonedDateTime" : "2019-01-28T16:08:13.386+01:00"
},
"ttsConfiguration" : {
"ttsGender" : "female",
"ttsLanguage" : "de",
"location" : {
"language" : "de",
"region" : "DE",
"timeZoneString" : "Europe/Berlin",
"locale" : "de_DE",
"zoneId" : "Europe/Berlin",
"zonedDateTime" : "2019-01-28T16:08:13.387+01:00"
}
},
"_links" : {
"self" : {
"href" : "http://skylar.livingfire.de/api/users/6"
},
"user" : {
"href" : "http://skylar.livingfire.de/api/users/6"
},
"relationListdatasCanView" : {
"href" : "http://skylar.livingfire.de/api/users/6/relationListdatasCanView"
},
"relationSettingsSetBy" : {
"href" : "http://skylar.livingfire.de/api/users/6/relationSettingsSetBy"
}
}
}
findByDescription
A GET
request will retrieve a array of User.
Request parameters
Parameter | Description |
---|---|
|
Description or name |
Response fields
Path | Type | Description |
---|---|---|
|
|
An array of User |
|
|
Links to other resources |
Curl request
$ curl 'http://skylar.livingfire.de/api/users/search/findByDescription?description=Thomas' -i -X GET
HTTP response
HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
Content-Length: 164
{
"_embedded" : {
"users" : [ ]
},
"_links" : {
"self" : {
"href" : "http://skylar.livingfire.de/api/users/search/findByDescription"
}
}
}
Links
Relation | Description |
---|---|
|
Canonical link for this resource |
Users
Listing
A GET
request will retrieve a paginated view of all User.
Response fields
Path | Type | Description |
---|---|---|
|
|
An array of User |
|
|
Links to other resources |
|
|
Curl request
$ curl 'http://skylar.livingfire.de/api/users' -i -X GET
HTTP response
HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
Content-Length: 1696
{
"_embedded" : {
"users" : [ {
"uuid" : "9ea65c1c-ae99-4a1a-b840-e8d7f5ec2c10",
"logstash" : "2017-04-01T00:00:00+02:00",
"description" : "Skylar",
"locationConfiguration" : {
"language" : "de",
"region" : "DE",
"timeZoneString" : "Europe/Berlin",
"locale" : "de_DE",
"zoneId" : "Europe/Berlin",
"zonedDateTime" : "2019-01-28T16:08:13.336+01:00"
},
"ttsConfiguration" : {
"ttsGender" : "female",
"ttsLanguage" : "de",
"location" : {
"language" : "de",
"region" : "DE",
"timeZoneString" : "Europe/Berlin",
"locale" : "de_DE",
"zoneId" : "Europe/Berlin",
"zonedDateTime" : "2019-01-28T16:08:13.336+01:00"
}
},
"_links" : {
"self" : {
"href" : "http://skylar.livingfire.de/api/users/6"
},
"user" : {
"href" : "http://skylar.livingfire.de/api/users/6"
},
"relationListdatasCanView" : {
"href" : "http://skylar.livingfire.de/api/users/6/relationListdatasCanView"
},
"relationSettingsSetBy" : {
"href" : "http://skylar.livingfire.de/api/users/6/relationSettingsSetBy"
}
}
} ]
},
"_links" : {
"self" : {
"href" : "http://skylar.livingfire.de/api/users{?page,size,sort}",
"templated" : true
},
"profile" : {
"href" : "http://skylar.livingfire.de/api/profile/users"
},
"search" : {
"href" : "http://skylar.livingfire.de/api/users/search"
}
},
"page" : {
"size" : 20,
"totalElements" : 1,
"totalPages" : 1,
"number" : 0
}
}
Links
Relation | Description |
---|---|
|
Canonical link for this resource |
|
|
|
Canonical link to search resources |