From 5ddd5c1a8e83b7db75322c8ae3de3d4553c2bc12 Mon Sep 17 00:00:00 2001 From: Jason Fox Date: Tue, 25 Jul 2023 09:52:42 +0200 Subject: [PATCH] Formatting --- docs/big-data-flink.md | 6 +++++- docs/big-data-spark.md | 6 +++++- docs/concise.md | 6 +++++- docs/entity-relationships.md | 6 +++++- docs/identity-management.md | 6 +++++- docs/iot-agent-json.md | 6 +++++- docs/iot-agent.md | 7 ++++++- docs/merge-patch.md | 6 +++++- docs/ngsi-ld-operations.md | 6 +++++- docs/roles-permissions.md | 7 ++++++- docs/short-term-history.md | 6 +++++- docs/time-series-data.md | 6 +++++- docs/working-with-@context.md | 6 +++++- 13 files changed, 67 insertions(+), 13 deletions(-) diff --git a/docs/big-data-flink.md b/docs/big-data-flink.md index acb68f2..da4b085 100644 --- a/docs/big-data-flink.md +++ b/docs/big-data-flink.md @@ -326,7 +326,11 @@ curl -X GET \ #### Response: > **Tip:** Use [jq](https://www.digitalocean.com/community/tutorials/how-to-transform-json-data-with-jq) to format -> the JSON responses in this tutorial. Pipe the result by appending `| jq '.'` +> the JSON responses in this tutorial. Pipe the result by appending +> +> ``` +> | jq '.' +> ``` ```json [ diff --git a/docs/big-data-spark.md b/docs/big-data-spark.md index acdae7d..8ca4359 100644 --- a/docs/big-data-spark.md +++ b/docs/big-data-spark.md @@ -311,7 +311,11 @@ curl -X GET \ #### Response: > **Tip:** Use [jq](https://www.digitalocean.com/community/tutorials/how-to-transform-json-data-with-jq) to format -> the JSON responses in this tutorial. Pipe the result by appending `| jq '.'` +> the JSON responses in this tutorial. Pipe the result by appending +> +> ``` +> | jq '.' +> ``` ```json [ diff --git a/docs/concise.md b/docs/concise.md index 8a8d8cf..dccdd8b 100644 --- a/docs/concise.md +++ b/docs/concise.md @@ -471,7 +471,11 @@ curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Temperatu #### Response: > **Tip:** Use [jq](https://www.digitalocean.com/community/tutorials/how-to-transform-json-data-with-jq) to format -> the JSON responses in this tutorial. Pipe the result by appending `| jq '.'` +> the JSON responses in this tutorial. Pipe the result by appending +> +> ``` +> | jq '.' +> ``` TemperatureSensor `urn:ngsi-ld:TemperatureSensor:001` is returned as _concise_ NGSI-LD. Additional metadata is returned because `options=sysAttrs`. By default the `@context` is returned in the payload body (although this could be moved due diff --git a/docs/entity-relationships.md b/docs/entity-relationships.md index fcaa3c1..070ab86 100644 --- a/docs/entity-relationships.md +++ b/docs/entity-relationships.md @@ -233,7 +233,11 @@ curl -X GET 'http://localhost:1026/ngsi-ld/v1/entities/?type=TemperatureSensor,F #### Response: > **Tip:** Use [jq](https://www.digitalocean.com/community/tutorials/how-to-transform-json-data-with-jq) to format -> the JSON responses in this tutorial. Pipe the result by appending `| jq '.'` +> the JSON responses in this tutorial. Pipe the result by appending +> +> ``` +> | jq '.' +> ``` ```json [ diff --git a/docs/identity-management.md b/docs/identity-management.md index c455efb..ccc9c2f 100644 --- a/docs/identity-management.md +++ b/docs/identity-management.md @@ -314,7 +314,11 @@ curl -iX POST \ #### Response: > **Tip:** Use [jq](https://www.digitalocean.com/community/tutorials/how-to-transform-json-data-with-jq) to format -> the JSON responses in this tutorial. Pipe the result by appending `| jq '.'` +> the JSON responses in this tutorial. Pipe the result by appending +> +> ``` +> | jq '.' +> ``` The response header returns an `X-Subject-token` which identifies who has logged on the application. This token is required in all subsequent requests to gain access. diff --git a/docs/iot-agent-json.md b/docs/iot-agent-json.md index 1b8b8f3..32847b4 100644 --- a/docs/iot-agent-json.md +++ b/docs/iot-agent-json.md @@ -614,7 +614,11 @@ curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Device:te #### Response: > **Tip:** Use [jq](https://www.digitalocean.com/community/tutorials/how-to-transform-json-data-with-jq) to format -> the JSON responses in this tutorial. Pipe the result by appending `| jq '.'` +> the JSON responses in this tutorial. Pipe the result by appending +> +> ``` +> | jq '.' +> ``` ```json { diff --git a/docs/iot-agent.md b/docs/iot-agent.md index 9618cce..636e700 100644 --- a/docs/iot-agent.md +++ b/docs/iot-agent.md @@ -603,7 +603,12 @@ curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Device:te #### Response: > **Tip:** Use [jq](https://www.digitalocean.com/community/tutorials/how-to-transform-json-data-with-jq) to format -> the JSON responses in this tutorial. Pipe the result by appending `| jq '.'` +> the JSON responses in this tutorial. Pipe the result by appending +> +> ``` +> | jq '.' +> ``` + ```json { diff --git a/docs/merge-patch.md b/docs/merge-patch.md index fb79c4c..eb949af 100644 --- a/docs/merge-patch.md +++ b/docs/merge-patch.md @@ -340,7 +340,11 @@ curl -L -X GET \ #### Response: > **Tip:** Use [jq](https://www.digitalocean.com/community/tutorials/how-to-transform-json-data-with-jq) to format -> the JSON responses in this tutorial. Pipe the result by appending `| jq '.'` +> the JSON responses in this tutorial. Pipe the result by appending +> +> ``` +> | jq '.' +> ``` ```json { diff --git a/docs/ngsi-ld-operations.md b/docs/ngsi-ld-operations.md index c58a39b..ef70a6f 100644 --- a/docs/ngsi-ld-operations.md +++ b/docs/ngsi-ld-operations.md @@ -414,7 +414,11 @@ curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Temperatu #### Response: > **Tip:** Use [jq](https://www.digitalocean.com/community/tutorials/how-to-transform-json-data-with-jq) to format -> the JSON responses in this tutorial. Pipe the result by appending `| jq '.'` +> the JSON responses in this tutorial. Pipe the result by appending +> +> ``` +> | jq '.' +> ``` TemperatureSensor `urn:ngsi-ld:TemperatureSensor:001` is returned as _normalized_ NGSI-LD. Additional metadata is returned because `options=sysAttrs`. By default, the `@context` is returned in the payload body (although this could be diff --git a/docs/roles-permissions.md b/docs/roles-permissions.md index e707d79..f3e3a85 100644 --- a/docs/roles-permissions.md +++ b/docs/roles-permissions.md @@ -362,7 +362,12 @@ curl -iX POST \ #### Response: > **Tip:** Use [jq](https://www.digitalocean.com/community/tutorials/how-to-transform-json-data-with-jq) to format -> the JSON responses in this tutorial. Pipe the result by appending `| jq '.'` +> the JSON responses in this tutorial. Pipe the result by appending +> +> ``` +> | jq '.' +> ``` + ```text HTTP/1.1 201 Created diff --git a/docs/short-term-history.md b/docs/short-term-history.md index e39d2f1..6a4279e 100644 --- a/docs/short-term-history.md +++ b/docs/short-term-history.md @@ -219,7 +219,11 @@ curl -L -X GET \ #### Response: > **Tip:** Use [jq](https://www.digitalocean.com/community/tutorials/how-to-transform-json-data-with-jq) to format -> the JSON responses in this tutorial. Pipe the result by appending `| jq '.'` +> the JSON responses in this tutorial. Pipe the result by appending +> +> ``` +> | jq '.' +> ``` The response will look similar to the following: diff --git a/docs/time-series-data.md b/docs/time-series-data.md index 331e75c..b383a34 100644 --- a/docs/time-series-data.md +++ b/docs/time-series-data.md @@ -313,7 +313,11 @@ curl -X GET \ #### Response: > **Tip:** Use [jq](https://www.digitalocean.com/community/tutorials/how-to-transform-json-data-with-jq) to format -> the JSON responses in this tutorial. Pipe the result by appending `| jq '.'` +> the JSON responses in this tutorial. Pipe the result by appending +> +> ``` +> | jq '.' +> ``` ```json [ diff --git a/docs/working-with-@context.md b/docs/working-with-@context.md index 99fed4a..a5985e5 100644 --- a/docs/working-with-@context.md +++ b/docs/working-with-@context.md @@ -259,7 +259,11 @@ curl -X GET \ #### Response: > **Tip:** Use [jq](https://www.digitalocean.com/community/tutorials/how-to-transform-json-data-with-jq) to format -> the JSON responses in this tutorial. Pipe the result by appending `| jq '.'` +> the JSON responses in this tutorial. Pipe the result by appending +> +> ``` +> | jq '.' +> ``` The response will look similar to the following: