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

Library to work with this API #1

Open
cdancy opened this issue Dec 15, 2016 · 3 comments
Open

Library to work with this API #1

cdancy opened this issue Dec 15, 2016 · 3 comments
Assignees
Labels

Comments

@cdancy
Copy link

cdancy commented Dec 15, 2016

@petehayes any thoughts on putting together a library, in the same vein as bitbucket-rest, to work against our API? I've actually proposed this before, and not sure what its use-case would be at the moment, but would at least serve as an example of how to work with PRPC's API.

Thoughts?

@petehayes
Copy link
Member

Maybe @ptandara has a perspective.

@ptandara
Copy link
Collaborator

We were investigating this, but the RAML path was more expedient for our purposes. We may post a java-based client, depending on the development cost and whether it satisfies a need that the RAML doc does not. It looks like you used JAX-RS as the client library/toolkit to build the Bitbucket API client. I'd like to ask about the effort required to develop this client, how much of the code was auto-generated, and what the source metadata was for auto-generation.

@cdancy
Copy link
Author

cdancy commented Dec 16, 2016

@ptandara jclouds-core is being used which indeed brings in jax-rs. The idea with this library is that you focus solely on defining the interface while the underlying implementation is hidden from the user/client behind the scenes. I've used it in a few different projects with great success. The bitbucket-rest library I noted above we use here extensively for our PullRequest code.

As far as effort is concerned: I could whip something together, which in turn would be based on the work @petehayes and I have been working on here, and have something going in a couple days. To get things up and going I'd do this in off hours so as not to stop current development. I've written enough of these so far that it's more/less second nature to me at this point ;)

EDIT: no auto-generated code per se unless you're referring to the libraries use of AutoValue?

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

No branches or pull requests

3 participants