@appsemble/utils
Version:
Utility functions used in Appsemble internally
38 lines • 1.14 kB
JavaScript
export const pathItems = {
parameters: [
{ $ref: '#/components/parameters/appId' },
{ $ref: '#/components/parameters/assetId' },
],
get: {
tags: ['common', 'app', 'asset'],
description: 'Get a single asset',
operationId: 'getAppAssetById',
responses: {
200: {
description: 'The asset that matches the given id.',
},
},
},
head: {
tags: ['common', 'app', 'asset'],
description: 'Get the headers for a single asset',
operationId: 'getAppAssetHeadersById',
responses: {
200: {
description: 'The headers of the asset that matches the given id.',
},
},
},
delete: {
tags: ['common', 'app', 'asset'],
description: 'Remove an existing asset',
operationId: 'deleteAppAsset',
responses: {
204: {
description: 'The asset was successfully deleted.',
},
},
security: [{ studio: [] }, { app: ['resources:manage'] }],
},
};
//# sourceMappingURL=assetId.js.map