Skip to content

Commit 7dea5fe

Browse files
committed
docs: Bump API version in docs to 1.2
Signed-off-by: Stephen Finucane <[email protected]>
1 parent f6b5fe5 commit 7dea5fe

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

docs/api/rest/index.rst

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This guide provides an overview of how one can interact with the REST API. For
88
detailed information on type and response format of the various resources
99
exposed by the API, refer to the web browsable API. This can be found at:
1010

11-
https://patchwork.example.com/api/1.1/
11+
https://patchwork.example.com/api/1.2/
1212

1313
where `patchwork.example.com` refers to the URL of your Patchwork instance.
1414

@@ -52,16 +52,16 @@ Patchwork instance hosted at `patchwork.example.com`, run:
5252

5353
.. code-block:: shell
5454
55-
$ curl -s 'https://patchwork.example.com/api/1.1/' | python -m json.tool
55+
$ curl -s 'https://patchwork.example.com/api/1.2/' | python -m json.tool
5656
{
57-
"bundles": "https://patchwork.example.com/api/1.1/bundles/",
58-
"covers": "https://patchwork.example.com/api/1.1/covers/",
59-
"events": "https://patchwork.example.com/api/1.1/events/",
60-
"patches": "https://patchwork.example.com/api/1.1/patches/",
61-
"people": "https://patchwork.example.com/api/1.1/people/",
62-
"projects": "https://patchwork.example.com/api/1.1/projects/",
63-
"series": "https://patchwork.example.com/api/1.1/series/",
64-
"users": "https://patchwork.example.com/api/1.1/users/"
57+
"bundles": "https://patchwork.example.com/api/1.2/bundles/",
58+
"covers": "https://patchwork.example.com/api/1.2/covers/",
59+
"events": "https://patchwork.example.com/api/1.2/events/",
60+
"patches": "https://patchwork.example.com/api/1.2/patches/",
61+
"people": "https://patchwork.example.com/api/1.2/people/",
62+
"projects": "https://patchwork.example.com/api/1.2/projects/",
63+
"series": "https://patchwork.example.com/api/1.2/series/",
64+
"users": "https://patchwork.example.com/api/1.2/users/"
6565
}
6666
6767
@@ -74,17 +74,17 @@ well-supported. To repeat the above example using `requests`:, run
7474
$ python
7575
>>> import json
7676
>>> import requests
77-
>>> r = requests.get('https://patchwork.example.com/api/1.1/')
77+
>>> r = requests.get('https://patchwork.example.com/api/1.2/')
7878
>>> print(json.dumps(r.json(), indent=2))
7979
{
80-
"bundles": "https://patchwork.example.com/api/1.1/bundles/",
81-
"covers": "https://patchwork.example.com/api/1.1/covers/",
82-
"events": "https://patchwork.example.com/api/1.1/events/",
83-
"patches": "https://patchwork.example.com/api/1.1/patches/",
84-
"people": "https://patchwork.example.com/api/1.1/people/",
85-
"projects": "https://patchwork.example.com/api/1.1/projects/",
86-
"series": "https://patchwork.example.com/api/1.1/series/",
87-
"users": "https://patchwork.example.com/api/1.1/users/"
80+
"bundles": "https://patchwork.example.com/api/1.2/bundles/",
81+
"covers": "https://patchwork.example.com/api/1.2/covers/",
82+
"events": "https://patchwork.example.com/api/1.2/events/",
83+
"patches": "https://patchwork.example.com/api/1.2/patches/",
84+
"people": "https://patchwork.example.com/api/1.2/people/",
85+
"projects": "https://patchwork.example.com/api/1.2/projects/",
86+
"series": "https://patchwork.example.com/api/1.2/series/",
87+
"users": "https://patchwork.example.com/api/1.2/users/"
8888
}
8989
9090
Tools like `curl` and libraries like `requests` can be used to build anything

0 commit comments

Comments
 (0)