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 widget could not be displayed.

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
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,304 views 8 11
Read article

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