Method | GET |
Rel | findsi:target |
Description | Returns a single Target |
None
A successful response (HTTP 200) will be a HAL document, containing the following:
Besides the default _self
and curies
links, the following links will be included:
targets | Returns a paged list of Targets the requesting API consumer has logged activities for. |
None
Id | String | Id of the Target, as it was specified by the API consumer in the activity logs. |
Classification | String | Id of the Target, as it was specified by the API consumer in the activity logs. |
The API may respond with one of the following errors:
401 | Unauthorized | The Authorization header might be missing or malformed. Alternatively you may have provided an invalid API key. |
A basic request would look something like:
GET /targets/... HTTP/1.1
Host: api.findsi.com
Accept: application/hal+json
Authorization: findsi_api_key apikey="..."
Content-Type: application/json
Cache-Control: no-cache
If all went well, your response will look something like this:
Cache-Control no-cache
Content-Length 323
Content-Type application/hal+json; charset=utf-8
Date Thu, 11 Sep 2014 16:53:25 GMT
Expires -1
Pragma no-cache
{
"Id": "3722387",
"Classification": "article",
"_links": {
"curies": {
"href": "http://www.findsi.com/docs/link-relations/{rel}",
"templated": true,
"name": "findsi"
},
"findsi:targets": {
"href": "/targets"
},
"self": {
"href": "/targets/..."
}
}
}