summaryrefslogtreecommitdiff
path: root/matweb/rest_api.py
diff options
context:
space:
mode:
authorJan Friedli2020-07-13 08:34:18 +0200
committerJan Friedli2020-07-13 08:34:18 +0200
commitb148e03cb57b9b6eeb98354f23a2eadf9b6fa05b (patch)
tree9632a2e81b1773ea22074daf2953bcbef11c79ad /matweb/rest_api.py
parent77269a82e62025b915e939b93b59ae1be03497cc (diff)
documented bulk creator
Diffstat (limited to 'matweb/rest_api.py')
-rw-r--r--matweb/rest_api.py3
1 files changed, 2 insertions, 1 deletions
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):
64 filename=output_filename, 64 filename=output_filename,
65 _external=True 65 _external=True
66 ) 66 )
67 ) 67 ), 201
68 68
69 69
70class APIDownload(Resource): 70class APIDownload(Resource):
@@ -110,6 +110,7 @@ class APIBulkDownloadCreator(Resource):
110 } 110 }
111 v = Validator(schema) 111 v = Validator(schema)
112 112
113 @swag_from('./oas/bulk.yml')
113 def post(self): 114 def post(self):
114 utils.check_upload_folder(self.upload_folder) 115 utils.check_upload_folder(self.upload_folder)
115 data = request.json 116 data = request.json