From 5155501a49a6df67f7ac89b48433fda2925d8ac9 Mon Sep 17 00:00:00 2001 From: Liang Wang Date: Tue, 19 Apr 2016 16:31:58 +0800 Subject: [PATCH] Fix the sample issues --- config/defaults.json | 3 +-- spec-files/simpleBook.yaml | 17 ++++++++++------- spec-files/simpleTrippin.yaml | 2 +- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/config/defaults.json b/config/defaults.json index 69e98c0d90d..940f2c379c4 100644 --- a/config/defaults.json +++ b/config/defaults.json @@ -20,9 +20,8 @@ "theme": "ace/theme/atom_dark" }, "exampleFiles": [ - "simpleTrippin.yaml", "simpleBook.yaml", - "default.yaml" + "simpleTrippin.yaml" ], "autocompleteExtension": {}, "useBackendForStorage": false, diff --git a/spec-files/simpleBook.yaml b/spec-files/simpleBook.yaml index fe3b4c5e387..1f428ed4bcc 100644 --- a/spec-files/simpleBook.yaml +++ b/spec-files/simpleBook.yaml @@ -1,7 +1,16 @@ api: name: Service +root: + # Collection + - name: Books + type: Book[] + - name: OneBlog + type: Blog types: - name: Book + key: + - name: ID + type: long requiredProperties: - Title - Author @@ -9,10 +18,4 @@ types: key: - name: ID type: long - requiredProperties: Title -root: - # Collection - - name: Books - type: Book[] - - name: OneBlog - type: Blog + requiredProperties: Title \ No newline at end of file diff --git a/spec-files/simpleTrippin.yaml b/spec-files/simpleTrippin.yaml index 913c509f51e..6820dda348d 100644 --- a/spec-files/simpleTrippin.yaml +++ b/spec-files/simpleTrippin.yaml @@ -10,7 +10,7 @@ api: host: services.odata.org basePath: /V4/(S(cnbm44wtbc1v5bgrlek5lpcc))/TripPinServiceRW -serviceRoot: +root: - name: Photos type: photo[] allows : [read, create, delete]