The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate rest bindings for stash?

Nathan Coast
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Nathan Coast
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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>

TAGS
AUG Leaders

Atlassian Community Events