File System API

FsRestfulApi class

Interface address:/api/rest_j/v1/filesystem/createNewDir

Request method: POST

Request data type: application/json

Response data type: */*

Interface description:

Create a new Dir

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
pathpathtrueStringString

Response Status:

Status codeDescriptionschema
200OKMessage
201Created
401Unauthorized
403Forbidden
404Not Found

Response parameters:

parameter nameparameter descriptiontypeschema
dataDatasetobject
messageDescriptionstring
methodrequest urlstring
statusStatusinteger(int32)integer(int32)

Sample Response:

  1. {
  2. "data": {},
  3. "message": "",
  4. "method": "",
  5. "status": 0
  6. }

Interface address: /api/rest_j/v1/filesystem/createNewFile

Request method: POST

Request data type: application/json

Response data type: */*

Interface description:

Create a new file

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
pathpathtrueStringString

Response Status:

Status codeDescriptionschema
200OKMessage
201Created
401Unauthorized
403Forbidden
404Not Found

Response parameters:

parameter nameparameter descriptiontypeschema
dataDatasetobject
messageDescriptionstring
methodrequest urlstring
statusStatusinteger(int32)integer(int32)

Sample Response:

  1. {
  2. "data": {},
  3. "message": "",
  4. "method": "",
  5. "status": 0
  6. }

Interface address: /api/rest_j/v1/filesystem/deleteDirOrFile

Request method: POST

Request data type: application/json

Response data type: */*

Interface description:

Delete dir file or file

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
pathaddresstrueStringString

Response Status:

Status codeDescriptionschema
200OKMessage
201Created
401Unauthorized
403Forbidden
404Not Found

Response parameters:

parameter nameparameter descriptiontypeschema
dataDatasetobject
messageDescriptionstring
methodrequest urlstring
statusStatusinteger(int32)integer(int32)

Sample Response:

  1. {
  2. "data": {},
  3. "message": "",
  4. "method": "",
  5. "status": 0
  6. }

Interface address:/api/rest_j/v1/filesystem/download

Request method: POST

Request data type: application/json

Response data type: */*

Interface description:

Download

Request Parameters:

Parameter nameParameter descriptionRequiredRequest typeData typeschema
charsetCharsettrueStringString
pathaddresstrueStringString

Response Status:

Status codeDescriptionschema
200OKMessage
201Created
401Unauthorized
403Forbidden
404Not Found

Response parameters:

parameter nameparameter descriptiontypeschema
dataDatasetobject
messageDescriptionstring
methodrequest urlstring
statusStatusinteger(int32)integer(int32)

Sample Response:

  1. {
  2. "data": {},
  3. "message": "",
  4. "method": "",
  5. "status": 0
  6. }

Interface address:/api/rest_j/v1/filesystem/fileInfo

Request method: GET

Request data type: application/x-www-form-urlencoded

Response data type: */*

Interface Description:

File Information

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
pathaddressquerytruestring
pageSizepage sizequeryfalseref

Response Status:

Status codeDescriptionschema
200OKMessage
401Unauthorized
403Forbidden
404Not Found

Response parameters:

parameter nameparameter descriptiontypeschema
dataDatasetobject
messageDescriptionstring
methodrequest urlstring
statusStatusinteger(int32)integer(int32)

Sample Response:

  1. {
  2. "data": {},
  3. "message": "",
  4. "method": "",
  5. "status": 0
  6. }

Interface address:/api/rest_j/v1/filesystem/formate

Request method: GET

Request data type: application/x-www-form-urlencoded

Response data type: */*

Interface description:

resultsets converted to Excel

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
encodingencodingquerytruestring
escapeQuotesescapeQuotesquerytruestring
fieldDelimiterField Delimiterquerytruestring
hasHeaderHash valuequerytrueboolean
quotequotequerytruestring
pathaddressqueryfalsestring

Response Status:

Status codeDescriptionschema
200OKMessage
401Unauthorized
403Forbidden
404Not Found

Response parameters:

parameter nameparameter descriptiontypeschema
dataDatasetobject
messageDescriptionstring
methodrequest urlstring
statusStatusinteger(int32)integer(int32)

Sample Response:

  1. {
  2. "data": {},
  3. "message": "",
  4. "method": "",
  5. "status": 0
  6. }

