You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(server): add a new PUT method to create a key with a specific identifier (#1473)
* feat(server): add optional `id` parameter to `createNewAccessKey` method
* Use `PUT` instead of `POST`.
* Make changes based on review.
* Update access key creation path to only allow ID on `PUT` calls.
* Expand test scenarios for key generation to `createAccessKey`.
* Add a `toHavePropertiesOf` custom Jasmine matcher.
* Add explicit test case for `ConflictError`.
* Revert "Add a `toHavePropertiesOf` custom Jasmine matcher."
This reverts commit 134e0df.
Copy file name to clipboardexpand all lines: src/shadowbox/server/api.yml
+44-5
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ paths:
37
37
- Server
38
38
description: Changes the hostname for access keys. Must be a valid hostname or IP address. If it's a hostname, DNS must be set up independently of this API.
39
39
requestBody:
40
-
required: true
40
+
required: true
41
41
content:
42
42
application/json:
43
43
schema:
@@ -51,7 +51,7 @@ paths:
51
51
'IP address':
52
52
value: '{"hostname": "127.0.0.1"}'
53
53
responses:
54
-
'204':
54
+
'204':
55
55
description: The hostname was successfully changed.
56
56
'400':
57
57
description: An invalid hostname or IP address was provided.
@@ -82,7 +82,7 @@ paths:
82
82
description: The requested port wasn't an integer from 1 through 65535, or the request had no port parameter.
83
83
'409':
84
84
description: The requested port was already in use by another service.
85
-
85
+
86
86
/server/access-key-data-limit:
87
87
put:
88
88
description: Sets a data transfer limit for all access keys
0 commit comments