Vitor Darela
Vitor Darela

Reputation: 142

WSO2 Governance Registry Json Schema

I'm facing some problems regarding the publication GREG using Swagger. I wonder if you have any way to make GREG recognize the JSON Schema, because I saw that it only recognizes XML Schema which ends up forcing me to use WADL.

Upvotes: 3

Views: 309

Answers (2)

tk_
tk_

Reputation: 17418

I presume you are using G-Reg 4 series which does not have Swagger support. However, in G-Reg 5 series WSO2 have enabled this and you can find the latest version which is G-Reg 5.3.0 from here. Other than that, new G-Reg offers you some more very useful features to enhance SOA governance capabilities.

Adding a SOAP service using a Swagger

Adding the Swagger file

To enable json schema you have to create a handler. Please refer below sample media type handlers available in greg(carbon-registry)

WSDLMediaTypeHandler.java

SwaggerMediaTypeHandler.java

WADLMediaTypeHandler.java

Please find this useful article which will teach you how to create a simple handler.

Upvotes: 4

madawa
madawa

Reputation: 486

You can find information regarding the support given for swagger in WSO2 Governance Registry in the following documentation.

[1] - https://docs.wso2.com/display/Governance530/Adding+a+REST+Service#AddingaRESTService-AddingaSOAPserviceusingaSwagger

[2] - https://docs.wso2.com/display/Governance530/Invoking+a+REST+Service+Using+the+In-built+Swagger+UI#InvokingaRESTServiceUsingtheIn-builtSwaggerUI-AddingtheSwaggerfile

Note: As mentioned in @thusharaK s answer, these capabilities are available in the latest version of the product.

Upvotes: 0

Related Questions