Interface address:/api/rest_j/v1/filesystem/getDirFileTrees

Request method: GET

Request data type: application/x-www-form-urlencoded

Response data type: */*

Interface description:

Get a list of udf functions

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
pathrequest pathquerytruestring

Response Status:

Status codeDescriptionschema
200OKMessage
401Unauthorized
403Forbidden
404Not Found

Response parameters:

parameter nameparameter descriptiontypeschema
dataDatasetobject
messageDescriptionstring
methodrequest urlstring
statusStatusinteger(int32)integer(int32)

Sample Response:

  1. {
  2. "method": "/api/filesystem/getDirFileTrees",
  3. "status": 0,
  4. "message": "OK",
  5. "data": {
  6. "dirFileTrees": {
  7. "name": "",
  8. "path": "",
  9. "properties": null,
  10. "children": [{
  11. "name": "",
  12. "path": "",
  13. "properties": {
  14. "size": "",
  15. "modifytime": ""
  16. },
  17. "children": ,
  18. "isLeaf": ,
  19. "parentPath": ""
  20. }],
  21. "isLeaf": ,
  22. "parentPath":
  23. }
  24. }
  25. }

Interface address:/api/rest_j/v1/filesystem/getUserRootPath

Request method: GET

Request data type: application/x-www-form-urlencoded

Response data type: */*

Interface description:

Get root path

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
pathTypeFileTypequeryfalsestring

Response Status:

Status codeDescriptionschema
200OKMessage
401Unauthorized
403Forbidden
404Not Found

Response parameters:

parameter nameparameter descriptiontypeschema
dataDatasetobject
messageDescriptionstring
methodrequest urlstring
statusStatusinteger(int32)integer(int32)

Sample Response:

  1. {
  2. "data": {},
  3. "message": "",
  4. "method": "",
  5. "status": 0
  6. }

Interface address: /api/rest_j/v1/filesystem/isExist

Request method: GET

Request data type: application/x-www-form-urlencoded

Response data type: */*

Interface description:

Whether it exists

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
pathaddressquerytruestring

Response Status:

Status codeDescriptionschema
200OKMessage
401Unauthorized
403Forbidden
404Not Found

Response parameters:

parameter nameparameter descriptiontypeschema
dataDatasetobject
messageDescriptionstring
methodrequest urlstring
statusStatusinteger(int32)integer(int32)

Sample Response:

  1. {
  2. "data": {},
  3. "message": "",
  4. "method": "",
  5. "status": 0
  6. }

Interface address: /api/rest_j/v1/filesystem/openFile

Request method: GET

Request data type: application/x-www-form-urlencoded

Response data type: */*

Interface description:

Open file

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
pathaddressquerytruestring
charsetCharsetqueryfalsestring
pagepage numberqueryfalseref
pageSizepage sizequeryfalseref

Response Status:

Status codeDescriptionschema
200OKMessage
401Unauthorized
403Forbidden
404Not Found

Response parameters:

parameter nameparameter descriptiontypeschema
dataDatasetobject
messageDescriptionstring
methodrequest urlstring
statusStatusinteger(int32)integer(int32)

Sample Response:

  1. {
  2. "method": "/api/filesystem/openFile",
  3. "status": 0,
  4. "message": "OK",
  5. "data": {
  6. "metadata": [{
  7. "columnName": "_c0",
  8. "comment": "NULL",
  9. "dataType": ""
  10. }],
  11. "totalPage": ,
  12. "totalLine": ,
  13. "page": ,
  14. "type": "",
  15. "fileContent": [
  16. [""]
  17. ]
  18. }
  19. }

Interface address:/api/rest_j/v1/filesystem/openLog

Request method: GET

Request data type: application/x-www-form-urlencoded

Response data type: */*

Interface description:

Open logging

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
pathaddressqueryfalsestring
proxyUserProxy Userqueryfalsestring

Response Status:

Status codeDescriptionschema
200OKMessage
401Unauthorized
403Forbidden
404Not Found

Response parameters:

parameter nameparameter descriptiontypeschema
dataDatasetobject
messageDescriptionstring
methodrequest urlstring
statusStatusinteger(int32)integer(int32)

Sample Response:

  1. {
  2. "method": "/api/filesystem/openLog",
  3. "status": 0,
  4. "message": "OK",
  5. "data": {
  6. "log": ["", ""]
  7. }
  8. }

Interface address:/api/rest_j/v1/filesystem/rename

Request method: POST

Request data type: application/json

Response data type: */*

