Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
HTTP/1.1 200 OK
Content-Type: application/json
Transfer-Encoding: chunked
Server: Jetty(6.1.x)

{
  "items": {
    "optional": true,
    "type": "string"
  },
  "optional": true,
  "properties": {
    "etag": {
      "optional": true,
      "type": "string"
    },
    "id": {
      "optional": true,
      "type": "string"
    },
    "preview": {
      "optional": true,
      "type": "string"
    },
    "uri": {
      "optional": true,
      "type": "string"
    }
  },
  "type": "object"
}

...

Layer Locations Schema

The JsonSchema is an emerging standard similar to DTDs for XML.

...

Code Block
curl -i -H Accept:application/json 'http://localhost:8080/repo/v1/dataset/agxkZWZsYXV4LXRlc3RyFAsSDUdBRUpET0RhdGFzZXQYtAQM/layer/agxkZWZsYXV4LXRlc3RyLwsSDUdBRUpET0RhdGFzZXQYtAQMCxIUR0FFSkRPSW5wdXREYXRhTGF5ZXIY0xEM/awsEBSLocationlocations/schema'

Response

Code Block
HTTP/1.1 200 OK
Content-Type: application/json
Transfer-Encoding: chunked
Server: Jetty(6.1.x)

{
  "items": {
    "optional": true,
    "type": "string"
  },
  "optional": true,
  "properties": {
    "pathetag": {
      "optional": true,
      "type": "string"
    },
    "typeid": {
      "optional": true,
      "type": "string"
    }
,
 },   "typelocations": "object"
}

Layer Locations Schema

The JsonSchema is an emerging standard similar to DTDs for XML.

Request

Code Block
curl -i -H Accept:application/json 'http://localhost:8080/repo/v1/dataset/agxkZWZsYXV4LXRlc3RyFAsSDUdBRUpET0RhdGFzZXQYtAQM/layer/agxkZWZsYXV4LXRlc3RyLwsSDUdBRUpET0RhdGFzZXQYtAQMCxIUR0FFSkRPSW5wdXREYXRhTGF5ZXIY0xEM/locations/schema'

Response

Code Block

HTTP/1.1 200 OK
Content-Type: application/json
Transfer-Encoding: chunked
Server: Jetty(6.1.x)

{{
      "items": {
        "items": {
          "optional": true,
          "type": "string"
        },
        "optional": true,
        "properties": {
          "etagpath": {
            "optional": true,
            "type": "string"
          },
    "id": {       "optionaltype": true,{
       "type": "string"    "optional": }true,
    "locations": {       "itemstype": {"string"
        "items": { }
         "optional": true,
},
         "type": "stringobject"
        },
 
      "optional": true,
        "propertiestype": {"array"
    },
     "pathuri": {
            "optional": true,
     
      "type": "string"
    }
  },
  "type": },
          "type": {
       "object"
}

Get the awsEBSLocation for a Dataset Layer

The JsonSchema is an emerging standard similar to DTDs for XML.

Request

Code Block
curl -i -H Accept:application/json 'http://localhost:8080/repo/v1/dataset/agxkZWZsYXV4LXRlc3RyFAsSDUdBRUpET0RhdGFzZXQYtAQM/layer/agxkZWZsYXV4LXRlc3RyLwsSDUdBRUpET0RhdGFzZXQYtAQMCxIUR0FFSkRPSW5wdXREYXRhTGF5ZXIY0xEM/awsEBSLocation/schema'

Response

Code Block

HTTP/1.1 200 OK
Content-Type: application/json
Transfer-Encoding: chunked
Server: Jetty(6.1.x)

{
  "items": {
    "optional": true,
  
         "type": "string"
 
        },
        }"optional": true,
  "properties": {
    "typepath": "object"
      },{
      "optional": true,
      "type": "arraystring"
    },
    "uritype": {
      "optional": true,
      "type": "string"
    }
  },
  "type": "object"
}

...