FormidableLabs / aws-lambda-dogs

AWS Lambda REST API for our beloved doggos.
MIT License
3 stars 0 forks source link

BUG: query fails when passing a valid API key #10

Open keithcom opened 4 years ago

keithcom commented 4 years ago

In the sandbox env, the following query succeeds: curl -X GET "https://30lxcuxu8d.execute-api.us-east-1.amazonaws.com/sandbox/dogs/isl15_ks84"

But it returns an empty object if you pass a valid API key value in the headers: curl -X GET "https://30lxcuxu8d.execute-api.us-east-1.amazonaws.com/sandbox/dogs/isl15_ks84" --header "x-dogs-api-key: <sandbox key from 1Password>"

iandvt commented 3 years ago

@ryan-roemer && @kevinmstephens - This PR will expose a function that can be called on lambda start to persist/update the default data in S3