blob: 0091af542da5b96477fa149354c710b1974ce574 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
; Store implementation
(define (post item catalog shoppingCart shoppingTotal)
(shoppingCart "post" item)
)
(define (getall catalog shoppingCart shoppingTotal)
(shoppingCart "getall")
)
(define (get id catalog shoppingCart shoppingTotal)
(shoppingCart "get" id)
)
(define (getcatalog catalog shoppingCart shoppingTotal)
(catalog "get")
)
(define (gettotal catalog shoppingCart shoppingTotal)
(shoppingCart "gettotal")
)
(define (deleteall catalog shoppingCart shoppingTotal)
(shoppingCart "deleteall")
)
(define (delete id catalog shoppingCart shoppingTotal)
(shoppingCart "delete" id)
)
; TODO remove these JSON-RPC specific functions
(define (listMethods catalog shoppingCart shoppingTotal) (list "Service.getcatalog" "Service.gettotal"))
|