I'm using GREG 5.4.0 and want to upload a simple word/text/pdf document as an asset. I tried uncommenting the document asset as described here but the asset doesn't show as an option in the publisher.
How do I upload a simple text document to GREG?
You need to create below stuff,
Create a registry handler.
SOLR indexer for PDF files.
RXT - content type rxt such as WSDL, WADL
Publisher extension.
Store extension.(if needed)
Related
I have another question on WSO2 APIM 2.6.0
I am working in one scenario where I have to store one file which is in json in gov registry. I can do that manually from the dashboard but I am looking for a way to perform that using API or in automated way.
Research done till now
1) Checking on the link which ideally enable WSO2 ESB to maintain a remote registry. But I am unable to get how the registry DB will be shared between the applications (APIM and ESB).
Like, ESB has property where we can store the data in registry directly from proxy or an API and also enables us to retrieve them accordingly.
But how do we do in APIM to store the file with json content.
Any suggestions here.
Thanks
do you know where is save settings about datasource from wso2 EI?
i create datasource on GUI in wso2 but I can't find record on server.
Thanks
You can find the dataservice file under,
EI-Home/repository/deployment/server/dataservices
Datasources added from Management Console will be stored in registry,
/_system/config/repository/components/org.wso2.carbon.ndatasource/
The data sources added from the Management console UI is saved to the registry under /_system/config/repository/components/org.wso2.carbon.ndatasource registry path. You can navigate to the registry path from management console UI and you can download the data source definition created from there.
registry path
If you need to add data source definitions from the file system you can create a file with format {any_name}-datasources.xml and put the data source configurations and save it under {SERVER_HOME}/conf/datasources
Now I want to use data mapper mediator in WSO2 ei console, and it requires me to select some Configuration Registry files:
but I don't know how to register these configuration, in the WSO2 EI documentation I could hardly find how to register, while I only found that I can create a ESB solution project and package that to a .car file, then deploy it.
But I don't want to do this, so I need help.
I believe what you're looking for is in this link.
Mapping Configuration: The file, which contains the script file that is used to execute the mapping. You need to create a mapping
configuration file using the Dev Studio-based Tooling plugin, and
store it either in the Configuration Registry or Governance Registry,
to select and upload it from here.
Let me know if it worked or need more help.
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.
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.
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.
I have some questions regarding WSO2 API manager swagger integration.
1) I want to add a model schema to the swagger API, for this, I have edited swagger doc and added model to it. But it is not showing the model schema in swagger console.
2) Can i upgrade swagger to a latest version ??
3) Where the swagger json files will be saved when we create an API in API manager ??
I comment your questions:
1) I have the same issue :-( Did you find the solution at last?
2) AFAIK, you can't update a single component of a WSO2 product. It's a combo. APIMgr uses swagger 1.1 version. I think is too old and must be updateable, but..
3) You can find this .json files entering by http:// apimanagerserver:9443[+offset]/carbon -> Resources -> Browse and navigate to: /_system/governance/apimgt/applicationdata/api-docs/YourAPIName-1.0-admin/api-doc.json