Ballerina is Next WSO2 Gateway language is released recently. APIM also targeted new ballerina language to use for APIM Gateways. Ballerina language is used as integrating various service and have the ability to implement new logic based on that. Which is also have the more advanced feature than apache synapse we have used earlier. The inbuilt connectors allow connecting to the world via many protocols. Which is a graphical modeling programming language which is easy to implement using graphical components.
Ballerina is an awesome programming language which is easy to use for connecting. The following features help it making API management so easy.
The above feature available in the Ballerina can be used in APIM to make it easy for users to come up with customizable APIs. unlike the previous releases, we encourage users to update ballerina source to introduce new logic and even resources. Because of the composer feature, it let users implement API resources and mediation logic easily. And also which is more reliable and unwilling for errors. Also, it supports most of the Swagger specification. That means we can write a ballerina service equal to a swagger API. Which feature is used by APIM and it can directly generate API by importing swagger definition. Also in composer which enable to design ballerina or swagger API and generate ballerina or swagger equal source.
To get an idea about ballerina visit ballerina official website and try. There is a tryout editor where you can run your own code there and get the result. Also, you can see there is a different resource which contains about the ballerina. Also, you can visit the ballerina blog(https://medium.com/ballerinalang) which have a list of blogs.
APIM 3.0.0 M1 released recently and which used ballerina as a Gateway. So please refer APIM 3.0.0 official document from here
$ cd $gwHome $ bin/ballerina run service deployment/org/wso2/apim/
$ curl -H 'Authorization: Bearer e9352afd-a19d-3d40-9db3-b60e963ae91c' 'http://localhost:9091/hello/' $ Hello World!
Add Comment
Comments (0)