ENH: Expose species (#32)

This commit is contained in:
Matthew Ryan Dillon 2017-11-19 17:15:50 -07:00 committed by GitHub
parent 6c5ddbec1e
commit 92a349c496
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 52 additions and 2 deletions

View file

@ -7,6 +7,7 @@ from ..utils import viewsets as utils_viewsets
from ..collections_ccdb import viewsets as collections_viewsets
from ..projects import viewsets as projects_viewsets
from ..locations import viewsets as locations_viewsets
from ..species import viewsets as species_viewsets
router = routers.DefaultRouter(trailing_slash=False)
@ -28,6 +29,10 @@ router.register(r'projects', projects_viewsets.ProjectViewSet)
router.register(r'regions', locations_viewsets.RegionViewSet)
router.register(r'sites', locations_viewsets.SiteViewSet)
router.register(r'study-locations', locations_viewsets.StudyLocationViewSet)
# Species
router.register(r'species', species_viewsets.SpeciesViewSet)
router.register(r'collection-species',
species_viewsets.CollectionSpeciesViewSet)
urlpatterns = [
url(r'^auth/login/', api_v.Login.as_view()),