@@ -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.1 /
11
+ https://patchwork.example.com/api/1.2 /
12
12
13
13
where `patchwork.example.com ` refers to the URL of your Patchwork instance.
14
14
@@ -52,16 +52,16 @@ Patchwork instance hosted at `patchwork.example.com`, run:
52
52
53
53
.. code-block :: shell
54
54
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
56
56
{
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/"
65
65
}
66
66
67
67
@@ -74,17 +74,17 @@ well-supported. To repeat the above example using `requests`:, run
74
74
$ python
75
75
>>> import json
76
76
>>> import requests
77
- >>> r = requests.get('https://patchwork.example.com/api/1.1 /')
77
+ >>> r = requests.get('https://patchwork.example.com/api/1.2 /')
78
78
>>> print(json.dumps(r.json(), indent=2))
79
79
{
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/"
88
88
}
89
89
90
90
Tools like `curl ` and libraries like `requests ` can be used to build anything
0 commit comments