GET resources/{id}

Used to get an existing Resource in Data.Parliament. Response body contains a JSON description of the Resource properties.

Returns "200 OK" if the Resource retrieval occurs successfully.

Returns "404 Not Found" if the Resource does not exist in Data.Parliament.

Request Information

Parameters

NameDescriptionAdditional information
id
The ID of the Resource to be returned.

Define this parameter in the request URI.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "Id": 1,
  "CompositeResourceKey": {
    "SystemName": "sample string 1",
    "SystemDataId": "sample string 2",
    "SystemEntityType": "sample string 3"
  },
  "IsPublic": true,
  "ResourceVersion": 3,
  "ResourceFileURIs": [
    "http://data.parliament.uk/1",
    "http://data.parliament.uk/2",
    "http://data.parliament.uk/3"
  ],
  "ResourceFiles": [
    {
      "ResourceFileURI": "http://data.parliament.uk/1",
      "ResourceFileVersion": 2
    },
    {
      "ResourceFileURI": "http://data.parliament.uk/1",
      "ResourceFileVersion": 2
    },
    {
      "ResourceFileURI": "http://data.parliament.uk/1",
      "ResourceFileVersion": 2
    }
  ],
  "DatasetURIs": [
    "http://data.parliament.uk/1",
    "http://data.parliament.uk/2",
    "http://data.parliament.uk/3"
  ]
}