diff --git a/requirements.txt b/requirements.txt index 4222ccc..703c714 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,5 +9,4 @@ flask_sqlalchemy xeger pika psycopg2-binary -marshmallow -flask-serialize \ No newline at end of file +marshmallow \ No newline at end of file diff --git a/src/resources.py b/src/resources.py index 1121b8a..e26f6cd 100644 --- a/src/resources.py +++ b/src/resources.py @@ -28,8 +28,6 @@ class SampleResource(Resource): Sample endpoint See: https://swagger.kmlabz.com/?urls.primaryName=Input%20Service """ - samplemetadatas_schema = SampleMetadata(many=True, - exclude=['id', 'device_id', 'device_date', 'tag', 'timestamp']) def post(self): """ @@ -107,8 +105,6 @@ class SampleParameterResource(Resource): Sample endpoint with parameters """ - samplemetadata_schema = SampleMetadata(many=False) - def get(self, tag: str): """ Get a specific item @@ -116,4 +112,4 @@ class SampleParameterResource(Resource): :return: """ sample = SampleMetadata.query.filter_by(tag=tag).first_or_404() - return self.samplemetadata_schema.dump(sample), 200 + return sample, 200