@appsemble/utils
Version:
Utility functions used in Appsemble internally
67 lines • 2.44 kB
JavaScript
export const pathItems = {
parameters: [{ $ref: '#/components/parameters/organizationId' }],
get: {
tags: ['main', 'organization'],
description: 'Get a single organization.',
operationId: 'getOrganization',
responses: {
200: {
$ref: '#/components/responses/organization',
},
},
},
patch: {
tags: ['main', 'organization'],
description: 'Update an organization',
operationId: 'patchOrganization',
requestBody: {
content: {
'multipart/form-data': {
schema: {
type: 'object',
properties: {
name: {
$ref: '#/components/schemas/Organization/properties/name',
},
description: {
$ref: '#/components/schemas/Organization/properties/description',
},
email: {
$ref: '#/components/schemas/Organization/properties/email',
},
website: {
$ref: '#/components/schemas/Organization/properties/website',
},
icon: {
type: 'string',
format: 'binary',
description: 'The organization icon.',
},
},
},
encoding: {
icon: {
contentType: 'image/png,image/jpeg,image/tiff,image/webp',
},
},
},
},
},
responses: {
200: { $ref: '#/components/responses/organization' },
},
security: [{ studio: [] }, { cli: ['organizations:write'] }],
},
delete: {
tags: ['main', 'organization'],
description: 'Delete an organization.',
operationId: 'deleteOrganization',
responses: {
200: {
description: 'successfully deleted organization',
},
},
security: [{ studio: [] }, {}],
},
};
//# sourceMappingURL=organizationId.js.map