ETAPI openapi spec WIP

This commit is contained in:
zadam
2022-01-07 23:06:04 +01:00
parent d74371c9f5
commit 2532ea525d
6 changed files with 458 additions and 49 deletions

View File

@@ -41,8 +41,8 @@ function register(router) {
});
const ALLOWED_PROPERTIES_FOR_PATCH = {
'notePosition': validators.isInteger,
'prefix': validators.isStringOrNull,
'notePosition': validators.isInteger,
'prefix': validators.isStringOrNull,
'isExpanded': validators.isBoolean
};
@@ -70,9 +70,11 @@ function register(router) {
ru.getAndCheckNote(req.params.parentNoteId);
entityChangesService.addNoteReorderingEntityChange(req.params.parentNoteId, "etapi");
res.sendStatus(204);
});
}
module.exports = {
register
};
};