@vect.io/api.connect.change.client.binding.node
TypeScript icon, indicating that this package has built-in type declarations

0.3.3 • Public • Published

Vect Change API Node Client

The Vect Change API enables you to manage your Changes and the Parameters within them with JSON Patches RFC, powered by Connect.

We recommend reading the Vect Change API Docs.

Getting Started

Install

npm install @vect.io/api.connect.change.client.binding.node

Usage

import { createClient } from '@vect.io/api.connect.change.client.binding.node'
const client = createClient({ auth: process.env.VECT_ACCESS_KEY });
await client.changeAction({
  patches: [{ path: 'example.json', operation: 'ADD', content: 'hello world!' }],
  repository: { path: 'acme-com/acme-com-2024v1' },
});

More

You can also use plain curl if you prefer:

curl 'https://change.connect.api.vect.io/vect.change.v1.ChangeApiService/ChangeAction' \
-H "Authorization: Bearer <access-key>" -H "Content-type: application/json" \
--data '{
  "patches": [{ "path": "example.json", "operation": "ADD", "content": "hello world!" }],
  "repository": { "path": "acme-com/acme-com-2024v1" }
}'

Copyrighted by Vect.

Readme

Keywords

Package Sidebar

Install

npm i @vect.io/api.connect.change.client.binding.node

Weekly Downloads

4

Version

0.3.3

License

none

Unpacked Size

49 kB

Total Files

6

Last publish

Collaborators

  • hadarvect
  • ittaytoledoatvect
  • adam-vect