diff options
| author | Jan Friedli | 2020-07-13 08:34:18 +0200 |
|---|---|---|
| committer | Jan Friedli | 2020-07-13 08:34:18 +0200 |
| commit | b148e03cb57b9b6eeb98354f23a2eadf9b6fa05b (patch) | |
| tree | 9632a2e81b1773ea22074daf2953bcbef11c79ad /matweb/rest_api.py | |
| parent | 77269a82e62025b915e939b93b59ae1be03497cc (diff) | |
documented bulk creator
Diffstat (limited to 'matweb/rest_api.py')
| -rw-r--r-- | matweb/rest_api.py | 3 |
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 | ||
| 70 | class APIDownload(Resource): | 70 | class 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 |
