How to import/export Api from wso2 Api Manager? - wso2

I am unable to import/export Api from wso2 Api manager.. so can have alternative ways and any tool ?
I have downloaded one API (as api.zip file), which I created in WSO2 API Manager from the Administation console. Is there a way to import this API in different WSO2 instance?

You can use the archive created to import APIs to an API Manager instance. You can have a look on our API import/export tool here

Related

How to integrate apim with wso2 micro intergrator

Integrate apim with micro integator
How to integrate apim with micro integator without using integration studio
If you have already created a back-end API, then you don't need Micro-integrator, and you can directly expose that API through the API Manager. The API Manager can add schema validation as well.
If you need to implement additional message mediations, message transformations, and service orchestration on top of your existing back-end services, then you can do that using Micro-integrator and expose that as an API using API Manager.
Please see - https://apim.docs.wso2.com/en/latest/get-started/integration-quick-start-guide/
Micro Integrator is already embedded with the API Manager 4.1 .If you need to add some transformations to your API that you didn't found in the API Manger ,then you have to do it in the Integration Studio and then publish it to the Publisher Portal using service catalog feature.
You can follow this documentation
https://apim.docs.wso2.com/en/latest/tutorials/integration-tutorials/service-catalog-tutorial/
Integrating API Manager and Micro-integrator will be done via the Service Catalog by adding the following configurations in MI deployment .toml.
[[service_catalog]]
apim_host = "https://localhost:9443"
enable = true
username = "admin"
password = "admin"
Once you have created the integration service and deployed it in the Micro-integrator, you only need to start the two servers (APIM server and the Micro-integrator server).
More information - https://apim.docs.wso2.com/en/latest/integrate/develop/working-with-service-catalog/

How to programatically create the users and roles in WSO2 API manager

I am using wso2 API manager 3.1.0 I want to create the users and roles programatically. Are there any REST APIs available for the carbon console of the APIM to achieve this? I referred to this document
https://apim.docs.wso2.com/en/next/develop/product-apis/restful-apis/ which has only details of the
REST APIs available for API publisher and devportal mainly.
You can use RemoteUserStoreManagerService SOAP service.
See https://docs.wso2.com/display/IS580/Managing+Users+and+Roles+with+APIs

WSO2 API Manager with ESB

In API Manager, I pass APIs in API Manager with respective services, also after reading documentacion of API Manager version 3.0.0 (https://apim.docs.wso2.com/en/latest/GettingStarted/overview/), I know in Publisher there exists a ESB, also in my case I work with this cases I think is part of ESB:
WSO2 OAuth Mediator(JAR).
File JSON by WSO2 OAuth Mediator, with endpoints referents to API's I'm cosuming.
In publisher page I add Custom Policies in request or response.
But existing WSO2 Enterprise Integrator (EI) version 6.6.0, this component have a ESB.
My questions are:
In my case, really I work with ESB?
How to integrate API Manager with EI?
WSO2 API Manager gateway is built on top of Synapse engine which is the same engine used in WSO2 EI (ESB). Using API Manager you can do simple mediation. But if you want to do any complex mediation, then you should use EI (ESB) along with API Manager.

Is it possible to call WSO2 ESB from Swagger console in WSO2 API Store?

I want to change Gateway in WSO2 API Manager to point a local WSO2 ESB instance.
My question is: Is it possible to access to WSO2 ESB from Swagger console in API Manager instance?
To Answer your question in the title, Yes it is possible to call an API created in ESB if you have created an API using the ESB endpoint within WSO2 API manager. Please find more information on how to create an API using API manager in this document [1]. Once you have created an API within API manager you can invoke this using swagger console as explained at [2].
[1] https://docs.wso2.com/display/AM1100/Create+and+Publish+an+API
[2] https://docs.wso2.com/display/AM1100/Invoke+an+API+using+the+Integrated+API+Console
Cheers,
Pubudu.

WSO2 API Manager + Set Prioritization

How can we implement Message mediation level prioritization in WSO2 API manager. Since WSO2 ESB is embedded in API manager, Can i enable this capability in API manager itself. I understand that it is available in seperate WSO2 ESB. I do not want to have seperate EB layer for it.
Even though it is recommended to seperate out API Management and Mediation layer, you can still run ESB (mediation)activities within the API Manager. If you are familiar with sequences in ESB the same sequences and API's are used to define the API's that are exposed in the API Manager. You can directly access the source of the API's that are created from the management console of the API Manager (http://{IP}:{PORT}/carbon). Here you will find a Service Bus section on the left hand navigation section under which there is a 'sourceview'. From there you can access the API definitions and add the priority mediator[1].
[1] https://docs.wso2.com/display/ESB481/Prioritizing+Messages