@vcsuite/publisher-sdk
v6.0.0
Published
This package is an auto generated API to access the vcPUBLISHERs REST API. It uses the publisher OpenAPI document to generate a web & node SDK.
Readme
@vcsuite/publisher-sdk
This package is an auto generated API to access the vcPUBLISHERs REST API. It uses the publisher OpenAPI document to generate a web & node SDK.
Installation
npm i @vcsuite/publisher-sdk
Usage
import * as api from '@vcsuite/publisher-sdk';
api.setServerUrl('http://localhost:3000');
const { _id: userId, token } = await api.postLogin({
username: 'admin',
password: 'admin123',
});
api.authorize(token);
const newProject = await api.postProject(
{ managerId: userId },
{ name: 'foo', bbox: [0, 0, 1, 1] },
);For more examples, see the integration tests.
