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
* can use id to match paths
* full path in header
* validation
* make redis errors clearer
* rotate log url structure
* support empty path
* rotate paths
* fix
* remove unused parsers
* validate
* remove 400s
* remove validation
Copy file name to clipboardExpand all lines: docs/api/bins.md
+18-17Lines changed: 18 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,16 +93,16 @@ Responds with a `Location` header with the newly created **Bin**, e.g. `Location
93
93
94
94
#### Update Bin
95
95
96
-
> ##### `PUT /bin/:id`
96
+
> ##### `PUT /bin/:id/a/b/c`
97
97
98
-
Updates a new **Bin** with a mock HTTP response as described by a [HAR Response Object](http://www.softwareishard.com/blog/har-12-spec/#response) body.
98
+
Creates or updates a **Bin** with a mock HTTP response as described by a [HAR Response Object](http://www.softwareishard.com/blog/har-12-spec/#response) body. /a/b/c represeent any following paths than will be combined with the id for response matching.
99
99
100
-
Responds with a `Location` header with the updated **Bin**, e.g. `Location: /bin/3c149e20-bc9c-4c68-8614-048e6023a108` *(the Bin ID is also repeated in the body)*
100
+
Responds with a `Location` header with the updated **Bin**, e.g. `Location: /bin/3c149e20-bc9c-4c68-8614-048e6023a108/a/b/c` *(the Bin ID is also repeated in the body)*
101
101
102
102
###### Request
103
103
104
104
> ```http
105
-
> PUT /bin/3c149e20-bc9c-4c68-8614-048e6023a108 HTTP/1.1
105
+
> PUT /bin/3c149e20-bc9c-4c68-8614-048e6023a108/a/b/c HTTP/1.1
106
106
> Host: mockbin.org
107
107
> Content-Type: application/json
108
108
> Accept: application/json
@@ -162,7 +162,7 @@ Responds with a `Location` header with the updated **Bin**, e.g. `Location: /bin
0 commit comments