UNPKG

@axiomhq/js

Version:

The official javascript bindings for the Axiom API

18 lines (15 loc) 741 B
'use strict'; var httpClient = require('./httpClient.cjs'); exports.annotations = void 0; (function (annotations) { class Service extends httpClient.default { localPath = "/v2/annotations"; list = (req) => this.client.get(this.localPath, {}, req); get = (id) => this.client.get(this.localPath + "/" + id); create = (req) => this.client.post(this.localPath, { body: JSON.stringify(req) }); update = (id, req) => this.client.put(this.localPath + "/" + id, { body: JSON.stringify(req) }); delete = (id) => this.client.delete(this.localPath + "/" + id); } annotations.Service = Service; })(exports.annotations || (exports.annotations = {})); //# sourceMappingURL=annotations.cjs.map