diff options
author | Alexander Foremny <aforemny@posteo.de> | 2024-10-12 16:29:05 +0200 |
---|---|---|
committer | Alexander Foremny <aforemny@posteo.de> | 2024-10-12 17:10:53 +0200 |
commit | f59cd4349c974c8ab7907b4852f5dc86ce4daeed (patch) | |
tree | 7eaed9115b8ca5ae46792bbf4471bf007480d174 /docs | |
parent | 29d9251b15d56f66d06551e158e992ace1856110 (diff) |
add doc tests
Diffstat (limited to 'docs')
-rw-r--r-- | docs/get-started-cli.md | 23 |
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" |