From f59cd4349c974c8ab7907b4852f5dc86ce4daeed Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Sat, 12 Oct 2024 16:29:05 +0200 Subject: add doc tests --- docs/get-started-cli.md | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'docs') 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" -- cgit v1.2.3