Skip to content

EXPORTER-DEV/fsp-api-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fsp-api-client

API client package for personal project infrastructure

Usage example

Install first

$ npm i https://github.com/EXPORTER-DEV/fsp-api-client

Then construct ApiModule with credentials to make API calls

import { ApiModule } from 'fsp-api-client';
import { RecordSourceEnum } from 'fsp-api-client/lib/modules/api/models/record.model';


const api = new ApiModule({
	host: 'localhost',
	port: 3000,
	username: 'test',
	password: 'test',
});

api.resolveAndCreate('https://google.com/', {
	creatorId: '1a2b3c',
	source: RecordSourceEnum.external,
	description: '-',
}).then((r) => console.log(r));

About

Custom API Client package for personal project infrastructure

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors