Uploads a user custom jar file to the server.
post
/spatialviewer/api/v1/raster/userCustomJar
Request
Supported Media Types
- multipart/form-data
Form Parameters
-
file: file
User implementation file (.jar)
Response
Supported Media Types
- application/json
200 Response
successful request
Root Schema : RasterUploadUserCustomJarSucess
Type:
Show Source
object
-
o:successCode(optional):
string
Success code.Example:
SVR-00202
-
response(optional):
object response
Response details
-
status(optional):
string
success or errorExample:
success
-
title(optional):
string
Response descriptionExample:
Custom jar file was upload correctly.
Nested Schema : response
Type:
object
Response details
Show Source
-
items(optional):
array items
-
value(optional):
string
Jar file nameExample:
external-analysis.jar
Nested Schema : items
Type:
Show Source
array
-
Array of:
string
Example:
[ "oracle.spatial.raster.HillShade", "oracle.spatial.hadoop.imageprocessor.process.ImageSlope" ]
406 Response
File details are no correct.
Root Schema : RasterUploadUserCustomJarNotAcceptable
Type:
Show Source
object
-
detail(optional):
string
Error response detail textExample:
Must supply a file or a jar file
-
o:errorCode(optional):
string
Error code.Example:
SVR-E0005
-
status(optional):
string
success or errorExample:
error
-
title(optional):
string
Response descriptionExample:
File upload can not be null or must be a jar file.
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" ]}}