Note
Details
Curl request
$ curl 'http://skylar.livingfire.de/api/profile/notes' -i -X GET
Create
A POST
request will create a Note.
Curl request
$ curl 'http://skylar.livingfire.de/api/notes' -i -X POST \
-H 'Content-Type: application/hal+json' \
-d '{
"id" : null,
"uuid" : "2d8b978f-e659-43c5-96b5-563ab7164fd5",
"logstash" : "2017-04-01T00:00:00+02:00",
"description" : "2018-04-01 started job - Java Application Developer",
"url" : "http://www.google.de/javaDeveloper"
}'
HTTP response
HTTP/1.1 201 Created
Location: http://skylar.livingfire.de/api/notes/3
Retrieve
A GET
request will retrieve a Note.
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 |
|
|
a URL like https://www.youtube.com/ |
|
|
Links to other resources |
Curl request
$ curl 'http://skylar.livingfire.de/api/notes/3' -i -X GET
HTTP response
HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
Content-Length: 395
{
"uuid" : "2d8b978f-e659-43c5-96b5-563ab7164fd5",
"logstash" : "2017-04-01T00:00:00+02:00",
"description" : "2018-04-01 started job - Java Application Developer",
"url" : "http://www.google.de/javaDeveloper",
"_links" : {
"self" : {
"href" : "http://skylar.livingfire.de/api/notes/3"
},
"note" : {
"href" : "http://skylar.livingfire.de/api/notes/3"
}
}
}
Links
Relation | Description |
---|---|
|
Canonical link for this resource |
|
This Note |
Update
A PATCH
request will update a Note.
Curl request
$ curl 'http://skylar.livingfire.de/api/notes/3' -i -X PATCH \
-H 'Content-Type: application/hal+json' \
-d '{
"description" : "2018-04-01 started job - Java Application Developer"
}'
HTTP response
HTTP/1.1 204 No Content
Delete
A DELETE
request will delete a Note.
Curl request
$ curl 'http://skylar.livingfire.de/api/notes/3' -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/notes/search' -i -X GET
HTTP response
HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
Content-Length: 511
{
"_links" : {
"findByUuid" : {
"href" : "http://skylar.livingfire.de/api/notes/search/findByUuid{?uuid}",
"templated" : true
},
"findByDescription" : {
"href" : "http://skylar.livingfire.de/api/notes/search/findByDescription{?description}",
"templated" : true
},
"notesOfActiveFirms" : {
"href" : "http://skylar.livingfire.de/api/notes/search/notesOfActiveFirms"
},
"self" : {
"href" : "http://skylar.livingfire.de/api/notes/search"
}
}
}
findByUuid
A GET
request will retrieve a Note.
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 |
|
|
a URL like https://www.youtube.com/ |
|
|
Links to other resources |
Curl request
$ curl 'http://skylar.livingfire.de/api/notes/search/findByUuid?uuid=2d8b978f-e659-43c5-96b5-563ab7164fd5' -i -X GET
HTTP response
HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
Content-Length: 395
{
"uuid" : "2d8b978f-e659-43c5-96b5-563ab7164fd5",
"logstash" : "2017-04-01T00:00:00+02:00",
"description" : "2018-04-01 started job - Java Application Developer",
"url" : "http://www.google.de/javaDeveloper",
"_links" : {
"self" : {
"href" : "http://skylar.livingfire.de/api/notes/3"
},
"note" : {
"href" : "http://skylar.livingfire.de/api/notes/3"
}
}
}
Links
Relation | Description |
---|---|
|
Canonical link for this resource |
|
This Note |
findByDescription
A GET
request will retrieve a array of Note.
Request parameters
Parameter | Description |
---|---|
|
Description or name |
Response fields
Path | Type | Description |
---|---|---|
|
|
An array of Note |
|
|
Links to other resources |
Curl request
$ curl 'http://skylar.livingfire.de/api/notes/search/findByDescription?description=2018-04-01+started+job+-+Java+Application+Developer' -i -X GET
HTTP response
HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
Content-Length: 612
{
"_embedded" : {
"notes" : [ {
"uuid" : "2d8b978f-e659-43c5-96b5-563ab7164fd5",
"logstash" : "2017-04-01T00:00:00+02:00",
"description" : "2018-04-01 started job - Java Application Developer",
"url" : "http://www.google.de/javaDeveloper",
"_links" : {
"self" : {
"href" : "http://skylar.livingfire.de/api/notes/3"
},
"note" : {
"href" : "http://skylar.livingfire.de/api/notes/3"
}
}
} ]
},
"_links" : {
"self" : {
"href" : "http://skylar.livingfire.de/api/notes/search/findByDescription"
}
}
}
Links
Relation | Description |
---|---|
|
Canonical link for this resource |
Notes
Listing
A GET
request will retrieve a paginated view of all Note.
Response fields
Path | Type | Description |
---|---|---|
|
|
An array of Note |
|
|
Notes to other resources |
|
|
Curl request
$ curl 'http://skylar.livingfire.de/api/notes' -i -X GET
HTTP response
HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
Content-Length: 903
{
"_embedded" : {
"notes" : [ {
"uuid" : "2d8b978f-e659-43c5-96b5-563ab7164fd5",
"logstash" : "2017-04-01T00:00:00+02:00",
"description" : "2018-04-01 started job - Java Application Developer",
"url" : "http://www.google.de/javaDeveloper",
"_links" : {
"self" : {
"href" : "http://skylar.livingfire.de/api/notes/3"
},
"note" : {
"href" : "http://skylar.livingfire.de/api/notes/3"
}
}
} ]
},
"_links" : {
"self" : {
"href" : "http://skylar.livingfire.de/api/notes{?page,size,sort}",
"templated" : true
},
"profile" : {
"href" : "http://skylar.livingfire.de/api/profile/notes"
},
"search" : {
"href" : "http://skylar.livingfire.de/api/notes/search"
}
},
"page" : {
"size" : 20,
"totalElements" : 1,
"totalPages" : 1,
"number" : 0
}
}
Links
Relation | Description |
---|---|
|
Canonical link for this resource |
|
|
|
Canonical link to search resources |