From 8e97efda3154d501c8479dfdb099fa4ba4b34394 Mon Sep 17 00:00:00 2001 From: pancho horrillo Date: Tue, 28 May 2019 15:32:07 +0200 Subject: [PATCH] spec: resolve a couple more TODOs --- spec/README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/spec/README.md b/spec/README.md index c767e1b..22b3a4c 100644 --- a/spec/README.md +++ b/spec/README.md @@ -489,7 +489,10 @@ Returns the value of the requested resource path, or an error if the resource pa **Code**: `400 Invalid Resource Path`
**Notes**: Check the list of valid resource paths at the top of this section. * **Code**: `404 Not Found` -* **Sample Call**: TODO +* **Sample Call**: + ``` + $ curl /handlers/$KAPOW_HANDLER_ID/request/body + ``` * **Notes**: TODO @@ -509,6 +512,10 @@ Returns the value of the requested resource path, or an error if the resource pa * **Code**: `404 Name Not Found`
**Notes**: Although the resource path is correct, no such name is present in the request. For instance, `/request/headers/Foo`, when no `Foo` header is not present in the request. * **Sample Call**: + ``` + FIXME: python snippet instead? + $ curl -X PUT /handlers/$KAPOW_HANDLER_ID/response/body < /tmp/some_file + ``` * **Notes**: