How to generate rest bindings for stash?

Nathan Coast July 14, 2014

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

0 votes
Nathan Coast July 14, 2014

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
TAGS
AUG Leaders

Atlassian Community Events