1.0.7 • Published 6 years ago
mkm-service-formauthoring v1.0.7
Introduction
Service to support retrieving and creating file resources
Getting Started
Install via npm
npm install mkm-service-resourceBuild and Test
Run build
npm run buildRun tests
npm testUsage
Example usage:
import { ResourceService } from 'mkm-service-resource';
const resourceServiceConfig = {
apiUrl: 'http://localhost:59299/api/',
authToken: 'dHSD6bsdds....',
roleToken: '45HS5645bd....'
};
const resourceService = new ResourceService(resourceServiceConfig);Methods
- createResource(resource)
- createUrlResource(resource)
- getResource(id)
getUrlResource(id)