2

Just like WS-Policies, Swagger , WSDLs, WADLs etc.Can APIs be added as a custom asset in the G-reg?

Community
  • 1
  • 1
  • Is it possible to improve you question by proving a sample API content? Then we can provide you a correct answer. Basically, G-Reg can store any text based artifact type out of the box. – tk_ Aug 19 '16 at 04:44
  • @vanya-kashyap if you have RXT based representation for the API assets, you can directly deploy into G-Reg. – Chandana Aug 22 '16 at 08:24

1 Answers1

2

As far as I understand you need to introduce a new content type artifact(WSDL, WADL, Policy and Schemas are known as content type artifacts) to G-Reg. To upload such artifact programmatically you need to write some custom code which is called handlers and extensions,

Handlers

Please find this blog post which explains a basic handler for your requirement. Other than that please refer below sample media type handlers available in G-Reg(carbon-registry)

WSDLMediaTypeHandler.java

SwaggerMediaTypeHandler.java

WADLMediaTypeHandler.java

GC Eextensions

If you're introducing a content type artifact it is must write a publisher and store extensions to get it work in pub/store. However, users can upload such artifacts in admin/mgt console just by deploying the handler correctly.

Please find this question to get an idea of the extension creation.

Community
  • 1
  • 1
tk_
  • 16,415
  • 8
  • 80
  • 90