@@ -8,7 +8,7 @@ This guide provides an overview of how one can interact with the REST API. For
8
8
detailed information on type and response format of the various resources
9
9
exposed by the API, refer to the web browsable API. This can be found at:
10
10
11
- https://patchwork.example.com/api/1.3 /
11
+ https://patchwork.example.com/api/1.4 /
12
12
13
13
where `patchwork.example.com ` refers to the URL of your Patchwork instance.
14
14
@@ -40,7 +40,7 @@ If all you want is reference guides, skip straight to :ref:`rest-api-schemas`.
40
40
41
41
.. versionchanged :: 3.1
42
42
43
- The API version was bumped to v1.3 in Patchwork v3.1. The older APIs are
43
+ The API version was bumped to v1.4 in Patchwork v3.1. The older APIs are
44
44
still supported. For more information, refer to :ref: `rest-api-versions `.
45
45
46
46
Getting Started
@@ -57,16 +57,16 @@ Patchwork instance hosted at `patchwork.example.com`, run:
57
57
58
58
.. code-block :: shell
59
59
60
- $ curl -s ' https://patchwork.example.com/api/1.3 /' | python -m json.tool
60
+ $ curl -s ' https://patchwork.example.com/api/1.4 /' | python -m json.tool
61
61
{
62
- " bundles" : " https://patchwork.example.com/api/1.3 /bundles/" ,
63
- " covers" : " https://patchwork.example.com/api/1.3 /covers/" ,
64
- " events" : " https://patchwork.example.com/api/1.3 /events/" ,
65
- " patches" : " https://patchwork.example.com/api/1.3 /patches/" ,
66
- " people" : " https://patchwork.example.com/api/1.3 /people/" ,
67
- " projects" : " https://patchwork.example.com/api/1.3 /projects/" ,
68
- " series" : " https://patchwork.example.com/api/1.3 /series/" ,
69
- " users" : " https://patchwork.example.com/api/1.3 /users/"
62
+ " bundles" : " https://patchwork.example.com/api/1.4 /bundles/" ,
63
+ " covers" : " https://patchwork.example.com/api/1.4 /covers/" ,
64
+ " events" : " https://patchwork.example.com/api/1.4 /events/" ,
65
+ " patches" : " https://patchwork.example.com/api/1.4 /patches/" ,
66
+ " people" : " https://patchwork.example.com/api/1.4 /people/" ,
67
+ " projects" : " https://patchwork.example.com/api/1.4 /projects/" ,
68
+ " series" : " https://patchwork.example.com/api/1.4 /series/" ,
69
+ " users" : " https://patchwork.example.com/api/1.4 /users/"
70
70
}
71
71
72
72
@@ -79,17 +79,17 @@ well-supported. To repeat the above example using `requests`:, run
79
79
$ python
80
80
>>> import json
81
81
>>> import requests
82
- >>> r = requests.get('https://patchwork.example.com/api/1.3 /')
82
+ >>> r = requests.get('https://patchwork.example.com/api/1.4 /')
83
83
>>> print(json.dumps(r.json(), indent=2))
84
84
{
85
- "bundles": "https://patchwork.example.com/api/1.3 /bundles/",
86
- "covers": "https://patchwork.example.com/api/1.3 /covers/",
87
- "events": "https://patchwork.example.com/api/1.3 /events/",
88
- "patches": "https://patchwork.example.com/api/1.3 /patches/",
89
- "people": "https://patchwork.example.com/api/1.3 /people/",
90
- "projects": "https://patchwork.example.com/api/1.3 /projects/",
91
- "series": "https://patchwork.example.com/api/1.3 /series/",
92
- "users": "https://patchwork.example.com/api/1.3 /users/"
85
+ "bundles": "https://patchwork.example.com/api/1.4 /bundles/",
86
+ "covers": "https://patchwork.example.com/api/1.4 /covers/",
87
+ "events": "https://patchwork.example.com/api/1.4 /events/",
88
+ "patches": "https://patchwork.example.com/api/1.4 /patches/",
89
+ "people": "https://patchwork.example.com/api/1.4 /people/",
90
+ "projects": "https://patchwork.example.com/api/1.4 /projects/",
91
+ "series": "https://patchwork.example.com/api/1.4 /series/",
92
+ "users": "https://patchwork.example.com/api/1.4 /users/"
93
93
}
94
94
95
95
Tools like `curl ` and libraries like `requests ` can be used to build anything
@@ -108,7 +108,7 @@ Versioning
108
108
----------
109
109
110
110
By default, all requests will receive the latest version of the API: currently
111
- ``1.3 ``:
111
+ ``1.4 ``:
112
112
113
113
.. code-block :: http
114
114
@@ -119,7 +119,7 @@ changes breaking your application:
119
119
120
120
.. code-block :: http
121
121
122
- GET /api/1.3 HTTP/1.1
122
+ GET /api/1.4 HTTP/1.1
123
123
124
124
Older API versions will be deprecated and removed over time. For more
125
125
information, refer to :ref: `rest-api-versions `.
@@ -275,6 +275,7 @@ Supported Versions
275
275
1.1, 2.1, ✓
276
276
1.2, 2.2, ✓
277
277
1.3, 3.1, ✓
278
+ 1.4, 3.1, ✓
278
279
279
280
Further information about this and more can typically be found in
280
281
:doc: `the release notes </releases/index >`.
@@ -292,6 +293,7 @@ Auto-generated schema documentation is provided below.
292
293
/api/rest/schemas/v1.1
293
294
/api/rest/schemas/v1.2
294
295
/api/rest/schemas/v1.3
296
+ /api/rest/schemas/v1.4
295
297
296
298
.. Links
297
299
0 commit comments