Synchronous RestAPI with AWS API gateway and express stepfunctions - aws-api-gateway

i am not able to invoke express stepfunction using restapi apigateway action type with StartSyncExecution
thanks in advance

Only HTTP API is currently supported, in order to invoke a step function using StartSyncExecution, you need to use the HTTP API.
Edit: It is now supported per the document in the comment below.

Related

REST API calls for setting namespace preferences and Program preferences

Can the namespace preferences and program preferences be set via REST API calls? If yes, what is the syntax for it?
Generally in Cloud Data Fusion, when we intend to perform the action on GCP side, like create/delete/restart etc. instance, it's feasible to use domestic Google Cloud API, giving the opportunity to interact with a service endpoint via JSON/HTTP calls interface as described in Google Cloud API design document.
Dedicated to Data Fusion you can follow the Cloud Data Fusion REST API reference document, nicely explaining the methods for composing REST API HTTP calls to manage Data Fusion instances, moreover every method description from the documentation contains Google API Explorer sub-panel, to get handy experience building JSON request on a live data.
Said above, I assume your initial question is related more to CDAP REST API, as it includes the methods for pure CDAP instance metadata/namespaces/application configuration.
From the user perspective your workflow might be the following:
Identify the CDAP API endpoint as explained in this guideline;
Compose an HTTP PUT/GET request relevant to Data Fusion
Namespace/Metadata/Preferences/Configuration
object via CDAP RESTful API.
Yes of course! You have two methods.
The first method is creating it from the platform. Follow the steps below:
Open your data fusion instance
Go to System Admin => Configuration => Make HTTP calls
To create a namespace, submit an HTTP PUT request:
PUT /v3/namespaces/<namespace-id>
Link of CDAP: CDAP
The second method is using terraform.

SugarCRM get_entry_list REST API call using REST client or POSTMAN

I am going thru the documentation and examples related to calling REST APIs for SugarCRM using Chrome REST client or PostMan but most of the examples are PHP and I am not finding a good way to find a proper request and other parameters to be mentioned so that I can get the successful response from the API. I was trying get_entry_list. Can someone please help by providing a working REST API request for this API which I can run on REST client or postman?
I also would like to know if I want to build a SugarCRM connector for my application, which set of APIs I should use? Should I go with REST or SOAP and any supporting arguments to choose one over another?
Thanks

API call from post trigger of DocumentDB

I need to make an API call from post trigger of Azure DocumentDB.
I tried calling external APIs - but found that such calls are blocked in DocumentDB. If I host an API on Azure's same account will that API is allowed to be called from the post trigger ? If not what can be the alternatives.
Server-side code runs in a sandboxed environment and cannot make external calls. You can, instead, make the same call from your client after your request is acknowledged by the service (indicating your post-trigger succeeded/failed).
DocumentDB now supports a private preview of server side change feed. Using this model you can pull down all the changes from a DocumentDB collection and execute custom logic to perform desired post processing like invoking web services.
Please email askdocdb at Microsoft dot com if you want to learn more about this pattern.
In server-side scripts you can use all JavaScript functionality and CRUD/Query API for DocumentDB. Other "hosting" API is not exposed. For instance, JavaScript by itself doesn't have built-in support for file system or web API, functionality like needs to be provided by host (IE, cscript, etc). DocumentDB doesn't provide additional API other than CRUD/Query API.

How to trigger a ngrok get request in AWS API gateway and Lambda function?

I'm trying to access some GET requests data from a personal ngrok webpage (that i created for testing purposes) by using the aws api gateway.
When i'm using the integration request i just can't get the data from the ngrok web page.
What i am trying to do is to catch some data from my ngrok page (by using the Api gateway) and then save them in dynamodb via a lambda function. I read the aws docs but i can find something that explains this process.
Thanks for helping.
One way is, you can have one API GW method that uses a Lambda function as integration endpoint. The Lambda function could get the data from ngrok page and save it to Dynamo.
The other way is, you can have one API GW method with http integration pointing to your ngrok endpoint, and another API GW method with Lambda integration pointing to your Lambda function that puts the data into Dynamo. The caller should call the first method, and then call the second method with the output of the first method. So, the first option is a better one.

AWS API Gateway: How to insert logs of each API call with output?

I have a REST API created in AWS API Gateway with backend implemented using AWS Lambda functions. There are nearly 50 API calls and underlying lambda functions. Now I want to store each of the API call url, params and request body along with error/response to some log table in our database. Is there any way I can accomplish this without modifying the code of each and every lambda function for the same. I have a custom authorizer lambda function on most of the API calls. So, I thought about writing the logic to insert to DB in that function. But the problem is that I cannot get access to the output in the authorizer function. Is there any other way where I can access the input and output both ?
The custom authorizer function is intended to make authorization decisions only and is not supported for this use-case.
Please see response in AWS API Gateway: Is it possible to add source IP address in each API method?
Thanks,
Ryan