how to Put json data using Amazon API gateway to Kinesis stream

Question:

I setup an API using amazon api gateway and want to put data into Kinesis streams. Amazon API gateway has inbuilt support for it. But when I try to put JSON data it gives “Serialization exception”.

After this I make a put request

The API gives 200 ok along with the serialization exception. It is stated in put request the “Data” key in body variable will accept only “blob” type. Now I also tried converting JSON data to BLOB but no luck at all.

I am not able to figure out what I am doing wrong. Please help.

Answer:

There’s a walkthrough of how to set up API Gateway in front of Kinesis in the official AWS docs at http://docs.aws.amazon.com/apigateway/latest/developerguide/integrating-api-with-aws-services-kinesis.html

Leave a Reply