@@ -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
@@ -43,6 +43,11 @@ If all you want is reference guides, skip straight to :ref:`rest-api-schemas`.
43
43
The API version was bumped to v1.3 in Patchwork v3.1. The older APIs are
44
44
still supported. For more information, refer to :ref: `rest-api-versions `.
45
45
46
+ .. versionchanged :: 3.2
47
+
48
+ The API version was bumped to v1.4 in Patchwork v3.2. The older APIs are
49
+ still supported. For more information, refer to :ref: `rest-api-versions `.
50
+
46
51
Getting Started
47
52
---------------
48
53
@@ -57,16 +62,16 @@ Patchwork instance hosted at `patchwork.example.com`, run:
57
62
58
63
.. code-block :: shell
59
64
60
- $ curl -s ' https://patchwork.example.com/api/1.3 /' | python -m json.tool
65
+ $ curl -s ' https://patchwork.example.com/api/1.4 /' | python -m json.tool
61
66
{
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/"
67
+ " bundles" : " https://patchwork.example.com/api/1.4 /bundles/" ,
68
+ " covers" : " https://patchwork.example.com/api/1.4 /covers/" ,
69
+ " events" : " https://patchwork.example.com/api/1.4 /events/" ,
70
+ " patches" : " https://patchwork.example.com/api/1.4 /patches/" ,
71
+ " people" : " https://patchwork.example.com/api/1.4 /people/" ,
72
+ " projects" : " https://patchwork.example.com/api/1.4 /projects/" ,
73
+ " series" : " https://patchwork.example.com/api/1.4 /series/" ,
74
+ " users" : " https://patchwork.example.com/api/1.4 /users/"
70
75
}
71
76
72
77
@@ -79,17 +84,17 @@ well-supported. To repeat the above example using `requests`:, run
79
84
$ python
80
85
>>> import json
81
86
>>> import requests
82
- >>> r = requests.get('https://patchwork.example.com/api/1.3 /')
87
+ >>> r = requests.get('https://patchwork.example.com/api/1.4 /')
83
88
>>> print(json.dumps(r.json(), indent=2))
84
89
{
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/"
90
+ "bundles": "https://patchwork.example.com/api/1.4 /bundles/",
91
+ "covers": "https://patchwork.example.com/api/1.4 /covers/",
92
+ "events": "https://patchwork.example.com/api/1.4 /events/",
93
+ "patches": "https://patchwork.example.com/api/1.4 /patches/",
94
+ "people": "https://patchwork.example.com/api/1.4 /people/",
95
+ "projects": "https://patchwork.example.com/api/1.4 /projects/",
96
+ "series": "https://patchwork.example.com/api/1.4 /series/",
97
+ "users": "https://patchwork.example.com/api/1.4 /users/"
93
98
}
94
99
95
100
Tools like `curl ` and libraries like `requests ` can be used to build anything
@@ -108,7 +113,7 @@ Versioning
108
113
----------
109
114
110
115
By default, all requests will receive the latest version of the API: currently
111
- ``1.3 ``:
116
+ ``1.4 ``:
112
117
113
118
.. code-block :: http
114
119
@@ -119,7 +124,7 @@ changes breaking your application:
119
124
120
125
.. code-block :: http
121
126
122
- GET /api/1.3 HTTP/1.1
127
+ GET /api/1.4 HTTP/1.1
123
128
124
129
Older API versions will be deprecated and removed over time. For more
125
130
information, refer to :ref: `rest-api-versions `.
@@ -275,6 +280,7 @@ Supported Versions
275
280
1.1, 2.1, ✓
276
281
1.2, 2.2, ✓
277
282
1.3, 3.1, ✓
283
+ 1.4, 3.2, ✓
278
284
279
285
Further information about this and more can typically be found in
280
286
:doc: `the release notes </releases/index >`.
@@ -292,6 +298,7 @@ Auto-generated schema documentation is provided below.
292
298
/api/rest/schemas/v1.1
293
299
/api/rest/schemas/v1.2
294
300
/api/rest/schemas/v1.3
301
+ /api/rest/schemas/v1.4
295
302
296
303
.. Links
297
304
0 commit comments