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 Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

676 views 0 4
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot