We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
POST /volumes is now POST /volumes/create
https://github.com/docker/docker/pull/17136


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `docker/api/volume.py`
Content:
```
1 from .. import utils
2 
3 
4 class VolumeApiMixin(object):
5     @utils.minimum_version('1.21')
6     def volumes(self, filters=None):
7         params = {
8             'filter': utils.convert_filters(filters) if filters else None
9         }
10         url = self._url('/volumes')
11         return self._result(self._get(url, params=params), True)
12 
13     @utils.minimum_version('1.21')
14     def create_volume(self, name, driver=None, driver_opts=None):
15         url = self._url('/volumes')
16         if driver_opts is not None and not isinstance(driver_opts, dict):
17             raise TypeError('driver_opts must be a dictionary')
18 
19         data = {
20             'Name': name,
21             'Driver': driver,
22             'DriverOpts': driver_opts,
23         }
24         return self._result(self._post_json(url, data=data), True)
25 
26     @utils.minimum_version('1.21')
27     def inspect_volume(self, name):
28         url = self._url('/volumes/{0}', name)
29         return self._result(self._get(url), True)
30 
31     @utils.minimum_version('1.21')
32     def remove_volume(self, name):
33         url = self._url('/volumes/{0}', name)
34         resp = self._delete(url)
35         self._raise_for_status(resp)
36         return True
37
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/docker/api/volume.py b/docker/api/volume.py
--- a/docker/api/volume.py
+++ b/docker/api/volume.py
@@ -12,7 +12,7 @@
 
     @utils.minimum_version('1.21')
     def create_volume(self, name, driver=None, driver_opts=None):
-        url = self._url('/volumes')
+        url = self._url('/volumes/create')
         if driver_opts is not None and not isinstance(driver_opts, dict):
             raise TypeError('driver_opts must be a dictionary')

{"golden_diff": "diff --git a/docker/api/volume.py b/docker/api/volume.py\n--- a/docker/api/volume.py\n+++ b/docker/api/volume.py\n@@ -12,7 +12,7 @@\n \n     @utils.minimum_version('1.21')\n     def create_volume(self, name, driver=None, driver_opts=None):\n-        url = self._url('/volumes')\n+        url = self._url('/volumes/create')\n         if driver_opts is not None and not isinstance(driver_opts, dict):\n             raise TypeError('driver_opts must be a dictionary')\n", "issue": "POST /volumes is now POST /volumes/create\nhttps://github.com/docker/docker/pull/17136\n\n", "before_files": [{"content": "from .. import utils\n\n\nclass VolumeApiMixin(object):\n    @utils.minimum_version('1.21')\n    def volumes(self, filters=None):\n        params = {\n            'filter': utils.convert_filters(filters) if filters else None\n        }\n        url = self._url('/volumes')\n        return self._result(self._get(url, params=params), True)\n\n    @utils.minimum_version('1.21')\n    def create_volume(self, name, driver=None, driver_opts=None):\n        url = self._url('/volumes')\n        if driver_opts is not None and not isinstance(driver_opts, dict):\n            raise TypeError('driver_opts must be a dictionary')\n\n        data = {\n            'Name': name,\n            'Driver': driver,\n            'DriverOpts': driver_opts,\n        }\n        return self._result(self._post_json(url, data=data), True)\n\n    @utils.minimum_version('1.21')\n    def inspect_volume(self, name):\n        url = self._url('/volumes/{0}', name)\n        return self._result(self._get(url), True)\n\n    @utils.minimum_version('1.21')\n    def remove_volume(self, name):\n        url = self._url('/volumes/{0}', name)\n        resp = self._delete(url)\n        self._raise_for_status(resp)\n        return True\n", "path": "docker/api/volume.py"}], "after_files": [{"content": "from .. import utils\n\n\nclass VolumeApiMixin(object):\n    @utils.minimum_version('1.21')\n    def volumes(self, filters=None):\n        params = {\n            'filter': utils.convert_filters(filters) if filters else None\n        }\n        url = self._url('/volumes')\n        return self._result(self._get(url, params=params), True)\n\n    @utils.minimum_version('1.21')\n    def create_volume(self, name, driver=None, driver_opts=None):\n        url = self._url('/volumes/create')\n        if driver_opts is not None and not isinstance(driver_opts, dict):\n            raise TypeError('driver_opts must be a dictionary')\n\n        data = {\n            'Name': name,\n            'Driver': driver,\n            'DriverOpts': driver_opts,\n        }\n        return self._result(self._post_json(url, data=data), True)\n\n    @utils.minimum_version('1.21')\n    def inspect_volume(self, name):\n        url = self._url('/volumes/{0}', name)\n        return self._result(self._get(url), True)\n\n    @utils.minimum_version('1.21')\n    def remove_volume(self, name):\n        url = self._url('/volumes/{0}', name)\n        resp = self._delete(url)\n        self._raise_for_status(resp)\n        return True\n", "path": "docker/api/volume.py"}]}