Commit 08ce6aed authored by jfriedli's avatar jfriedli Committed by jvoisin

adding mime type to api response

parent 28253053
Pipeline #26302 passed with stages
in 1 minute and 45 seconds
......@@ -102,6 +102,7 @@ The `file` parameter is the base64 encoded file which will be cleaned.
```json
{
"output_filename": "fancy.cleaned.jpg",
"mime": "image/jpg",
"key": "81a541f9ebc0233d419d25ed39908b16f82be26a783f32d56c381559e84e6161",
"meta": {
"BitDepth": 8,
......
......@@ -147,6 +147,7 @@ def create_app(test_config=None):
key, meta_after, output_filename = cleanup(parser, filepath)
return {
'output_filename': output_filename,
'mime': mime,
'key': key,
'meta': meta,
'meta_after': meta_after,
......
......@@ -37,6 +37,7 @@ class Mat2APITestCase(unittest.TestCase):
data = json.loads(request.data.decode('utf-8'))
expected = {
'output_filename': 'test_name.cleaned.jpg',
'mime': 'image/jpeg',
'key': '81a541f9ebc0233d419d25ed39908b16f82be26a783f32d56c381559e84e6161',
'meta': {
'BitDepth': 8,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment