packages/api-client/WidgetUploadAPIApi.md
All URIs are relative to http://backend/api/v1
| Method | HTTP request | Description |
|---|---|---|
| generateWidgetPreSignedUrl | POST /asset/widget/{packageId}/uploadPreSignedUrl | Get widget file upload pre signed url |
| getWidgetUploadMeta | POST /asset/widget/uploadMeta | get widget upload meta |
ResponseDataListWidgetUploadTokenVo generateWidgetPreSignedUrl(widgetAssetUploadCertificateRO, )
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .WidgetUploadAPIApi(configuration);
let body:.WidgetUploadAPIApiGenerateWidgetPreSignedUrlRequest = {
// WidgetAssetUploadCertificateRO
widgetAssetUploadCertificateRO: {
filenames: [
"filenames_example",
],
fileType: 1,
count: 1,
version: "version_example",
fileExtName: [
"fileExtName_example",
],
},
// string
packageId: "packageId_example",
};
apiInstance.generateWidgetPreSignedUrl(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
| Name | Type | Description | Notes |
|---|---|---|---|
| widgetAssetUploadCertificateRO | WidgetAssetUploadCertificateRO | ||
| packageId | [string] | defaults to undefined |
ResponseDataListWidgetUploadTokenVo
No authorization required
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseDataWidgetUploadMetaVo getWidgetUploadMeta()
get widget upload meta
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .WidgetUploadAPIApi(configuration);
let body:any = {};
apiInstance.getWidgetUploadMeta(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
This endpoint does not need any parameter.
ResponseDataWidgetUploadMetaVo
No authorization required
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]