FakeRest - Patch fetch/XMLHttpRequest to fake a REST API server in the browser, based on JSON data.

  •        54

Intercept AJAX calls to fake a REST server based on JSON data. Use it on top of Sinon.js (for XMLHTTPRequest) or fetch-mock (for fetch) to test JavaScript REST clients on the browser side (e.g. single page apps) without a server. FakeRest uses a standard REST flavor, described below.

https://github.com/marmelab/FakeRest

Dependencies:

babel-runtime : ^6.22.0

Tags
Implementation
License
Platform

   




Related Projects

admin-on-rest - A frontend framework for building admin SPAs on top of REST services, using React and Material Design

  •    Javascript

A frontend Framework for building admin applications running in the browser on top of REST services, using ES6, React and Material Design. Open sourced and maintained by marmelab. Admin-on-rest 1.x is in maintenance mode. Version 2.x lives at https://github.com/marmelab/react-admin.

react-admin - A frontend Framework for building admin applications running in the browser on top of REST/GraphQL APIs, using ES6, React and Material Design

  •    Javascript

A frontend Framework for building admin applications running in the browser on top of REST/GraphQL APIs, using ES6, React and Material Design. Previously named admin-on-rest. Open sourced and maintained by marmelab. Bugfix PRs that don't break BC should be made against master. All other PRs (new features, bugfix with BC break) should be made against next.

admin-on-rest-demo - Source of the admin-on-rest react

  •    Javascript

This is a demo of the admin-on-rest library for React.js. It creates a working administration for a fake poster shop named Posters Galore. You can test it online at http://marmelab.com/admin-on-rest-demo. Admin-on-rest usually requires a REST server to provide data. In this demo however, the REST server is simulated by the browser (using FakeRest). You can see the source data in public/data.js.

node-fetch - A light-weight module that brings window.fetch to Node.js

  •    Javascript

Instead of implementing XMLHttpRequest in Node.js to run browser-specific Fetch polyfill, why not go from native http to fetch API directly? Hence node-fetch, minimal code for a window.fetch compatible API on Node.js runtime.See Matt Andrews' isomorphic-fetch or Leonardo Quixada's cross-fetch for isomorphic usage (exports node-fetch for server-side, whatwg-fetch for client-side).

Kakapo.js - :bird: Next generation mocking framework in Javascript

  •    Javascript

Kakapo its a full featured http mocking library, he allows you to entirely replicate your backend logic in simple and declaritive way directly in the browser. This way you can easily prototype and develop the whole Application without backend and just deactivate Kakapo when you go production. In order to achieve that Kakapo gives you a set of utilities like Routing, Database, Response, Request and so on... Use the kakapo router to declare two custom routes and returning custom data.


ng-admin-demo - Source of the ng-admin angular

  •    Javascript

This is a demo of the ng-admin module for Angular.js. It creates a working administration for a fake poster shop named Posters Galore. You can test it online at http://marmelab.com/ng-admin-demo. ng-admin usually requires a REST server to provide data. In this demo however, the REST server is simulated by the browser (using FakeRest). You can see the source data in data.js.

fetch-mock - Mock http requests made using fetch

  •    Javascript

Mock http requests made using fetch (or isomorphic-fetch)

mockbin - Mock, Test & Track HTTP Requests and Responses.

  •    Javascript

Mockbin is used internally and maintained by Mashape, who also maintain the open-source API Gateway Kong. read more on Installation.

json-server - Get a full fake REST API with zero coding in less than 30 seconds

  •    Javascript

JSON Server is a full fake REST API with zero coding in less than 30 seconds Created with <3 for front-end developers who need a quick back-end for prototyping and mocking.

httplive - HTTP Request & Response Service, Mock HTTP

  •    Go

The HttpLive is a tool for API designers, Proxy, mobile and web application developers to develop and test their applications faster without being dependent on any server or backend applications. HttpLive has a built-in user interface. Therefore, you can do all the configurations you need on this UI, and with dynamic URL (Routing) definitions you can specify your own JSON return types for your applications.

mock-fs - Configurable mock for the fs module

  •    Javascript

The mock-fs module allows Node's built-in fs module to be backed temporarily by an in-memory, mock file system. This lets you run tests against a set of mock files and directories instead of lugging around a bunch of test fixtures. The code below makes it so the fs module is temporarily backed by a mock file system with a few files and directories.

frisbee - :dog2: Modern fetch-based alternative to axios/superagent/request

  •    Javascript

tldr; Stripe-inspired API wrapper for WHATWG's fetch() method for making simple HTTP requests (alternative to superagent, request, axios).If you're using node-fetch, you need node-fetch@v1.5.3 to use form-data with files properly (due to https://github.com/bitinn/node-fetch/issues/102) If you experience form file upload issues, please see https://github.com/facebook/react-native/issues/7564#issuecomment-266323928.

apollo-fetch - :dog: Lightweight GraphQL client that supports middleware and afterware

  •    TypeScript

apollo-fetch is a lightweight client for GraphQL requests that supports middleware and afterware that modify requests and responses.By default apollo-fetch uses isomorphic-fetch, but you have the option of using a custom fetch function.

mockoon - Mock REST APIs in seconds.

  •    TypeScript

If you are interested in contributing to Mockoon please see the document CONTRIBUTING. Please see also our Code of conduct.

algoliasearch-client-javascript - 🔎 Algolia Search API Client for JavaScript platforms

  •    Javascript

Algolia Search is a hosted full-text, numerical, and faceted search engine capable of delivering realtime results from the first keystroke. The Algolia Search API Client for JavaScript lets you easily use the Algolia Search REST API from your JavaScript code. The JavaScript client works both on the frontend (browsers) or on the backend (Node.js) with the same API.

swagger-js - Javascript library to connect to swagger-enabled APIs via browser or nodejs

  •    Javascript

Swagger Client is a JavaScript module that allows you to fetch, resolve, and interact with Swagger/OpenAPI documents. This is the new version of swagger-js, 3.x. The new version supports Swagger 2.0 as well as OpenAPI 3.