File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ $version: "2"
22
33namespace com.shopping.inandout.article
44
5+ use com.shopping.inandout#DeleteRestrictedError
6+ use com.shopping.inandout#ResourceAlreadyExistsError
7+ use com.shopping.inandout#ResourceNotFoundError
58use com.shopping.inandout.util#Price
69use com.shopping.inandout.util#Slug
710
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ use com.shopping.inandout#DeleteRestrictedError
66use com.shopping.inandout#ResourceAlreadyExistsError
77use com.shopping.inandout#ResourceNotFoundError
88use com.shopping.inandout.article#Article
9+ use com.shopping.inandout.offer#Offer
910use com.shopping.inandout.store#Store
1011use com.shopping.inandout.util#ImageUrl
1112use com.shopping.inandout.util#ResourceName
@@ -24,6 +25,7 @@ resource Brand {
2425 resources : [
2526 Store
2627 Article
28+ Offer
2729 ]
2830 create : CreateBrand
2931 read : GetBrand
Original file line number Diff line number Diff line change @@ -2,13 +2,9 @@ $version: "2"
22
33namespace com.shopping.inandout
44
5- use aws.protocols#restJson1
6- use com.shopping.inandout.article#Article
75use com.shopping.inandout.brand#Brand
8- use com.shopping.inandout.offer#Offer
96use com.shopping.inandout.route#Route
107use com.shopping.inandout.stand#Stand
11- use com.shopping.inandout.store#Store
128
139@mixin
1410@restJson1
@@ -37,8 +33,5 @@ service MappingService with [InAndOut] {
3733service BusinessService with [InAndOut ] {
3834 resources : [
3935 Brand
40- Store
41- Article
42- Offer
4336 ]
4437}
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ namespace com.shopping.inandout.store
44
55use com.shopping.inandout#ResourceAlreadyExistsError
66use com.shopping.inandout#ResourceNotFoundError
7- use com.shopping.inandout.offer#Offer
87use com.shopping.inandout.stand#Stand
98use com.shopping.inandout.util#Description
109use com.shopping.inandout.util#GeoCoordinates
@@ -31,7 +30,6 @@ resource Store {
3130 }
3231 resources : [
3332 Stand
34- Offer
3533 ]
3634 create : CreateStore
3735 read : GetStore
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ $version: "2"
22
33namespace com.shopping.inandout.util
44
5- @range ( min : 0 , max : 9999999999999 )
5+ @pattern ( " ^[a-fA-F]+$ " )
66@documentation (" Simple identifier of a resource." )
7- integer ID
7+ string ID
88
99list IDList {
1010 member : ID
You can’t perform that action at this time.
0 commit comments