Imported Google Group message.
Date:Saturday, 18 April 2015 12:11:18 UTC+1.
Yes you're right, POST should be used in this way against a resource collection (which then provides you with an ID), but in this case since you defining the resource name it applies as a CREATE command and PUT is used to modify that same object. To be honest Tyk doesn't discriminate here.
The JSON looks valid, but it looks like Tyk can't decode the body of the request, EOF means it's not reading the end of the object when decoding. Have you tried with Postman? I just tried the endpoint in my dev environment and it works, so the code is ok, it's got to be an issue with the input.
- show quoted text -