This commit is contained in:
		@@ -9,5 +9,4 @@ flask_sqlalchemy
 | 
			
		||||
xeger
 | 
			
		||||
pika
 | 
			
		||||
psycopg2-binary
 | 
			
		||||
marshmallow
 | 
			
		||||
flask-serialize
 | 
			
		||||
marshmallow
 | 
			
		||||
@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user