Skip to content

Commit

Permalink
opendatasoft; fix media types
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeRalphson committed Nov 27, 2017
1 parent bdf9609 commit c10f250
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 2 deletions.
21 changes: 21 additions & 0 deletions APIs/opendatasoft.com/2.1.0/fixup.yaml
Original file line number Diff line number Diff line change
@@ -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
16 changes: 16 additions & 0 deletions APIs/opendatasoft.com/2.1.0/jpdiff.yaml
Original file line number Diff line number Diff line change
@@ -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'
4 changes: 2 additions & 2 deletions APIs/opendatasoft.com/2.1.0/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ paths:
- $ref: '#/parameters/start'
- $ref: '#/parameters/timezone'
produces:
- xls
- application/vnd.ms-excel
responses:
'200':
description: Return an XLS file
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c10f250

Please sign in to comment.