ResourceGroupService Resource
A set of end point that concerns resource resource groups.
POST /v1/resourcegroup/resultfile
This service returns the resource group a Vehicle belonged to when the provided result file was created.
| name | type | description |
|---|---|---|
| auth-token | header | The authentication token. |
| media type | data type | description |
|---|---|---|
| application/json | array of number (JSON) | A list of identifiers (max 1000) for the result files of interest. |
| code | condition |
|---|---|
| 401 | If no or an invalid authentication token is supplied. |
| 400 | If no or more than 1000 identifiers supplied. |
| media type | data type | description |
|---|---|---|
| application/json | array of ResultFileResourceGroup (JSON) | a list of ResultFileResourceGroup |
Example
Request
POST /v1/resourcegroup/resultfile
Content-Type: application/json
Accept: application/json
auth-token: ...
[ 12345, 678910 ]
Response
HTTP/1.1 201 Created
Content-Type: application/json
[ {
"result-file-identifier" : 12345,
"resource-group" : "..."
} ]
GET /v1/resourcegroup/{resource-group}/members
Returns all WCUs that belongs to the provided resource group.
| name | type | description |
|---|---|---|
| auth-token | header | The authentication token. |
| resource-group | path | The resource group of interest. |
| code | condition |
|---|---|
| 401 | If no or an invalid authentication token is supplied. |
| media type | data type | description |
|---|---|---|
| application/json | array of string (JSON) | a distinct list of wcu identifiers. |
Example
Request
GET /v1/resourcegroup/{resource-group}/members
Content-Type: */*
Accept: application/json
auth-token: ...
...
Response
HTTP/1.1 200 OK
Content-Type: application/json
[ "04-1B-94-00-0D-17", "04-1B-94-00-0C-CD", "04-1B-94-00-0C-A3" ]
GET /v1/resourcegroup/{resource-group}/members/history
This service returns all WCUs that have belonged to the provided resource group.
| name | type | description | constraints |
|---|---|---|---|
| auth-token | header | The authentication token. | |
| resource-group | path | The resource group of interest. | required |
| code | condition |
|---|---|
| 401 | If no or an invalid authentication token is supplied. |
| media type | data type | description |
|---|---|---|
| application/json | ResourceGroupMembersHistory (JSON) |
Example
Request
GET /v1/resourcegroup/{resource-group}/members/history
Content-Type: */*
Accept: application/json
auth-token: ...
...
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"resources" : [ {
"wcuId" : "...",
"vin" : "...",
"from" : 12345,
"to" : 12345
}, {
"wcuId" : "...",
"vin" : "...",
"from" : 12345,
"to" : 12345
} ],
"resource-group" : "..."
}