Skip to content

Commit 2c719e7

Browse files
authored
Merge pull request #810 from wellorder/reports-accept-header
Reports - Accept header media-type to text/vnd.mds+csv
2 parents e0c2887 + 7b71a47 commit 2c719e7

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

general-information.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ The list of allowed `vehicle_type` values in MDS. Aligning with [GBFS vehicle ty
352352

353353
MDS APIs must handle requests for specific versions of the specification from clients.
354354

355-
Versioning must be implemented through the use of a custom media-type, `application/vnd.mds+json`, combined with a required `version` parameter.
355+
Versioning must be implemented through the use of a custom media-type, `application/vnd.mds+json`, combined with a required `version` parameter. The one exception is the `/reports` endpoint, which returns CSV files instead of JSON, and so uses `text/vnd.mds+csv` as its media-type.
356356

357357
The version parameter specifies the dot-separated combination of major and minor versions from a published version of the specification. For example, the media-type for version `1.0.1` would be specified as `application/vnd.mds+json;version=1.0`
358358

provider/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@ The authenticated reports are monthly, historic flat files that may be pre-gener
361361
**Endpoint:** `/reports`
362362
**Method:** `GET`
363363
**[Beta feature][beta]:** Yes (as of 1.1.0). [Leave feedback](https://github.com/openmobilityfoundation/mobility-data-specification/issues/672)
364+
**Usage note:** This endpoint uses media-type `text/vnd.mds+csv` instead of `application/vnd.mds+json`, see [Versioning][versioning].
364365
**Schema:** TBD when out of beta
365366
**`data` Filename:** monthly file named by year and month, e.g. `/reports/YYYY-MM.csv`
366367
**`data` Payload:** monthly CSV files with the following structure:

0 commit comments

Comments
 (0)