Skip to content

Commit

Permalink
Fix the sample issues
Browse files Browse the repository at this point in the history
  • Loading branch information
LianwMS authored and lqtian committed May 24, 2016
1 parent e003656 commit 5155501
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
3 changes: 1 addition & 2 deletions config/defaults.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@
"theme": "ace/theme/atom_dark"
},
"exampleFiles": [
"simpleTrippin.yaml",
"simpleBook.yaml",
"default.yaml"
"simpleTrippin.yaml"
],
"autocompleteExtension": {},
"useBackendForStorage": false,
Expand Down
17 changes: 10 additions & 7 deletions spec-files/simpleBook.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
api:
name: Service
root:
# Collection
- name: Books
type: Book[]
- name: OneBlog
type: Blog
types:
- name: Book
key:
- name: ID
type: long
requiredProperties:
- Title
- Author
- name: Blog
key:
- name: ID
type: long
requiredProperties: Title
root:
# Collection
- name: Books
type: Book[]
- name: OneBlog
type: Blog
requiredProperties: Title
2 changes: 1 addition & 1 deletion spec-files/simpleTrippin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ api:
host: services.odata.org
basePath: /V4/(S(cnbm44wtbc1v5bgrlek5lpcc))/TripPinServiceRW

serviceRoot:
root:
- name: Photos
type: photo[]
allows : [read, create, delete]
Expand Down

0 comments on commit 5155501

Please sign in to comment.