From 8cd397938527cf2f3f80944b97a8d09767ae763e Mon Sep 17 00:00:00 2001 From: mountford Date: Tue, 21 Nov 2017 10:57:30 -0800 Subject: [PATCH] Add formatOutput parameter to RDAP documentation ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=176532296 --- docs/rdap.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/rdap.md b/docs/rdap.md index fc1829bfc..590a94b8e 100644 --- a/docs/rdap.md +++ b/docs/rdap.md @@ -329,6 +329,18 @@ Deleted items are shown only if the request is authorized for the registrar that owns the items, or if the request is authorized as an administrator. This parameter can be combined with the registrar parameter. +### `formatOutput` parameter + +By default, the JSON responses contain no extra whitespace. A more readable +formatted version can be requested by adding an extra parameter: + +``` + /rdap/domains?name=*.tld&formatOutput=true +``` + +The result is still valid JSON, but with extra whitespace added to align the +data on the page. + ### Additional features We anticipate adding additional features during the pilot program, such as the