@vcsuite/publisher-sdk v5.3.4
@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. For usage with
node, you must have node-fetch
installed as a dependency.
Installation
For use in a web app: npm i @vcsuite/publisher-sdk
. For use in a node app: npm i node-fetch @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.
7 days ago
2 months ago
2 months ago
3 months ago
3 months ago
4 months ago
4 months ago
4 months ago
4 months ago
5 months ago
6 months ago
6 months ago
7 months ago
7 months ago
7 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
9 months ago
9 months ago
9 months ago
11 months ago
12 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago