-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.py
31 lines (27 loc) · 1021 Bytes
/
run.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
from eve import Eve
from eve.io.mongo import Validator
class MyValidator(Validator):
def _validate_create(self, alias, field, value):
""" {'type': 'boolean'} """
pass
def _validate_read(self, alias, field, value):
""" {'type': 'boolean'} """
pass
def _validate_update(self, alias, field, value):
""" {'type': 'boolean'} """
pass
def _validate_delete(self, alias, field, value):
""" {'type': 'boolean'} """
pass
def _validate_detail(self, alias, field, value):
""" {'type': 'boolean'} """
pass
def _validate_input(self, alias, field, value):
""" {'type': 'string'} """
pass
def _validate_icon(self, alias, field, value):
""" {'type': 'string'} """
pass
app = Eve(validator=MyValidator)
if __name__ == '__main__':
app.run()