npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

angular-jsf

0.1.1 • Public • Published

angular-jsf logo

angular-jsf

NPM version

angular-jsf combines built-in angular $httpBackend service with JSON-Schema-faker massive mock data generator. It provides an easy to use interface for defining RESTful endpoints, such as this one:

jsfRegisterMock({
    name: 'User Item',
    url: /\/users\/(\d+)/,
    method: 'GET',
    responseSchema: {
        "type": "object",
        "properties": {
            "name": {
                "type": "string",
                "faker": "name.findName"
            }
        },
        "required": [ "name" ]
    }
});

install

npm i angular-jsf

Downloadsweekly downloads

3

version

0.1.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability