chore: update readme
24203a4b
1 file(s) · +3 −0
| 96 | 96 | | `GET` | `/api/snippets` | List all snippets | |
|
| 97 | 97 | | `POST` | `/api/snippets` | Create a snippet (`{"name": "...", "content": "..."}`) | |
|
| 98 | 98 | | `GET` | `/api/snippets/{short_id}` | Get a snippet by ID | |
|
| 99 | + | | `PUT` | `/api/snippets/{short_id}` | Update a snippet (`{"name": "...", "content": "..."}`) | |
|
| 99 | 100 | | `DELETE` | `/api/snippets/{short_id}` | Delete a snippet by ID | |
|
| 100 | 101 | ||
| 101 | 102 | Authenticated endpoints require an `x-api-key` header. |
|
| 130 | 131 | | `y` | Copy snippet content | |
|
| 131 | 132 | | `Y` | Copy snippet link | |
|
| 132 | 133 | | `o` | Open in browser | |
|
| 134 | + | | `e` | Edit snippet | |
|
| 133 | 135 | | `d` | Delete snippet | |
|
| 134 | 136 | | `c` | Create snippet | |
|
| 137 | + | | `/` | Search snippets | |
|
| 135 | 138 | | `r` | Refresh snippets (remote only) | |
|
| 136 | 139 | | `q` | Quit | |
|
| 137 | 140 | | `?` | Toggle help | |
|