From dc10b9b19a82ce27e3e9ef7067f88314cb86d2c3 Mon Sep 17 00:00:00 2001 From: Karel Minarik Date: Mon, 9 Sep 2013 13:36:31 +0200 Subject: [PATCH] Added the default `_all` value for document type in `get` API --- rest-api-spec/api/get.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rest-api-spec/api/get.json b/rest-api-spec/api/get.json index 7aa8c171377..66e2fb7b8cf 100644 --- a/rest-api-spec/api/get.json +++ b/rest-api-spec/api/get.json @@ -18,7 +18,8 @@ }, "type": { "type" : "string", - "required" : true, + "required" : false, + "default" : "all", "description" : "The type of the document (use `_all` to fetch the first document matching the ID across all types)" } },