Posts

Showing posts from November, 2014

Troubleshooting Swagger issues in WSO2 API Manager

Image
WSO2 API Manager provides this functionality through the integration of Swagger ( https://developers.helloreverb.com/swagger ). Swagger-based interactive documentation allows you to try out APIs from the documentation itself which is available as the "API Console" in API Store.  There are certain requirements that need to be satisfied in order to swagger Try-it functionality to work. First requirement is to enable CORS in API Mananger Store. This documentation describes how that should be done.  But most of them face many issues in getting the swagger Try-it into work. So this blog post describes common issues faced by users with Swagger and how to troubleshoot them.   Issue-1 API Console keeps on loading the response for ever as below. Cause -1 API resource not supporting OPTIONS HTTP verb.  Solution Add OPTIONS HTTP verb for API resources as below. Then Save the API and Try again.  Cause -2  Backend endpoint not supporting

Customizing workflows in WSO2 API Manager

Image
In WSO2 API Manager, Workflow extensions allow you to attach a custom workflow to various operations in the API Manager for User Signup Application Creation Application Registration Subscription By default, the API Manager workflows have Simple Workflow Executor engaged in them. The Simple Workflow Executor carries out an operation without any intervention by a workflow admin. For example, when the user creates an application, the Simple Workflow Executor allows the application to be created without the need for an admin to approve the creation process. In order to enforce intervention by a workflow admin, you can engage the WS Workflow Executor . It invokes an external Web service when executing a workflow and the process completes based on the output of the Web service. For example, when the user creates an application, the request goes into an intermediary state where it remains until authorized by a workflow admin. You can try out the default wor