Interface description:

Rename the file

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
newDestnew namefalseStringString
oldDestold namefalseStringString

Response Status:

Status codeDescriptionschema
200OKMessage
201Created
401Unauthorized
403Forbidden
404Not Found

Response parameters:

parameter nameparameter descriptiontypeschema
dataDatasetobject
messageDescriptionstring
methodrequest urlstring
statusStatusinteger(int32)integer(int32)

Sample Response:

  1. {
  2. "data": {},
  3. "message": "",
  4. "method": "",
  5. "status": 0
  6. }

Interface address: /api/rest_j/v1/filesystem/resultsetToExcel

Request method: GET

Request data type: application/x-www-form-urlencoded

Response data type: */*

Interface description:

Convert the result set to Excel

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
autoFormatAutoqueryfalseboolean
charsetresult setqueryfalsestring
csvSeeratorcsv Separatorqueryfalsestring
limitlimitqueryfalseref
nullValuenull valuequeryfalsestring
outputFileNameOutput file namequeryfalsestring
outputFileTypeOutput file typequeryfalsestring
pathaddressqueryfalsestring
quoteRetouchEnableWhether to quote modificationqueryfalseboolean
sheetNamesheet namequeryfalsestring

Response Status:

Status codeDescriptionschema
200OKMessage
401Unauthorized
403Forbidden
404Not Found

Response parameters:

parameter nameparameter descriptiontypeschema
dataDatasetobject
messageDescriptionstring
methodrequest urlstring
statusStatusinteger(int32)integer(int32)

Sample Response:

  1. {
  2. "data": {},
  3. "message": "",
  4. "method": "",
  5. "status": 0
  6. }

Interface address:/api/rest_j/v1/filesystem/resultsetsToExcel

Request method: GET

Request data type: application/x-www-form-urlencoded

Response data type: */*

Interface description:

resultsets converted to Excel

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
autoFormatAutoquerytrueboolean
limitlimitquerytrueref
nullValuenull valuequerytruestring
outputFileNameOutput file namequerytruestring
pathaddressqueryfalsestring

Response Status:

Status codeDescriptionschema
200OKMessage
401Unauthorized
403Forbidden
404Not Found

Response parameters:

parameter nameparameter descriptiontypeschema
dataDatasetobject
messageDescriptionstring
methodrequest urlstring
statusStatusinteger(int32)integer(int32)

Sample Response:

  1. {
  2. "data": {},
  3. "message": "",
  4. "method": "",
  5. "status": 0
  6. }

Interface address:/api/rest_j/v1/filesystem/saveScript

Request method: POST

Request data type: application/json

Response data type: */*

Interface description:

Save script

Request Parameters:

Parameter nameParameter descriptionRequiredRequest typeData typeschema
pathaddresstrueStringString
SaveScriptjsonbodytrueSaveScriptSaveScript
charsetCharsetfalseStringString
paramsPage SizefalseObjectObject
scriptContentpage numberfalseStringString

Response Status:

Status codeDescriptionschema
200OKMessage
201Created
401Unauthorized
403Forbidden
404Not Found

Response parameters:

parameter nameparameter descriptiontypeschema
dataDatasetobject
messageDescriptionstring
methodrequest urlstring
statusStatusinteger(int32)integer(int32)

Sample Response:

  1. {
  2. "data": {},
  3. "message": "",
  4. "method": "",
  5. "status": 0
  6. }

Interface address:/api/rest_j/v1/filesystem/upload

Request method: POST

Request data type: application/json

Response data type: */*

Interface description:

Upload files, multiple files can be uploaded

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
filefileformDatafalseref
pathaddressqueryfalsestring

Response Status:

Status codeDescriptionschema
200OKMessage
201Created
401Unauthorized
403Forbidden
404Not Found

Response parameters:

parameter nameparameter descriptiontypeschema
dataDatasetobject
messageDescriptionstring
methodrequest urlstring
statusStatusinteger(int32)integer(int32)

Sample Response:

  1. {
  2. "data": {},
  3. "message": "",
  4. "method": "",
  5. "status": 0
  6. }