User

The information stored for a Skylar User Account.

Details

Curl request

$ curl 'http://skylar.livingfire.de/api/profile/users' -i

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" : "00000000-eaf1-4c58-baaf-e29b38c961f6",
  "logstash" : "2017-04-01T00:00:00+02:00",
  "description" : "Thomas",
  "settings" : [ ]
}'

HTTP response

HTTP/1.1 201 Created
Location: http://skylar.livingfire.de/api/users/2

Retrieve

A GET request will retrieve a User.

Response fields

Path Type Description

uuid

String

Java UUID

logstash

String

yyyy-MM-dd’T’HH:mm:ssXXX SimpleDateFormat

description

String

Description or name

_links

Object

Links to other resources

Curl request

$ curl 'http://skylar.livingfire.de/api/users/2' -i

HTTP response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
Content-Length: 394

{
  "uuid" : "00000000-eaf1-4c58-baaf-e29b38c961f6",
  "logstash" : "2017-04-01T00:00:00+02:00",
  "description" : "Thomas",
  "_links" : {
    "self" : {
      "href" : "http://skylar.livingfire.de/api/users/2"
    },
    "user" : {
      "href" : "http://skylar.livingfire.de/api/users/2"
    },
    "settings" : {
      "href" : "http://skylar.livingfire.de/api/users/2/settings"
    }
  }
}
Relation Description

self

Canonical link for this resource

user

This User

settings

See Settings

Update

A PATCH request will update a User.

Curl request

$ curl 'http://skylar.livingfire.de/api/users/2' -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/2' -i -X DELETE \
    -H 'Content-Type: application/hal+json'

HTTP response

HTTP/1.1 204 No Content

Details

Curl request
$ curl 'http://skylar.livingfire.de/api/users/search' -i
HTTP response
HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
Content-Length: 394

{
  "_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
    },
    "self" : {
      "href" : "http://skylar.livingfire.de/api/users/search"
    }
  }
}

findByUuid

A GET request will retrieve a User.

Request parameters
Parameter Description

uuid

Java UUID

Response fields
Path Type Description

uuid

String

Java UUID

logstash

String

yyyy-MM-dd’T’HH:mm:ssXXX SimpleDateFormat

description

String

Description or name

_links

Object

Links to other resources

Curl request
$ curl 'http://skylar.livingfire.de/api/users/search/findByUuid?uuid=00000000-eaf1-4c58-baaf-e29b38c961f6' -i
HTTP response
HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
Content-Length: 394

{
  "uuid" : "00000000-eaf1-4c58-baaf-e29b38c961f6",
  "logstash" : "2017-04-01T00:00:00+02:00",
  "description" : "Skylar",
  "_links" : {
    "self" : {
      "href" : "http://skylar.livingfire.de/api/users/2"
    },
    "user" : {
      "href" : "http://skylar.livingfire.de/api/users/2"
    },
    "settings" : {
      "href" : "http://skylar.livingfire.de/api/users/2/settings"
    }
  }
}
Relation Description

self

Canonical link for this resource

user

This User

settings

See Settings

findByDescription

A GET request will retrieve a array of User.

Request parameters
Parameter Description

description

Description or name

Response fields
Path Type Description

_embedded.users

Array

An array of User

_links

Object

Links to other resources

Curl request
$ curl 'http://skylar.livingfire.de/api/users/search/findByDescription?description=Thomas' -i
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"
    }
  }
}
Relation Description

self

Canonical link for this resource

Users

Listing

A GET request will retrieve a paginated view of all User.

Response fields

Path Type Description

_embedded.users

Array

An array of User

_links

Object

Links to other resources

page

Object

paging information

Curl request

$ curl 'http://skylar.livingfire.de/api/users' -i

HTTP response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
Content-Length: 910

{
  "_embedded" : {
    "users" : [ {
      "uuid" : "00000000-eaf1-4c58-baaf-e29b38c961f6",
      "logstash" : "2017-04-01T00:00:00+02:00",
      "description" : "Skylar",
      "_links" : {
        "self" : {
          "href" : "http://skylar.livingfire.de/api/users/2"
        },
        "user" : {
          "href" : "http://skylar.livingfire.de/api/users/2"
        },
        "settings" : {
          "href" : "http://skylar.livingfire.de/api/users/2/settings"
        }
      }
    } ]
  },
  "_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
  }
}
Relation Description

self

Canonical link for this resource

profile

The Application-Level Profile Semantics (ALPS)

search

Canonical link to search resources