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

GeoportalResolver Resource

The GeoportalResolver is able to get/resolve a link to "Geoportal Viewer" or "Geoportal Entry" Application. See more at https://gcube.wiki.gcube-system.org/gcube/URI_Resolver#Geoportal_Resolver

POST /geo

Post geoportal. Create a Geoportal Link to "Data-Viewer" App

Request Body
media type data type description
application/json GeoportalRequest (JSON) the json request
Response Body
media type data type description
text/plain object the response

Example

Request
POST /geo
Content-Type: application/json
Accept: text/plain

                
{
  "gcube_scope" : "...",
  "item_type" : "...",
  "item_id" : "...",
  "query_string" : "..."
}
                
              
Response
HTTP/1.1 201 Created
Content-Type: text/plain

                
...
                
              

POST /geo/{targetAppId}

Post geoportal. Create a Geoportal Link to "Data-Viewer" or "Data-Entry" App

Request Parameters
name type description
targetAppId path the target app id
Request Body
media type data type description
application/json GeoportalRequest (JSON) the json request
Response Body
media type data type description
text/plain object the response

Example

Request
POST /geo/{targetAppId}
Content-Type: application/json
Accept: text/plain

                
{
  "gcube_scope" : "...",
  "item_type" : "...",
  "item_id" : "...",
  "query_string" : "..."
}
                
              
Response
HTTP/1.1 201 Created
Content-Type: text/plain

                
...
                
              

GET /geo/{vre_name}/{usecase_id}/{project_id}

Resolve geoportal. Resolve a Geoportal Link to "Data-Viewer" App

Request Parameters
name type description
project_id path the project ID
usecase_id path the ucd ID
vre_name path the vre name
res query the resolve as
Response Body
media type data type description
application/json object (JSON) the response

Example

Request
GET /geo/{vre_name}/{usecase_id}/{project_id}
Content-Type: */*
Accept: application/json

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

                
...
                
              

GET /geo/{targetAppId}/{vre_name}/{usecase_id}/{project_id}

Resolve geoportal. Resolve a Geoportal Link to "Data-Viewer" or "Data-Entry" App

Request Parameters
name type description
project_id path the project ID
targetAppId path the target app id
usecase_id path the ucd ID
vre_name path the vre name
res query the resolve as
Response Body
media type data type description
application/json object (JSON) the response

Example

Request
GET /geo/{targetAppId}/{vre_name}/{usecase_id}/{project_id}
Content-Type: */*
Accept: application/json

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

                
...