From 846e41d7f65ba57924f0318e27dcc7b4a05aafc3 Mon Sep 17 00:00:00 2001 From: Carolyn Au Date: Fri, 28 Jun 2024 15:30:42 -0700 Subject: [PATCH] example formatter options --- _sass/friendly_code.scss | 5 ++++- api/rest/v2/observation.md | 36 +++++++++++++++++++++++++++++++++++- 2 files changed, 39 insertions(+), 2 deletions(-) diff --git a/_sass/friendly_code.scss b/_sass/friendly_code.scss index 4339b108e..796a8844d 100644 --- a/_sass/friendly_code.scss +++ b/_sass/friendly_code.scss @@ -61,4 +61,7 @@ .highlight .vc { color: #bb60d5 } /* Name.Variable.Class */ .highlight .vg { color: #bb60d5 } /* Name.Variable.Global */ .highlight .vi { color: #bb60d5 } /* Name.Variable.Instance */ -.highlight .il { color: #40a070 } /* Literal.Number.Integer.Long */ \ No newline at end of file +.highlight .il { color: #40a070 } /* Literal.Number.Integer.Long */ + +.language-json-doc .err { border: none; font-style: italic } +.language-js .nx { font-style: italic; color: #007020; } \ No newline at end of file diff --git a/api/rest/v2/observation.md b/api/rest/v2/observation.md index 9840ede03..efbbc9e36 100644 --- a/api/rest/v2/observation.md +++ b/api/rest/v2/observation.md @@ -18,9 +18,43 @@ and so on. When querying observations, you need to provide variable, entities, and dates. Specify variables as a list, in this form: +yaml +```yaml +{ + "dcids": [VARIABLE_DCID_1, VARIABLE_DCID_2] + "dcids": ["", ""] +} +``` + +json-doc ```json-doc { - "dcids": [_VARIABLE_DCID1_, _VARIABLE_DCID2_] + "dcids": [VARIABLE_DCID_1, VARIABLE_DCID_2], + "dcids": ["", ""] +} +``` + +elixir +```elixir +{ + "dcids": [VARIABLE_DCID_1, VARIABLE_DCID_2], + "dcids": ["", ""] +} +``` + +js +```js +{ + "dcids": [VARIABLE_DCID_1, VARIABLE_DCID_2], + "dcids": ["", ""] +} +``` + +go +```go +{ + "dcids": [VARIABLE_DCID_1, VARIABLE_DCID_2], + "dcids": ["", ""] } ```