signalk-server
Version:
An implementation of a [Signal K](http://signalk.org) server for boats.
19 lines (18 loc) • 712 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.historyApiRecord = void 0;
const openApi_json_1 = __importDefault(require("./openApi.json"));
exports.historyApiRecord = {
name: 'history',
path: '/signalk/v2/api/history',
apiDoc: openApi_json_1.default
};
const yesterday = new Date();
yesterday.setDate(yesterday.getDate() - 1);
openApi_json_1.default.paths['/values'].get.parameters[0].example =
yesterday.toISOString();
openApi_json_1.default.paths['/values'].get.parameters[1].example =
new Date().toISOString();