Hi all,
I have to build an API to insert artifacts to the Greg (for the Publisher).
I got myself a registry instance and I want to know if there is an API to
insert JSON document to the Greg with the put method. I am referring to the
below code available in the samples.
gadget =
<metadata xmlns="http://www.wso2.org/governance/metadata">
<overview>
<provider>{provider}</provider>
<name>{name}</name>
<version>{version}</version>
<url>{url}</url>
<status>CREATED</status>
</overview>
<images>
<thumbnail>{thumbnails[thumbIndex]}</thumbnail>
<banner>{thumbnails[thumbIndex]}</banner>
</images>
</metadata>;
reg.put(path, {
mediaType: 'application/vnd.wso2-gadget+xml',
content: gadget.toXMLString()
});
Thank you,
--
Chan (Dulitha Wijewantha)
Software Engineer - Mobile Development
WSO2Mobile
Lean.Enterprise.Mobileware
* ~Email [email protected]*
* ~Mobile +94712112165*
* ~Website dulithawijewantha.com
*
* ~Blog blog.dulithawijewantha.com<http://dulichan.github.io/chan/>
*
* ~Twitter @dulitharw <https://twitter.com/dulitharw>*
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture