From c10f250a62d84400d300a80eeb155fbce9e223ec Mon Sep 17 00:00:00 2001 From: Mike Ralphson Date: Mon, 27 Nov 2017 12:59:09 +0000 Subject: [PATCH] opendatasoft; fix media types --- APIs/opendatasoft.com/2.1.0/fixup.yaml | 21 +++++++++++++++++++++ APIs/opendatasoft.com/2.1.0/jpdiff.yaml | 16 ++++++++++++++++ APIs/opendatasoft.com/2.1.0/swagger.yaml | 4 ++-- 3 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 APIs/opendatasoft.com/2.1.0/fixup.yaml create mode 100644 APIs/opendatasoft.com/2.1.0/jpdiff.yaml diff --git a/APIs/opendatasoft.com/2.1.0/fixup.yaml b/APIs/opendatasoft.com/2.1.0/fixup.yaml new file mode 100644 index 000000000000..d9a3953b8b1e --- /dev/null +++ b/APIs/opendatasoft.com/2.1.0/fixup.yaml @@ -0,0 +1,21 @@ +paths: + '/{source}/datasets/{dataset_id}/exports/xls': + get: + produces: + '0': + - application/vnd.ms-excel + _0: + - xls + - 0 + - 0 + _t: a + '/{source}/exports/xls': + get: + produces: + '0': + - application/vnd.ms-excel + _0: + - xls + - 0 + - 0 + _t: a diff --git a/APIs/opendatasoft.com/2.1.0/jpdiff.yaml b/APIs/opendatasoft.com/2.1.0/jpdiff.yaml new file mode 100644 index 000000000000..7a90abdfcda5 --- /dev/null +++ b/APIs/opendatasoft.com/2.1.0/jpdiff.yaml @@ -0,0 +1,16 @@ +- op: add + path: '/paths/~1{source}~1exports~1xls/get/produces/0' + value: application/vnd.ms-excel +- op: test + path: '/paths/~1{source}~1exports~1xls/get/produces/1' + value: xls +- op: remove + path: '/paths/~1{source}~1exports~1xls/get/produces/1' +- op: add + path: '/paths/~1{source}~1datasets~1{dataset_id}~1exports~1xls/get/produces/0' + value: application/vnd.ms-excel +- op: test + path: '/paths/~1{source}~1datasets~1{dataset_id}~1exports~1xls/get/produces/1' + value: xls +- op: remove + path: '/paths/~1{source}~1datasets~1{dataset_id}~1exports~1xls/get/produces/1' diff --git a/APIs/opendatasoft.com/2.1.0/swagger.yaml b/APIs/opendatasoft.com/2.1.0/swagger.yaml index e8e7fed32b45..1bc77650de37 100644 --- a/APIs/opendatasoft.com/2.1.0/swagger.yaml +++ b/APIs/opendatasoft.com/2.1.0/swagger.yaml @@ -668,7 +668,7 @@ paths: - $ref: '#/parameters/start' - $ref: '#/parameters/timezone' produces: - - xls + - application/vnd.ms-excel responses: '200': description: Return an XLS file @@ -1024,7 +1024,7 @@ paths: - $ref: '#/parameters/timezone' - $ref: '#/parameters/include_app_metas' produces: - - xls + - application/vnd.ms-excel responses: '200': description: Return an XLS file