-
Notifications
You must be signed in to change notification settings - Fork 25
Add an “apiVersion” field to BeaconAlleleResponse #12
Comments
-0 API version is a property of the beacon, i.e. it belongs under /. A beacon will never return different API versions for different variants/responses, so there shouldn't be a need to to have it in BeaconAlleleResponse. The query syntax/semantics might change between different versions of the API, so you could argue that the client should know the version of the API before it executes a query anyway. EDIT: Changed -1 to -0. |
+1 It is a sanity check for an asynchronous, distributed system like the one we are building. |
Accepted. |
Can we revisit this @jrambla? I agree that it makes parsing the result simpler but not sure how much more of an advantage it is over querying the info endpoint once, and remembering the version for every subsequent request. As written, this field is optional, and so the only way a client will be confident in the version is to encode a fallback to look at the info endpoint anyways. |
+1 v.0.4 |
Closing as it is already included in merged PR #92 |
Currently only at Beacon.
Users won’t need to explicitly call the / endpoint to know the API version of the Beacon they are using.
The text was updated successfully, but these errors were encountered: