aboutsummaryrefslogtreecommitdiffstats
path: root/docs/get-started-cli.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/get-started-cli.md')
-rw-r--r--docs/get-started-cli.md23
1 files changed, 13 insertions, 10 deletions
diff --git a/docs/get-started-cli.md b/docs/get-started-cli.md
index 93806c4..a1ffa4f 100644
--- a/docs/get-started-cli.md
+++ b/docs/get-started-cli.md
@@ -21,13 +21,23 @@ acms collection add restaurant <<'EOF'
EOF
```
+Take note of the `$fileName` in the output. Note that it should be different for you.
+
+```json
+{
+ "$fileName": "9474f0eb-06d7-4fd8-b89e-0ce996962508.json",
+ "description": "Welcome to Biscotte restaurant! Restaurant Biscotte offers a cuisine based on fresh, quality products, often local, organic when possible, and always produced by passionate producers.",
+ "name": "Biscotte Restaurant"
+}
+```
+
## Create a category collection type
```console
acms collection add category <<'EOF'
{
"name": "French Food",
- "restaurant": "1.json"
+ "restaurant": { "$ref": "restaurant/9474f0eb-06d7-4fd8-b89e-0ce996962508.json" }
}
EOF
```
@@ -36,7 +46,7 @@ EOF
acms collection add category <<'EOF'
{
"name": "Brunch",
- "restaurant": "1.json"
+ "restaurant": { "$ref": "restaurant/9474f0eb-06d7-4fd8-b89e-0ce996962508.json" }
}
EOF
```
@@ -66,14 +76,7 @@ curl 'http://localhost:8081' --data '
[
{
"category": {
- "category": "French Food"
- },
- "description": "Welcome to Biscotte restaurant! Restaurant Biscotte offers a cuisine based on fresh, quality products, often local, organic when possible, and always produced by passionate producers.",
- "name": "Biscotte Restaurant"
- },
- {
- "category": {
- "category": "Brunch"
+ "category": null
},
"description": "Welcome to Biscotte restaurant! Restaurant Biscotte offers a cuisine based on fresh, quality products, often local, organic when possible, and always produced by passionate producers.",
"name": "Biscotte Restaurant"