blob: e325a65d74617cc1e3a43b727aa802624c63a036 (
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
34
35
|
; 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 (system.listMethods catalog shoppingCart shoppingTotal) (list "Service.get" "Service.getTotal"))
(define Service.getCatalog getcatalog)
(define Service.getTotal gettotal)
|