sat-api-lib
We use this library for creating sat-api using API Gateway. You can use this API to build a standalone API in other frameworks such as Express
Test
$ npm install
$ npm run test
We use nock to record and save API calls to the ElasticSearch instance to speed up tests and freeze results in time.
To change the behaviour of Nock, update NOCK_BACK_MODE
to wild
, dryrun
, record
or lockdown
. More info here.
Default is lockdown
.
Express Example:
processenvES_HOST = 'link-to-my-elasticsearh.com'; var express = ;var api = ;var app = ; app; app; app; var port = processenvPORT || 8000;app;
About
Sat API Lib was made by Development Seed.