Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Add an “apiVersion” field to BeaconAlleleResponse #12

Closed
mfiume opened this issue Apr 8, 2016 · 6 comments
Closed

Add an “apiVersion” field to BeaconAlleleResponse #12

mfiume opened this issue Apr 8, 2016 · 6 comments
Assignees
Milestone

Comments

@mfiume
Copy link
Contributor

mfiume commented Apr 8, 2016

Currently only at Beacon.

Users won’t need to explicitly call the / endpoint to know the API version of the Beacon they are using.

@mfiume mfiume added the proposal label Apr 8, 2016
@mfiume mfiume added this to the beacon-api-v0.3 milestone Apr 8, 2016
@mcupak
Copy link
Contributor

mcupak commented Apr 14, 2016

-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.

@jrambla
Copy link
Collaborator

jrambla commented Apr 19, 2016

+1

It is a sanity check for an asynchronous, distributed system like the one we are building.
Responses must be auto-suficient in terms of metadata. Each caller could, thus, double check the context from the response itself .
Nothing is impeding the user to receive answers from different servers between "info" call and actual query response, or just having deployed a new version between calls.

@mcupak
Copy link
Contributor

mcupak commented May 17, 2016

Accepted.

@mcupak mcupak self-assigned this May 29, 2016
mcupak added a commit to mcupak/beacon-team that referenced this issue May 29, 2016
@mcupak mcupak removed the proposal label May 29, 2016
mcupak added a commit to mcupak/beacon-team that referenced this issue May 29, 2016
@mfiume
Copy link
Contributor Author

mfiume commented May 31, 2016

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.

@mcupak mcupak modified the milestones: 0.4, 0.3 May 31, 2016
@mcupak mcupak modified the milestones: 1.0, 0.4 Jun 14, 2016
@jrambla
Copy link
Collaborator

jrambla commented Jun 15, 2016

+1 v.0.4

@sdelatorrep sdelatorrep modified the milestones: 0.4, 1.x May 2, 2017
sdelatorrep added a commit to sdelatorrep/beacon-team that referenced this issue May 2, 2017
@antbro antbro mentioned this issue May 2, 2017
Merged
@mcupak mcupak assigned sdelatorrep and unassigned mcupak Jun 20, 2017
@sdelatorrep
Copy link
Contributor

Closing as it is already included in merged PR #92

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants