Not able to start ballerina as gateway - wso2

I've downloaded the WSO2-ApiManager-3.0.0-m29 release and I'm trying to invoke an api via the ballerina gateway. When I'm trying to start ballerina with:
bin/ballerina run service services.bsz
It gives me the following error:
interceptor deployment directory
D:Developments/wso2apim-gateway-3.0.0-SNAPSHOT bin../handler doesn’t
exist for server connector ballerina.net.http .
I am new to ballerina. How do I start the ballerina gateway?

From m27 onward, the old gateway is not supported. It now uses the latest micro gateway v3. Download it from here . The documentation on how to invoke an api using micro gateway can be found here.

Related

Does Google API Gateway support web gRPC filtering?

I have Google Run containers serving gRPC services. I'd like to build out a front end using web gRPC on Firebase. I am exploring the usage of Google API Gateway as a proxy between web gRPC and proper gRPC.
I am looking at this guide: https://cloud.google.com/api-gateway/docs/get-started-cloud-run-grpc which doesn't mention web, but I know the gateway is based off Envoy which is used for this purpose quite often. I am wondering if someone has a definitive answer or whether I need to deploy Envoy as a service on Cloud Run by hand to serve as a proxy.
Yes, API Gateway supports gRPC-web. API gateway runs ESP-V2, which is built on top of ESP. The original ESP has added the support for grpc-web which is shown in this GitHub link. And it still exists in ESP V2 as we can confirm from this link
API Gateway allows clients to use HTTP/JSON to communicate with gRPC service. You can look at this link and see if it helps your use case.

Swagger Endpoint not working on AWS Lambda

I created an ASP.NET Core Web API using .NET Core 3.1 and added Swashbuckle Nuget packages to get the Swagger endpoint working. When I run the API locally, the Swagger endpoint works.
Then I deployed the API using AWS Lambda but the issue is the Swagger endpoint doesn't work there. This is the error I get:
Is there a way I can get it working on this Lambda?
A bit late but I've recently stumbled upon a similiar problem.
When you deploy to AWS Lambda, it generates your endpoint with the /Prod stage, while your default Swagger UI initialization looks like u.SwaggerEndpoint("/swagger/v1/swagger.json", "Api") (notice the lack of /Prod at the start). You just have to adjust your UI endpoint so it contains the /Prod stage, so a working solution would look like u.SwaggerEndpoint("/Prod/swagger/v1/swagger.json", "Api")

How to use the AWS api-gateway C++ SDK

I'm using C++ client to invoke AWS API gateway functions. currently I'm using curl to directly send HTTP requests to the APIs. I downloaded the AWS C++ SDK and I can see that there is a "apigateway" folder inside the SDK package.
However, I could not find any information how to use this apigateway SDK - how to invoke API gateway functions and how to integrate with authorization as specified in Amazon Signature V4 documentation:
When you use the AWS Command Line Interface (AWS CLI) or one of the AWS SDKs to make requests to AWS, these tools automatically sign the requests for you with the security credentials you specify when you configure the tools
Is there any information available of how to work with the apigateway SDK?

AWS API Gateway SDK generation error at least one operation

I am trying to generate an SDK for am API Gateway that is already deployed and has 2 stages created in API Gateway console.
However, when I try to create an SDK from it using the API Gateway Console, I encounter the following error.
Generation failed during SETUP stage: Must have at least one operation present in the API
Has anyone encountered this error? I do not see any thing else on the AWS Console.
Try to add a GET method under /, and link it to mock integration should solve this issue.

Web frontend plugin for AWS Elasticsearch service

I am using AWS Elasticsearch service (ES version 5.3). What are the web frontend plugin that can be used with AWS-ES?
The AWS ES supported plugins doesn't seem to support any frontend view.
Also, doesn't seem like Elasticsearch-head plugin can't be installed inside the AWS-ES service. Any suggestion?
Use Kibana. Launch a local instance of it or running in ec2.
Or try cloud.elastic.co which has everything OOTB.
Disclaimer: I'm working at elastic.