-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
230 additions
and
268 deletions.
There are no files selected for viewing
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,3 +1,4 @@ | ||
# Generic imports | ||
from django.apps import AppConfig | ||
|
||
|
||
|
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,86 +1,77 @@ | ||
# Generic imports | ||
from rest_framework import serializers | ||
|
||
from relecov_core.models import ( | ||
BioinfoAnalysisValue, | ||
DateUpdateState, | ||
Effect, | ||
Filter, | ||
LineageValues, | ||
Sample, | ||
Variant, | ||
VariantAnnotation, | ||
VariantInSample, | ||
PublicDatabaseValues, | ||
) | ||
# Local imports | ||
import relecov_core.models | ||
|
||
|
||
class CreateBioinfoAnalysisValueSerializer(serializers.ModelSerializer): | ||
class Meta: | ||
model = BioinfoAnalysisValue | ||
model = relecov_core.models.BioinfoAnalysisValue | ||
fields = "__all__" | ||
|
||
|
||
class CreateDateAfterChangeStateSerializer(serializers.ModelSerializer): | ||
class Meta: | ||
model = DateUpdateState | ||
model = relecov_core.models.DateUpdateState | ||
fields = "__all__" | ||
|
||
|
||
class CreateSampleSerializer(serializers.ModelSerializer): | ||
class Meta: | ||
model = Sample | ||
model = relecov_core.models.Sample | ||
fields = "__all__" | ||
|
||
|
||
class CreateEffectSerializer(serializers.ModelSerializer): | ||
class Meta: | ||
model = Effect | ||
model = relecov_core.models.Effect | ||
fields = "__all__" | ||
|
||
|
||
class CreateErrorSerializer(serializers.ModelSerializer): | ||
class Meta: | ||
model = Sample | ||
model = relecov_core.models.Sample | ||
fields = "__all__" | ||
|
||
|
||
class CreateVariantInSampleSerializer(serializers.ModelSerializer): | ||
class Meta: | ||
model = VariantInSample | ||
model = relecov_core.models.VariantInSample | ||
fields = "__all__" | ||
|
||
|
||
class CreateVariantAnnotationSerializer(serializers.ModelSerializer): | ||
class Meta: | ||
model = VariantAnnotation | ||
model = relecov_core.models.VariantAnnotation | ||
fields = "__all__" | ||
|
||
|
||
class CreateFilterSerializer(serializers.ModelSerializer): | ||
class Meta: | ||
model = Filter | ||
model = relecov_core.models.Filter | ||
fields = "__all__" | ||
|
||
|
||
class CreateVariantSerializer(serializers.ModelSerializer): | ||
class Meta: | ||
model = Variant | ||
model = relecov_core.models.Variant | ||
fields = "__all__" | ||
|
||
|
||
class CreateLineageValueSerializer(serializers.ModelSerializer): | ||
class Meta: | ||
model = LineageValues | ||
model = relecov_core.models.LineageValues | ||
fields = "__all__" | ||
|
||
|
||
class CreatePublicDatabaseValueSerializer(serializers.ModelSerializer): | ||
class Meta: | ||
model = PublicDatabaseValues | ||
model = relecov_core.models.PublicDatabaseValues | ||
fields = "__all__" | ||
|
||
|
||
class UpdateStateSampleSerializer(serializers.ModelSerializer): | ||
class Meta: | ||
model = Sample | ||
model = relecov_core.models.Sample | ||
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,14 +1,27 @@ | ||
# Generic imports | ||
from django.urls import path | ||
from relecov_core.api import views | ||
|
||
# Local imports | ||
import relecov_core.api | ||
|
||
app_name = "relecov_api" | ||
|
||
|
||
urlpatterns = [ | ||
path( | ||
"createBioinfoData", views.create_bioinfo_metadata, name="create_bioinfo_data" | ||
"createBioinfoData", | ||
relecov_core.api.views.create_bioinfo_metadata, | ||
name="create_bioinfo_data", | ||
), | ||
path( | ||
"createSampleData", | ||
relecov_core.api.views.create_sample_data, | ||
name="create_sample_data", | ||
), | ||
path( | ||
"createVariantData", | ||
relecov_core.api.views.create_variant_data, | ||
name="create_variant_data", | ||
), | ||
path("createSampleData", views.create_sample_data, name="create_sample_data"), | ||
path("createVariantData", views.create_variant_data, name="create_variant_data"), | ||
path("updateState", views.update_state, name="update_state"), | ||
path("updateState", relecov_core.api.views.update_state, name="update_state"), | ||
] |
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
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
Oops, something went wrong.