-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #72 from ES2-UFPI/guilberth_31
salvando dados da pressão no banco de dados
- Loading branch information
Showing
16 changed files
with
36 additions
and
8 deletions.
There are no files selected for viewing
Binary file modified
BIN
+0 Bytes
(100%)
diabetic_health/diabetic_health/__pycache__/__init__.cpython-311.pyc
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
diabetic_health/diabetic_health/__pycache__/settings.cpython-311.pyc
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
diabetic_health/diabetic_health/__pycache__/urls.cpython-311.pyc
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
diabetic_health/diabetic_health/__pycache__/wsgi.cpython-311.pyc
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
diabetic_health/historico_medico/__pycache__/__init__.cpython-311.pyc
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
diabetic_health/historico_medico/__pycache__/admin.cpython-311.pyc
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
diabetic_health/historico_medico/__pycache__/apps.cpython-311.pyc
Binary file not shown.
Binary file modified
BIN
+94 Bytes
(110%)
diabetic_health/historico_medico/__pycache__/models.cpython-311.pyc
Binary file not shown.
Binary file modified
BIN
+417 Bytes
(150%)
diabetic_health/historico_medico/__pycache__/serializers.cpython-311.pyc
Binary file not shown.
Binary file modified
BIN
+112 Bytes
(120%)
diabetic_health/historico_medico/__pycache__/urls.cpython-311.pyc
Binary file not shown.
Binary file modified
BIN
+1.47 KB
(170%)
diabetic_health/historico_medico/__pycache__/views.cpython-311.pyc
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
diabetic_health/historico_medico/migrations/__pycache__/__init__.cpython-311.pyc
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
from rest_framework_mongoengine.serializers import DocumentSerializer | ||
from .models import Glicemia | ||
from .models import Glicemia, Pressao | ||
|
||
|
||
class GlicemiaSerializer(DocumentSerializer): | ||
class Meta: | ||
model = Glicemia | ||
fields = '__all__' | ||
|
||
class PressaoSerializer(DocumentSerializer): | ||
class Meta: | ||
model = Pressao | ||
fields = '__all__' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
from django.urls import path, include | ||
from rest_framework.routers import DefaultRouter | ||
from .views import GlicemiaViewSet, GlicemiaView | ||
from .views import GlicemiaViewSet, GlicemiaView, PressaoViewSet | ||
|
||
router = DefaultRouter() | ||
router.register(r'glicemia', GlicemiaViewSet, basename='glicemia') | ||
router.register(r'pressao', PressaoViewSet, basename='pressao') | ||
|
||
urlpatterns = [ | ||
path('', include(router.urls)), | ||
|
||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters