IBM / ibm-cloud-functions-serverless-apis

Create a serverless, event-driven application with Apache OpenWhisk on IBM Cloud Functions that executes code in response to HTTP REST API calls.
https://developer.ibm.com/code/patterns/build-serverless-api-handlers/
Apache License 2.0
31 stars 40 forks source link

Cat id varies #35

Closed kostickm closed 7 years ago

kostickm commented 7 years ago

Running through the tutorial I noticed that my cat id=1 always returned a blank result. When adding a new cat entry the id varied.

I am not sure if there are clean up steps that would ensure the user is always using id=1, or if it should be stated that the user make note of the id when they do a POST.

krook commented 7 years ago

Thanks Megan. Yes, this is somewhat non-deterministic. I'll make it clear in the docs that it's not necessarily an auto increment starting from 1.