Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create builder for versioned APIs #1

Open
bbarker opened this issue Sep 20, 2016 · 0 comments
Open

Create builder for versioned APIs #1

bbarker opened this issue Sep 20, 2016 · 0 comments

Comments

@bbarker
Copy link
Collaborator

bbarker commented Sep 20, 2016

Different versions of the Docker API support different functions or variations of functions. Currently there are two Format.scala files defining the JSON inputs and outputs of the REST API, but this would be rather painful to maintain for many versions. While we don't need to support everything up front, a builder for a version-specific API would be ideal, so that a user only needs to specify their version at run time to get the right set of functions.

This could possibly be done with:

  • macros?
  • lazy evaluation of methods to specific function values, etc.
@bbarker bbarker changed the title Create API version builder Create builder for versioned APIs Sep 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant