Code Review
/
cps.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Merge "Support pagination in query across all anchors(ep4)"
[cps.git]
/
cps-service
/
src
/
test
/
resources
/
bookstore.yang
1
module stores {
2
yang-version 1.1;
3
namespace "org:onap:ccsdk:sample";
4
5
prefix book-store;
6
7
revision "2020-09-15" {
8
description
9
"Sample Model";
10
}
11
12
typedef year {
13
type uint16 {
14
range "1000..9999";
15
}
16
}
17
18
list bookstore-address {
19
key "bookstore-name";
20
leaf bookstore-name {
21
type string;
22
description
23
"Name of bookstore. Example: My Bookstore";
24
}
25
leaf address {
26
type string;
27
description
28
"Address of store";
29
}
30
leaf postal-code {
31
type string;
32
description
33
"Postal code of store";
34
}
35
}
36
37
container bookstore {
38
39
leaf bookstore-name {
40
type string;
41
}
42
43
list categories {
44
45
key "code";
46
47
leaf code {
48
type string;
49
}
50
51
leaf name {
52
type string;
53
}
54
55
list books {
56
key title;
57
58
leaf title {
59
type string;
60
}
61
leaf lang {
62
type string;
63
}
64
leaf-list authors {
65
type string;
66
}
67
leaf pub_year {
68
type year;
69
}
70
leaf price {
71
type uint64;
72
}
73
}
74
}
75
}
76
}