diff options
author | Armin Weigl <tb46305@gmail.com> | 2021-02-17 18:02:16 +0100 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2021-02-17 12:15:17 -0500 |
commit | 7ba0d0fedc841a2e04eb3b94879c1c5c70b80c50 (patch) | |
tree | 2b704438ed71ccb1e466dcda8b0d512d04950186 | |
parent | 37b3ea427964ef0a33307419548acc86139f39f5 (diff) | |
download | sr.ht-docs-7ba0d0fedc841a2e04eb3b94879c1c5c70b80c50.tar.gz |
lists: api: Fix some errors
-rw-r--r-- | lists.sr.ht/api.md | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lists.sr.ht/api.md b/lists.sr.ht/api.md index b985633..517c963 100644 --- a/lists.sr.ht/api.md +++ b/lists.sr.ht/api.md @@ -265,7 +265,7 @@ List of [patchset resources](#patchset-resource) posted to this list. **OAuth scope**: `patches:read` -### GET /api/user/:username/lists/:list-name/patchsets +### GET /api/lists/:list-name/patchsets Equivalent to [/api/user/:username/lists/:list-name/patchsets](#GET-apiuserusernamelistslist-namepatchsets), @@ -279,7 +279,7 @@ Retrieves a [patchset resource](#patchset-resource). **OAuth scope**: `patches:read` -### GET /api/user/:username/lists/:list-name/patchsets/:id +### GET /api/lists/:list-name/patchsets/:id Equivalent to [/api/user/:username/lists/:list-name/patchsets/:id](#GET-apiuserusernamelistslist-namepatchsetsid), @@ -291,7 +291,7 @@ implies the authenticated user. Updates a [patchset resource](#patchset-resource). -**OAuth scope**: `patches:read` +**OAuth scope**: `patches:write` **Request body** @@ -305,13 +305,13 @@ Updates a [patchset resource](#patchset-resource). The updated [patchset resource](#patchset-resource). -### PUT /api/user/:username/lists/:list-name/patchsets/:id +### PUT /api/lists/:list-name/patchsets/:id Equivalent to -[/api/user/:username/lists/:list-name/patchsets/:id](#GET-apiuserusernamelistslist-namepatchsetsid), +[/api/user/:username/lists/:list-name/patchsets/:id](#PUT-apiuserusernamelistslist-namepatchsetsid), implies the authenticated user. -**OAuth scope**: `patches:read` +**OAuth scope**: `patches:write` ### PUT /api/user/:username/lists/:list-name/patchsets/:id/tools @@ -351,7 +351,7 @@ in this patchset. **OAuth scope**: `patches:read` -### GET /api/user/:username/lists/:list-name/patchsets/:id/patches +### GET /api/lists/:list-name/patchsets/:id/patches Equivalent to [/api/user/:username/lists/:list-name/patchsets/:id/patches](#GET-apiuserusernamelistslist-namepatchsetsidpatches), |