Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Anthony
memopol
Commits
98f31254
Commit
98f31254
authored
Jul 08, 2016
by
Nicolas Joyard
Browse files
Add chambers to API
parent
2b15032d
Changes
1
Show whitespace changes
Inline
Side-by-side
memopol/api.py
View file @
98f31254
from
rest_framework
import
routers
from
representatives.api
import
(
ChamberViewSet
,
ConstituencyViewSet
,
GroupViewSet
,
MandateViewSet
,
...
...
@@ -23,6 +24,7 @@ from representatives_recommendations.api import (
router
=
routers
.
DefaultRouter
()
router
.
register
(
r
'chambers'
,
ChamberViewSet
,
'api-chamber'
)
router
.
register
(
r
'constituencies'
,
ConstituencyViewSet
,
'api-constituency'
)
router
.
register
(
r
'dossiers'
,
DossierViewSet
,
'api-dossier'
)
router
.
register
(
r
'dossier_scores'
,
DossierScoreViewSet
,
'api-dossierscore'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment