@appsemble/utils
Version:
Utility functions used in Appsemble internally
45 lines • 1.37 kB
JavaScript
export const pathItems = {
post: {
tags: ['main', 'block'],
description: 'Publish a block.',
operationId: 'createBlock',
requestBody: {
description: 'The new block version to publish.',
content: {
'multipart/form-data': {
schema: {
$ref: '#/components/schemas/BlockVersion',
},
},
},
},
responses: {
201: {
$ref: '#/components/responses/blockVersion',
},
},
security: [{ cli: ['blocks:write'] }],
},
get: {
tags: ['common', 'block'],
description: 'Get all block’s latest definitions.',
operationId: 'queryBlocks',
responses: {
200: {
description: 'The list of all latest block versions.',
content: {
'application/json': {
schema: {
type: 'array',
items: {
$ref: '#/components/schemas/BlockVersion',
},
},
},
},
},
},
security: [{ studio: [] }, {}],
},
};
//# sourceMappingURL=blocks.js.map