@appsemble/utils
Version:
Utility functions used in Appsemble internally
45 lines • 1.58 kB
JavaScript
export const pathItems = {
post: {
tags: ['main', 'auth', 'email'],
description: 'Register a new studio account using an email address and a password.',
operationId: 'registerUserWithEmail',
requestBody: {
description: 'The user account to register.',
required: true,
content: {
'application/json': {
schema: {
type: 'object',
required: ['email', 'password'],
properties: {
name: {
type: 'string',
},
email: {
type: 'string',
format: 'email',
},
password: {
type: 'string',
minLength: 8,
},
timezone: {
enum: Intl.supportedValuesOf('timeZone'),
},
subscribed: {
type: 'boolean',
default: false,
},
},
},
},
},
},
responses: {
201: {
description: 'The account that was created.',
},
},
},
};
//# sourceMappingURL=register.js.map