Back to Apitable

.InternalServerAssetAPIApi

packages/api-client/InternalServerAssetAPIApi.md

1.13.0-beta.14.5 KB
Original Source

.InternalServerAssetAPIApi

All URIs are relative to http://backend/api/v1

MethodHTTP requestDescription
getGET /internal/asset/getGet Asset Info
getSignatureUrls1GET /internal/asset/signaturesBatch get asset signature url
getSpaceCapacity1GET /internal/asset/upload/preSignedUrlGet Upload PreSigned URL

get

ResponseDataAssetUploadResult get()

scene:Fusion server query the attachment field data before writing

Example

typescript
import {  } from '';
import * as fs from 'fs';

const configuration = .createConfiguration();
const apiInstance = new .InternalServerAssetAPIApi(configuration);

let body:.InternalServerAssetAPIApiGetRequest = {
  // string | resource key
  token: "space/2019/12/10/159",
};

apiInstance.get(body).then((data:any) => {
  console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));

Parameters

NameTypeDescriptionNotes
token[string]resource keydefaults to undefined

Return type

ResponseDataAssetUploadResult

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

HTTP response details

Status codeDescriptionResponse headers
200OK-
500Internal Server Error-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getSignatureUrls1

ResponseDataListAssetUrlSignatureVo getSignatureUrls1()

Example

typescript
import {  } from '';
import * as fs from 'fs';

const configuration = .createConfiguration();
const apiInstance = new .InternalServerAssetAPIApi(configuration);

let body:.InternalServerAssetAPIApiGetSignatureUrls1Request = {
  // Array<string>
  resourceKeys: [
    "resourceKeys_example",
  ],
};

apiInstance.getSignatureUrls1(body).then((data:any) => {
  console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));

Parameters

NameTypeDescriptionNotes
resourceKeysArray<string>defaults to undefined

Return type

ResponseDataListAssetUrlSignatureVo

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

HTTP response details

Status codeDescriptionResponse headers
200OK-
500Internal Server Error-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getSpaceCapacity1

ResponseDataListAssetUploadCertificateVO getSpaceCapacity1()

Example

typescript
import {  } from '';
import * as fs from 'fs';

const configuration = .createConfiguration();
const apiInstance = new .InternalServerAssetAPIApi(configuration);

let body:.InternalServerAssetAPIApiGetSpaceCapacity1Request = {
  // string | node custom id
  nodeId: "dst123",
  // string | number to create (default 1, max 20) (optional)
  count: "2",
};

apiInstance.getSpaceCapacity1(body).then((data:any) => {
  console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));

Parameters

NameTypeDescriptionNotes
nodeId[string]node custom iddefaults to undefined
count[string]number to create (default 1, max 20)(optional) defaults to undefined

Return type

ResponseDataListAssetUploadCertificateVO

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

HTTP response details

Status codeDescriptionResponse headers
200OK-
500Internal Server Error-

[Back to top] [Back to API list] [Back to Model list] [Back to README]