Skip to content

Instantly share code, notes, and snippets.

Created July 7, 2015 17:52
Show Gist options
  • Save anonymous/3bab73901f901087177b to your computer and use it in GitHub Desktop.
Save anonymous/3bab73901f901087177b to your computer and use it in GitHub Desktop.
DOMAIN = {
'user': {
'mongo_prefix': 'USER_MONGO',
'allow_unknown': True,
'schema': {
'firstname': {
'type': 'string'
},
'lastname': {
'type': 'string'
},
'username': {
'type': 'string',
'unique': True
},
'password': {
'type': 'string'
},
'phone': {
'type': 'string'
}
}
},
'tax': {
'mongo_prefix': 'TAX_MONGO',
'allow_unknown': True,
'schema': {
'state': {
'type': 'string'
}
}
}
}
MONGO_DBNAME = 'micro'
USER_MONGO_DBNAME = 'you'
TAX_MONGO_DBNAME = 'me'
RESOURCE_METHODS = ['GET', 'POST', 'DELETE']
ITEM_METHODS = ['GET', 'PATCH', 'PUT', 'DELETE']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment