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

Generate marathon-python from raml #86

Closed
solarkennedy opened this issue Feb 11, 2016 · 3 comments
Closed

Generate marathon-python from raml #86

solarkennedy opened this issue Feb 11, 2016 · 3 comments

Comments

@solarkennedy
Copy link
Contributor

Now that marathon has a machine-readable api spec, we should be able to autogenerate this library:

https://github.com/mesosphere/marathon/tree/7590fb22f0a39c8cdd037c8bdab8efef98608c50/docs/docs/rest-api/public/api/v2

https://www.npmjs.com/package/raml-python

Woot?

@solarkennedy
Copy link
Contributor Author

Well I experimented with this a bit. The results are.... a bit disappointing:
http://pastebin.com/uyeNLtGb

cc @jnb @Rob-Johnson @EvanKrall

In the words of the generated client lib, OMG WE SUCK indeed.

@solarkennedy
Copy link
Contributor Author

It looks like RAML -> python is a bit immature....

But! What if we convert RAML -> Swagger and then generate a library!?!

I've got some experimental code up here:
https://github.com/solarkennedy/marathon-python-generated

I'm not sure I've I'm using this right. I can make an API client and do calls, but they all return None for some reason....

@solarkennedy
Copy link
Contributor Author

I'm going to close this for now. It was a cool experiment but the tooling is too immature for now.

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