From fe02968230b9055b47a7275289730cf37f3b896d Mon Sep 17 00:00:00 2001 From: Srinivas Kaushik Date: Tue, 21 May 2019 14:41:59 -0600 Subject: [PATCH 1/2] Updated the order of the response (message followed by data) --- home-automation/02-device-registry/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home-automation/02-device-registry/README.md b/home-automation/02-device-registry/README.md index 169be9c..5d66a40 100644 --- a/home-automation/02-device-registry/README.md +++ b/home-automation/02-device-registry/README.md @@ -6,8 +6,8 @@ All responses will have the form ```json { - "data": "Mixed type holding the content of the response", "message": "Description of what happened" + "data": "Mixed type holding the content of the response", } ``` From c6bc54d7bd7094cc644c3c1140f9f070bcb16e18 Mon Sep 17 00:00:00 2001 From: Srinivas Kaushik Date: Tue, 21 May 2019 15:03:06 -0600 Subject: [PATCH 2/2] Updated the response code for POST --- home-automation/02-device-registry/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/home-automation/02-device-registry/README.md b/home-automation/02-device-registry/README.md index 5d66a40..dda484c 100644 --- a/home-automation/02-device-registry/README.md +++ b/home-automation/02-device-registry/README.md @@ -58,6 +58,7 @@ If a device with the given identifier already exists, the existing device will b **Response** - `201 Created` on success +- `400 BAD REQUEST` on plure due to incorrect data ```json {