Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable schema route #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ Patches and Contributions
-------------------------

- <your name here>

- Luiz Oliveira <[email protected]>
8 changes: 4 additions & 4 deletions domain/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
:copyright: (c) 2013 by Nicola Iarocci and CIR2000.
:license: BSD, see LICENSE for more details.
"""
import countries
import companies
import accounts
from common import account, account_key # noqa (will raise W0611 on pyflakes)
import domain.countries as countries
import domain.companies as companies
import domain.accounts as accounts
from domain.common import account, account_key # noqa (will raise W0611 on pyflakes)

DOMAIN = {
'countries': countries.definition,
Expand Down
2 changes: 1 addition & 1 deletion domain/accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
:copyright: (c) 2014 by Nicola Iarocci and CIR2000.
:license: BSD, see LICENSE for more details.
"""
from common import base_schema, required_string
from domain.common import base_schema, required_string

_schema = {
'u': required_string, # username
Expand Down
2 changes: 1 addition & 1 deletion domain/companies.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
:copyright: (c) 2014 by Nicola Iarocci and CIR2000.
:license: BSD, see LICENSE for more details.
"""
from common import required_string
from domain.common import required_string

_schema = {
# company id ('id')
Expand Down
2 changes: 1 addition & 1 deletion domain/countries.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
:copyright: (c) 2014 by Nicola Iarocci and CIR2000.
:license: BSD, see LICENSE for more details.
"""
from common import required_string
from domain.common import required_string

_schema = {
'n': required_string, # name
Expand Down
3 changes: 3 additions & 0 deletions settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,8 @@
# Turn soft deletes on
SOFT_DELETE = True

# Enable schema route
SCHEMA_ENDPOINT = 'schema'

# Set the API domain
DOMAIN = domain.DOMAIN