Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
OpenWhisk web action that returns the latest ten entries to the readings database
function action(args) {
var request = require('sync-request');
var res = request(
var readings = JSON.parse(res.getBody().toString()) => elem.doc.reading);
return {
body: readings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment