Uploads a user custom jar file to the server.

post

/spatialviewer/api/v1/raster/userCustomJar

Request

Supported Media Types
Form Parameters
Back to Top

Response

Supported Media Types

200 Response

successful request
Body ()
Root Schema : RasterUploadUserCustomJarSucess
Type: object
Show Source
Nested Schema : response
Type: object
Response details
Show Source
Nested Schema : items
Type: array
Show Source
  • Example: [ "oracle.spatial.raster.HillShade", "oracle.spatial.hadoop.imageprocessor.process.ImageSlope" ]

406 Response

File details are no correct.
Body ()
Root Schema : RasterUploadUserCustomJarNotAcceptable
Type: object
Show Source
Back to Top

Examples

Allows the user to upload a custom jar with his own implementations for the raster process.

The following example shows how to upload an user cumstom jar file by submitting a POST request on the REST resource using cURL.

curl -X POST "http://localhost:8045/spatialviewer/api/v1/raster/userCustomJar" -H "accept: application/json" -H "Content-Type: multipart/form-data" -F "file=@/opt/oracle/oracle-spatial-graph/spatial/raster/Raster-HOL/jlib/external-analysis.jar"

Example of Response Header

Example of Response Header

HTTP/1.1 100 Continue HTTP/1.1 200 OK Date: Wed, 22 Aug 2018 19:35:57 GMT Content-Type: application/json Access-Control-Allow-Origin: * Access-Control-Allow-Credentials: true Access-Control-Allow-Methods: GET, POST, DELETE, PUT Access-Control-Allow-Headers: Content-Type, Accept Transfer-Encoding: chunked

Example of the Response Body

The following example shows the contents of the response body in JSON format

{"status" : "success","title" : "Custom jar file was upload correctly.","o:successCode" : "SVR-00202","response" : {"value" : "external-analysis.jar","items" : [ "oracle.spatial.raster.HillShade", "oracle.spatial.hadoop.imageprocessor.process.ImageSlope" ]}}
Back to Top