-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.py
57 lines (50 loc) · 1.36 KB
/
settings.py
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# MONGO_HOST = 'localhost'
# MONGO_PORT = 27017
# MONGO_DBNAME = 'admin'
DOMAIN = {
'attractions':{
'schema': {
'attraction_name': {
'type': 'string',
},
'park_name': {
'type':'string'
},
'attraction_type':{
'type': 'string'
}
#attraction_image
},
'additional_lookup': {
'url': 'regex("[\w]+")',
'field': 'park_name'
}
},
'dinings':{
'schema':{
'dining_name':{
'type':'string'
},
'park_name':{
'type': 'string'
},
'dining_image':{
'type':'media'
}
},
'additional_lookup': {
'url': 'regex("[\w]+")',
'field': 'park_name'
}
}
}
# Enable reads (GET), inserts (POST) and DELETE for resources/collections
# (if you omit this line, the API will default to ['GET'] and provide
# read-only access to the endpoint).
RESOURCE_METHODS = ['GET', 'POST', 'DELETE']
# Enable reads (GET), edits (PATCH), replacements (PUT) and deletes of
# individual items (defaults to read-only item access).
# ITEM_METHODS = ['GET', 'PATCH', 'PUT', 'DELETE']
# PAGINATION = False
# PAGINATION_LIMIT = 199
# PAGINATION_DEFAULT = 199