D4Science D4Science Don't have a D4Science account? Create one Could not find what you are looking for? Contact us.

GeoServer Resource

POST /GeoServer

Request Body
media type data type
application/json GeoServerDefinition (JSON)
Response Body
media type data type description
application/xml string (XML)

Example

Request
POST /SDI-Service/GeoServer
Content-Type: application/json
Accept: application/xml

                
{
  "workspaces" : [ {
    "name" : "...",
    "access" : "SHARED"
  }, {
    "name" : "...",
    "access" : "SHARED"
  } ],
  "hostname" : "...",
  "majorVersion" : 12345,
  "minorVersion" : 12345,
  "releaseVersion" : 12345,
  "type" : "GEOSERVER",
  "adminPassword" : "...",
  "properties" : [ {
    "name" : "...",
    "value" : "..."
  }, {
    "name" : "...",
    "value" : "..."
  } ],
  "description" : "...",
  "name" : "..."
}
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/xml

                
...
                
              

GET /GeoServer/configuration/{host}

Request Parameters
name type description
host path
Response Body
media type data type description
application/json GeoServerDescriptor (JSON)

Example

Request
GET /SDI-Service/GeoServer/configuration/{host}
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
{
  "confidentialWorkspace" : "...",
  "contextVisibilityWorkspace" : "...",
  "sharedWorkspace" : "...",
  "publicWorkspace" : "...",
  "hostedLayersCount" : 12345,
  "engineId" : "...",
  "version" : {
    "major" : 12345,
    "minor" : 12345,
    "build" : 12345
  },
  "baseEndpoint" : "...",
  "accessibleCredentials" : [ {
    "username" : "...",
    "password" : "...",
    "accessType" : "CKAN"
  }, {
    "username" : "...",
    "password" : "...",
    "accessType" : "CKAN"
  } ]
}
                
              

GET /GeoServer/credentials/{host}

Request Parameters
name type description
host path
Response Body
media type data type description
application/json Credentials (JSON)

Example

Request
GET /SDI-Service/GeoServer/credentials/{host}
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
{
  "username" : "...",
  "password" : "...",
  "accessType" : "CKAN"
}
                
              

POST /GeoServer/import/{host}

Request Parameters
name type description
host path
sourceToken query
Response Body
media type data type description
application/xml string (XML)

Example

Request
POST /SDI-Service/GeoServer/import/{host}
Content-Type: application/json
Accept: application/xml

                
...
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/xml

                
...