@appsemble/utils
Version:
Utility functions used in Appsemble internally
29 lines • 1.19 kB
JavaScript
export const pathItems = {
get: {
tags: ['main', 'user', 'current-user', 'organization'],
description: "Fetch the logged in user's organizations.",
operationId: 'getCurrentUserOrganizations',
responses: {
200: {
description: 'The organizations the logged in user is a member of.',
content: {
'application/json': {
schema: {
type: 'array',
items: {
type: 'object',
properties: {
id: { $ref: '#/components/schemas/Organization/properties/id' },
name: { $ref: '#/components/schemas/Organization/properties/name' },
role: { $ref: '#/components/schemas/OrganizationMember/properties/role' },
},
},
},
},
},
},
},
security: [{ studio: [] }],
},
};
//# sourceMappingURL=organizations.js.map