Added a endpoint UpdateBlockIndex for updating the index the easiest way possible.
Fixes #63
Changelog
InsertBlock : Specify the index when you want to insert your block
UpdateBlock : Update everything needed excpeted the index
UpdateBlockIndex : Update only the index by the deletion of the block and re insertion of a new one with the same properties. And returns the new block message (with a new id).
GetNote : Returns the notes meta info AND the blocks array in the right order.
Like this I don't have to keep an index field in my blocks.
And I don't have any logic of re-organization of the indexes when one is moved.
Description
Added a endpoint
UpdateBlockIndex
for updating the index the easiest way possible.Fixes #63
Changelog
InsertBlock
: Specify the index when you want to insert your blockUpdateBlock
: Update everything needed excpeted the indexUpdateBlockIndex
: Update only the index by the deletion of the block and re insertion of a new one with the same properties. And returns the new block message (with a new id).GetNote
: Returns the notes meta info AND the blocks array in the right order.Like this I don't have to keep an
index
field in my blocks. And I don't have any logic of re-organization of the indexes when one is moved.