From b148e03cb57b9b6eeb98354f23a2eadf9b6fa05b Mon Sep 17 00:00:00 2001 From: Jan Friedli Date: Mon, 13 Jul 2020 08:34:18 +0200 Subject: documented bulk creator --- matweb/rest_api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'matweb/rest_api.py') diff --git a/matweb/rest_api.py b/matweb/rest_api.py index 0e47a5d..2bf44f0 100644 --- a/matweb/rest_api.py +++ b/matweb/rest_api.py @@ -64,7 +64,7 @@ class APIUpload(Resource): filename=output_filename, _external=True ) - ) + ), 201 class APIDownload(Resource): @@ -110,6 +110,7 @@ class APIBulkDownloadCreator(Resource): } v = Validator(schema) + @swag_from('./oas/bulk.yml') def post(self): utils.check_upload_folder(self.upload_folder) data = request.json -- cgit v1.3