How to generate rest bindings for stash?

I've managed to generate the client code using org.jvnet.ws.wadl:wadl-client-plugin maven plugin with some tips from this related question:

https://answers.atlassian.com/questions/224371/stash-rest-wadl

However there doesn't seem to be any schema or object model definition within the wadl files for the response content.

https://developer.atlassian.com/static/rest/stash/2.12.2/stash-rest.html

https://developer.atlassian.com/static/rest/stash/2.12.2/stash-rest.wadl

Other atlassian rest services have an associated xsd schema definition, there doesn't seem to be one for stash. What is the recommended approach for generating Java POJOs and their related mappings for the responses from the rest-api?

e.g.

{ "size": 1, "limit": 25, "isLastPage": true, "values": [ { "key": "PRJ", "id": 1, "name": "My Cool Project", "description": "The description for my cool project.", "public": true, "type": "NORMAL", "isPersonal": false, "link": { "url": "http://link/to/project", "rel": "self" }, "links": { "self": [ { "href": "http://link/to/project" } ] } } ], "start": 0, "filter": null }

1 answer

This element exists in the wadl, however I'm unable to locate the schema.xsd file

<ns2:grammars><ns2:include href="schema.xsd"/></ns2:grammars>

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

135 views 17 6
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you