Presterity / bookmarks

Client applications, REST API, and datastore for bookmarked reference material.
0 stars 0 forks source link

Use UUIDConverter to enforce UUIDs as ids in Bookmark Manager API endpoint paths #14

Closed jpowerwa closed 4 years ago

jpowerwa commented 7 years ago

In bookmarks.api.__init__ (or maybe bookmarks.api.endpoints, if a planned refactor has occurred), several API endpoint paths support a bookmark id or a note id. These are expected to be UUIDs, but the code currently allows them to just be strings. We should use a UUIDConverter (werkzeug PathConverter) to enforce this expectation.

jpowerwa commented 7 years ago

http://werkzeug.pocoo.org/docs/0.11/routing/