You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an unsupported or invalid version is requested, the API must respond with a status of `406 Not Acceptable`. In which case, the response should include a body specifying a list of supported versions.
44
43
44
+
A client can explicitly negotiate headers using the `OPTIONS` method to an MDS endpoint. For example, to check if `trips` supports either version `0.2` or `0.3` with a preference for `0.2`, the client would issue the following request:
The client can use the returned value verbatim as a version request in the `Accept` header.
59
+
45
60
### Response Format
46
61
47
62
The response to a client request must include a valid HTTP status code defined in the [IANA HTTP Status Code Registry](https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml). It also must set the `Content-Type` header, as specified in the [Versioning](#Versioning) section.
@@ -303,22 +318,6 @@ When multiple query parameters are specified, they should all apply to the retur
303
318
|||`rebalance_pick_up`| Device removed from street and will be placed at another location to rebalance service |
304
319
|||`maintenance_pick_up`| Device removed from street so it can be worked on |
305
320
306
-
[Top][toc]
307
-
308
-
## Versions
309
-
310
-
The versions endpoint allows user to query for the versions the provider supports.
311
-
312
-
Endpoint: `/versions`
313
-
Method: `GET`
314
-
Schema: [`versions` schema][versions-schema]
315
-
`data` Payload: `{ "versions": [] }`, an array of version strings usable in versioned requests
316
-
317
-
Here is an example payload:
318
-
319
-
"versions": [ "0.2", "0.3" ]
320
-
321
-
322
321
[Top][toc]
323
322
324
323
## Realtime Data
@@ -337,4 +336,3 @@ All MDS compatible `provider` APIs must expose a public [GBFS](https://github.co
0 commit comments