Monday, June 2, 2014

API - mocking client for JavaScript applications

APItizer is a library that allows you to mock APIs for browser applications with JSON schema. JSON schema is usually used to validate responses from APIs, but APItizer adds the ability to generate data from the same structure.

When developing single page apps, it is beneficial to develop frontend and backend in parallel. To achieve that, you need to mock the API. CanJS implements this elegantly with the can.fixture plugin (used by APItizer). can.fixture intercepts AJAX calls and returns response defined by the fixtures.

APItizer goes a step further, and instead of manually defining your fixtures they are generated from the JSON schema.

check out the git here

Leave a Reply

All Tech News IN © 2011 & Main Blogger .