Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Sv translation
languageen


MethodEndpointDescription
GET

/bi/mediaapi:file/:ID

Returns file with the given ID
POST/bi/mediaapi:upload

Uploads selected file

application/x-www-form-urlencoded, parameters: data (base64 encoded), filename, contentType

jQuery example:


Code Block
languagejs
var settings = {
  "url": "https://service.belladati.com/bi/mediaapi:upload",
  "method": "POST",
  "timeout": 0,
  "headers": {
    "Content-Type": "application/x-www-form-urlencoded",
    "Cookie": "JSESSIONID=node011fmc7x1mreicnb0tc7hjqnow0.node0"
  },
  "data": {
    "data": "base64 encoded data",
    "filename": "abc",
    "contentType": "application/pdf"
  }
};

$.ajax(settings).done(function (response) {
  console.log(response);
});


GET/bi/utils/api:file?path=C:\path\to\file.PDFReturns file from given absolute path.
GET/bi/utils/api:mergePdfFiles?paths=C:\file1.PDF;D:\file2.PDFMerges PDF files (specified by given absolute paths separated by ";") into one PDF file.


Sv translation
languageja


方法
メソッドエンドポイント説明
GET

/bi/mediaapi:file/:ID

指定されたIDのファイルを返します。

POST/bi/mediaapi:upload

選択したファイルをアップロードします。

application/x-www-form-urlencoded, parameters: data (base64 encoded), filename, contentType

jQuery 例:

Code Block
languagejs
var settings = {
  "url": "https://service.belladati.com/bi/mediaapi:upload",
  "method": "POST",
  "timeout": 0,
  "headers": {
    "Content-Type": "application/x-www-form-urlencoded",
    "Cookie": "JSESSIONID=node011fmc7x1mreicnb0tc7hjqnow0.node0"
  },
  "data": {
    "data": "base64 encoded data",
    "filename": "abc",
    "contentType": "application/pdf"
  }
};

$.ajax(settings).done(function (response) {
  console.log(response);
});


GET/bi/utils/api:file?path=C:\path\to\file.PDF
指定された絶対パスからファイルを返す

指定された絶対パスからファイルを返します。

GET/bi/utils/api:mergePdfFiles?paths=C:\file1.PDF;D:\file2.PDF
1つのPDFファイルにPDFファイルをマージする。(

PDFファイル ( ";"

で区切って指定した絶対パスで指定された)

 で区切られた、指定された絶対パスで指定)を1つのPDFファイルにマージします。