diff options
Diffstat (limited to 'todo.sr.ht')
-rw-r--r-- | todo.sr.ht/api.md | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/todo.sr.ht/api.md b/todo.sr.ht/api.md index e4a9624..5f843e9 100644 --- a/todo.sr.ht/api.md +++ b/todo.sr.ht/api.md @@ -4,7 +4,7 @@ title: todo.sr.ht API reference The todo.sr.ht API allows you to browse, create, and manage repositories on todo.sr.ht programmatically. This API follows the [standard sourcehut API -conventions](../api-conventions.md). +conventions](/api-conventions.md). ## Authentication @@ -186,7 +186,7 @@ Retrieves a user resource. ### GET /api/user -Equivalent to [/api/user/:username](#GET-apiuserusername), implies the +Equivalent to [/api/user/:username](#get-apiuserusername), implies the authenticated user. ### GET /api/user/:username/trackers @@ -197,7 +197,7 @@ List of [tracker resources](#tracker-resource) owned by this user. ### GET /api/trackers -Equivalent to [/api/:username/trackers](#GET-apiusernametrackers), implies the +Equivalent to [/api/user/:username/trackers](#get-apiuserusernametrackers), implies the authenticated user. **OAuth scope**: `trackers:read` @@ -230,7 +230,7 @@ Retrieves a [tracker resource](#tracker-resource). ### GET /api/trackers/:tracker-name Equivalent to -[/api/:username/trackers/:tracker-name](#GET-apiusernametrackerstrackername), +[/api/user/:username/trackers/:tracker-name](#get-apiuserusernametrackerstrackername), implies the authenticated user. **OAuth scope**: `trackers:read` @@ -250,12 +250,12 @@ Updates a [tracker resource](#tracker-resource). ### PUT /api/trackers/:tracker-name Equivalent to -[/api/:username/trackers/:tracker-name](#PUT-apiusernametrackerstrackername), +[/api/user/:username/trackers/:tracker-name](#put-apiuserusernametrackerstracker-name), implies the authenticated user. **OAuth scope**: `trackers:write` -### DELETE /api/trackers/:tracker-name +### DELETE /api/user/:username/trackers/:tracker-name Deletes a [tracker resource](#tracker-resource). @@ -264,7 +264,7 @@ Deletes a [tracker resource](#tracker-resource). ### DELETE /api/trackers/:tracker-name Equivalent to -[/api/:username/trackers/:tracker-name](#DELETE-apiusernametrackerstrackername), +[/api/user/:username/trackers/:tracker-name](#delete-apiuserusernametrackerstrackername), implies the authenticated user. **OAuth scope**: `trackers:write` @@ -278,7 +278,7 @@ List of [label resources](#label-resource) associated with this tracker. ### GET /api/trackers/:tracker-name/labels Equivalent to -[/api/:username/trackers/:tracker-name/labels](#GET-apiusernametrackerstrackernamelabels), +[/api/:username/trackers/:tracker-name/labels](#get-apiuserusernametrackerstrackernamelabels), implies the authenticated user. **OAuth scope**: `trackers:read` @@ -292,7 +292,7 @@ List of [ticket resources](#ticket-resource) associated with this tracker. ### GET /api/trackers/:tracker-name/tickets Equivalent to -[/api/:username/trackers/:tracker-name/tickets](#GET-apiusernametrackerstrackernametickets), +[/api/user/:username/trackers/:tracker-name/tickets](#get-apiuserusernametrackerstrackernametickets), implies the authenticated user. **OAuth scope**: `tickets:read` @@ -319,7 +319,7 @@ The new [ticket resource](#ticket-resource) ### POST /api/trackers/:tracker-name/tickets Equivalent to -[/api/:username/trackers/:tracker-name/tickets](#POST-apiusernametrackerstrackernametickets), +[/api/user/:username/trackers/:tracker-name/tickets](#post-apiuserusernametrackerstrackernametickets), implies the authenticated user. **OAuth scope**: `tickets:write` @@ -333,7 +333,7 @@ Retrieves a [ticket resource](#ticket-resource). ### GET /api/trackers/:tracker-name/tickets/:ticket-id Equivalent to -[/api/:username/trackers/:tracker-name/tickets/:ticket-id](#GET-apiusernametrackerstrackernameticketsticketid), +[/api/user/:username/trackers/:tracker-name/tickets/:ticket-id](#get-apiuserusernametrackerstrackernameticketsticketid), implies the authenticated user. **OAuth scope**: `tickets:read` @@ -396,7 +396,7 @@ One of: ### PUT /api/trackers/:tracker-name/tickets/:ticket-id Equivalent to -[/api/:username/trackers/:tracker-name/tickets/:ticket-id](#PUT-apiusernametrackerstrackernameticketsticketid), +[/api/user/:username/trackers/:tracker-name/tickets/:ticket-id](#PUT-apiuserusernametrackerstrackernameticketsticketid), implies the authenticated user. **OAuth scope**: `tickets:write` @@ -410,7 +410,7 @@ List of [event resources](#event-resource) associated with this ticket. ### GET /api/trackers/:tracker-name/tickets/:ticket-id/events Equivalent to -[/api/:username/trackers/:tracker-name/tickets/:ticket-id/events](#GET-apiusernametrackerstrackernameticketsticketidevents), +[/api/user/:username/trackers/:tracker-name/tickets/:ticket-id/events](#get-apiuserusernametrackerstrackernameticketsticketidevents), implies the authenticated user. **OAuth scope**: `tickets:read` |