- Home
- Resources
- GeoportalExporter
The Class GeoportalExporter.
The Geoportal Exporter provides the facilities to export GIS projects stored in
the Geoportal system provided via D4Science VREs.
GET /geoportal/view/{jobCode}
View job. Check the job export status.
Request Parameters
name |
type |
description |
jobCode |
path |
the job code. The job ID assigned by export facility that
returns a waiting HTML page |
Response Body
media type |
data type |
description |
application/json |
object
(JSON) |
the response. It is a {#GeoportalJsonResponse} with the status of the
job. An export job completed contains the URL of the project
exported. |
text/html |
object
|
text/plain |
object
|
Example
Request
GET /geoportal/view/{jobCode}
Content-Type: */*
Accept: application/json
...
Response
HTTP/1.1 200 OK
Content-Type: application/json
...
GET /geoportal/export/{type}/healthcheck
Healthcheck. Checks if the export facility is configured in the context (i.e.
the scope read from input token).
Request Parameters
name |
type |
description |
type |
path |
the export type |
Response Body
media type |
data type |
description |
application/json |
object
(JSON) |
an object of type {#GeoportalJsonResponse) that contains the response |
text/html |
object
|
text/plain |
object
|
Example
Request
GET /geoportal/export/{type}/healthcheck
Content-Type: */*
Accept: application/json
...
Response
HTTP/1.1 200 OK
Content-Type: application/json
...
GET /geoportal/export/{type}/{usecase_id}/{project_id}
Export.
Request Parameters
name |
type |
description |
project_id |
path |
the project ID |
type |
path |
the export type. Must be a value of the enum
{#ACCEPTED_EXPORT_TYPE} |
usecase_id |
path |
the ucd ID |
as-url |
query |
the as URL. If true returns the project exported as an URL
in the response |
Response Body
media type |
data type |
description |
application/octet-stream |
object
|
the response. Can be an URL or a Stream of the project exported. |
text/html |
object
|
text/plain |
object
|
Example
Request
GET /geoportal/export/{type}/{usecase_id}/{project_id}
Content-Type: */*
Accept: application/octet-stream
...
Response
HTTP/1.1 200 OK
Content-Type: application/octet-stream
...