wso2-am

wso2 API Manager role permissions to delete an API

我的未来我决定 提交于 2020-01-05 07:07:35
问题 I have set a Role permission to allow a user to create an API in the API Publisher. I called the role "Creator". I set permissions for Manager->API->Create. Is there a permission setting to prevent this role from Deleting/Removing a created API (theirs or someone else's)? 回答1: Currently whoever have the Create permission can delete the API, if that API don't have any subscription. Do you bother an API from deleting it when it doesn't have any subscription? If an API have subscriptions, then

unable to start ballerina as gateway

强颜欢笑 提交于 2020-01-05 04:41:30
问题 I've downloaded the WSO2-ApiManager-3.0.0-m2 release and I'm trying to invoke an api via the ballerina gateway(version 0.88). When I'm trying to start ballerina with: bin/ballerina run service deployment/org/wso2/apim/ it gives me ballerina: no such file or directory: deployment/org/wso2/apim If I manually create that directory in $gwHome I get ballerina: no bal files in the package: deployment/org/wso2/apim How do I start the ballerina gateway? 回答1: WSO2-ApiManager-3.0.0-m2 works with

Importing/Migrating an API from Local Repo/ Environment to Other Environment

不打扰是莪最后的温柔 提交于 2020-01-05 04:18:11
问题 I tried to export/import an API from one environment to other environment, where as Exporting is working fine but facing issues while Importing an API from Local/Environment I have used api-import-export-2.6.0.war with APIM-2.6.0, Command used to Import api: apimcli import-api -f G:/Petstore_1.0.0.zip -e dev Error importing API Reason: C:\Users\RAVIKU~1\AppData\Local\Temp\apim130994779\Petstore_1.0.0\Meta-information\api was not found as a YAML or JSON Exit status 1 回答1: Did you try giving

WSO2 analytics datasource

岁酱吖の 提交于 2020-01-04 10:59:15
问题 I was trying to explore the analytics event & summary datasource. I have installed a H2 client and found strange tables names ( ANX___7LKA5XV8_ !!) Why using these names, I was expecting a more clear names (names like the ones used in the external DB,the one partaged with the API manager)? And is there any documentation about these tables? Thanks 回答1: These tables represent the data that you've set to be persisted on the WSO2 Analytics product. For each stream definition that you have, there

WSO2 API Manager - Setting 'CacheId' when clustering with SQL Server

时间秒杀一切 提交于 2020-01-04 06:08:33
问题 I'm clustering WSO2 API Manager (v1.10.0) across three servers (Gateway + Publisher/Store + Key Store) by following this guide: https://docs.wso2.com/display/CLUSTER44x/Clustering+API+Manager+1.10.0 I am on Step 11a of the 'Installing and configuring the databases' section. This states the following: To give the Publisher and Store components access to the registry database, open the /repository/conf/registry.xml file in each of these two components and configure them as follows: a. In the

wso2 API manager for authorsation and authentication of a web application

 ̄綄美尐妖づ 提交于 2020-01-03 03:30:13
问题 I have a web app where front end layer has a angular based UI.It has both public pages and other private pages which are accessible to logged in users and it depends on roles of the logged in users as well My server based application is a java based rest service api . How can i use wso2 for handle user authenticaiton and role based authorsation.i would like to have an additional layer of api security depending on the role of the user as well. can someone explain the best architecture for this

WSO2 API PayloadFactory mediator XML array to JSON array

北城余情 提交于 2020-01-03 03:29:10
问题 I am trying to build a Proxy between a client and a server using WSO2-AM. The ultimate goal is changing the content of the response the server sends to a format that the client understands. Therefore I wrote a custom mediator using a PayloadFactory. This works OK when the server sends just 1 element, but it can be possible that the servers sends multiple elements. I am trying to use an iterator to iterate all the elements and aplying a payloadfactory to each element, but this only returns the

WSO2 API Manager convert SOAP to REST

浪尽此生 提交于 2020-01-02 07:48:46
问题 Is it possible to publish a SOAP service as a REST API directly in the API manager? Is it possible to convert the call and expose REST to end user while calling the SOAP? If possible, how? Thanks. 回答1: This might be what you are looking for. This has can be done as mentioned below. If you want to expose multiple operations using the same API in a RESTful manner you can modify the sequence in the post using the following guidelines. 1) Create a request URI to map to each operation in your

WSO2 API Manager CORS

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-29 01:38:16
问题 I'd like to enable CORS on my WSO2 API Manager instance for all endpoints. I've been through the documentation (which is great) and it suggests altering the repository/conf/api-manager.xml file as there is a CORS configuration node within it (below). <!--Configuration to enable/disable sending CORS headers in the Gateway response and define the Access-Control-Allow-Origin header value.--> <CORSConfiguration> <!--Configuration to enable/disable sending CORS headers from the Gateway--> <Enabled

WSO2 API Manager compatibility with Python

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-25 15:42:55
问题 I want to know if WSO2 API Manager is compatible with Python and PHP based restful services or not? I have several webservices which are developed on JavaEE, Python and PHP. Except JavaEE, no other platform is communicating with WSO2. On Python, I don't receive any RAW payload in my POST requests from WSO2. These services are working fine and can communicate with them via REST Console. Please see my other STACKOVERFLOW POST for details. I need to know how I can consume Python services just