feat(api): add create folder endpoint for users

This commit is contained in:
Ali BARIN
2025-04-24 12:56:36 +00:00
parent 115b409b92
commit b15ad10a55
8 changed files with 110 additions and 3 deletions

View File

@@ -22,6 +22,9 @@ exports[`Folder model > jsonSchema should have correct validations 1`] = `
"type": "string",
},
},
"required": [
"name",
],
"type": "object",
}
`;

View File

@@ -7,6 +7,8 @@ class Folder extends Base {
static jsonSchema = {
type: 'object',
required: ['name'],
properties: {
id: { type: 'string', format: 'uuid' },
name: { type: 'string', minLength: 1 },