Last change
on this file since 82 was
82,
checked in by peter, 9 years ago
|
issue #8: added notes about deleting bookmarks
|
File size:
977 bytes
|
Rev | Line | |
---|
[30] | 1 | GET / |
---|
| 2 | Lists the bookmarks |
---|
| 3 | |
---|
| 4 | Params: |
---|
[61] | 5 | format=json|xbel|text|csv|html |
---|
[30] | 6 | tag={tag} (repeatable) |
---|
| 7 | limit={limit} |
---|
| 8 | offset={offset} (only if limit is given) |
---|
| 9 | |
---|
| 10 | GET /{id} |
---|
| 11 | Gets a individual bookmark |
---|
| 12 | |
---|
| 13 | GET /{id}/{field} |
---|
| 14 | Gets an individual field of an individual bookmark |
---|
| 15 | |
---|
| 16 | GET /feed |
---|
| 17 | Gets an Atom feed of the bookmarks |
---|
| 18 | |
---|
[61] | 19 | Params: |
---|
| 20 | tag={tag} (repeatable) |
---|
| 21 | |
---|
[30] | 22 | POST / |
---|
| 23 | Create or update a bookmark |
---|
| 24 | |
---|
| 25 | POST /{id} |
---|
| 26 | Update a bookmark |
---|
| 27 | |
---|
[48] | 28 | == TODO == |
---|
| 29 | |
---|
[30] | 30 | PUT /{id} |
---|
| 31 | Create or update a bookmark; requires the entire resource representation to be given in JSON or XBEL |
---|
| 32 | |
---|
| 33 | DELETE /{id} |
---|
| 34 | Delete a bookmark |
---|
| 35 | |
---|
[82] | 36 | -- bookmarks that have been deleted |
---|
| 37 | create table deleted_bookmarks ( |
---|
| 38 | id integer, |
---|
| 39 | dtime integer |
---|
| 40 | ); |
---|
| 41 | |
---|
| 42 | insert into deleted_bookmarks (id) values (?) <-- {id} |
---|
| 43 | delete from bookmarks where id = ? <-- {id} |
---|
| 44 | |
---|
| 45 | then a request to /{id} checks the deleted_bookmarks table and issues a 410 (cacheable) if it is in there |
---|
| 46 | |
---|
[30] | 47 | PUT /{id}/{field} |
---|
| 48 | Set a single field of a bookmark |
---|
Note: See
TracBrowser
for help on using the repository browser.