Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

JSON Endpoint Example 1

node v4.9.1
version: 2.0.13
endpointsharetweet
Simple endpoint used in a private project
var endpoint = require("@runkit/runkit/json-endpoint/1.0.0") var request = require("request") // peer dependency endpoint(module.exports, async function(request) { const result = [ { "date": "2023-01-01", "value": 5 }, { "date": "2023-01-05", "value": 6 } ]; return {res: result} })
Loading…

no comments

    sign in to comment