|
@ -6,7 +6,7 @@ from rest_framework.routers import DefaultRouter |
|
|
from sapl.api.deprecated import MateriaLegislativaViewSet, SessaoPlenariaViewSet,\ |
|
|
from sapl.api.deprecated import MateriaLegislativaViewSet, SessaoPlenariaViewSet,\ |
|
|
AutoresProvaveisListView, AutoresPossiveisListView, AutorListView,\ |
|
|
AutoresProvaveisListView, AutoresPossiveisListView, AutorListView,\ |
|
|
ModelChoiceView |
|
|
ModelChoiceView |
|
|
from sapl.api.views import SaplApiViewSetConstrutor, AppVersionView, recria_token |
|
|
from sapl.api.views import SaplApiViewSetConstrutor, AppVersionView, recria_token, get_mesa_diretora |
|
|
|
|
|
|
|
|
from .apps import AppConfig |
|
|
from .apps import AppConfig |
|
|
|
|
|
|
|
@ -72,6 +72,8 @@ urlpatterns = [ |
|
|
url(r'^api/', include(urlpatterns_router)), |
|
|
url(r'^api/', include(urlpatterns_router)), |
|
|
url(r'^api/version', AppVersionView.as_view()), |
|
|
url(r'^api/version', AppVersionView.as_view()), |
|
|
url(r'^api/recriar-token/(?P<pk>\d*)$', recria_token, name="recria_token"), |
|
|
url(r'^api/recriar-token/(?P<pk>\d*)$', recria_token, name="recria_token"), |
|
|
|
|
|
url(r'^api/parlamentares/mesa-diretora/(?P<pk>\d*)$', |
|
|
|
|
|
get_mesa_diretora, name='get_mesa_diretora') |
|
|
|
|
|
|
|
|
# implementar caminho para autenticação |
|
|
# implementar caminho para autenticação |
|
|
# https://www.django-rest-framework.org/tutorial/4-authentication-and-permissions/ |
|
|
# https://www.django-rest-framework.org/tutorial/4-authentication-and-permissions/ |
|
|