Skip to content
AngularJS mock factory! Generating semantic mocks on the fly, basing on JSON-Schema-faker
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
logo
.gitignore
CNAME
LICENSE
README.md
angular-jsf.js
bower.json
index.html
mock.js
package.json
schema.js
styles.css
ui.js

README.md

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" ]
    }
});
You can’t perform that action at this time.