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" ]
    }
});

Package Sidebar

Install

npm i angular-jsf

Weekly Downloads

28

Version

0.1.1

License

MIT

Last publish

Collaborators

  • ducin