Skip to content
F

FakeRest

Patch fetch/XMLHttpRequest to fake a REST API server in the browser

by marmelabFree

#2987in Developer Tools
0In stores

Description

FakeRest is a small browser library that fakes a REST API from JSON data. You give it your records, and it intercepts the AJAX calls your ap…

Highlights

  • Fake REST API from JSON data in the browser
  • Filter, sort, range and embed query support
  • Works with MSW, fetch-mock and Sinon
  • Pagination with Content-Range headers
  • Open source on GitHub

Ratings & Reviews

No ratings yet

Be the first to rate FakeRest.

People also visit

P

Pocket Mocker

In-page HTTP controller for frontend development

Developer Tools
Launch
M

MockBolt

Instant mock API endpoints from JSON. Free, no signup

Developer Tools
Launch
D

DummyJSON

DummyJSON.com provides different types of REST Endpoints filled

Developer Tools
Launch
F

flaky

A mock REST API that fails on purpose

Developer Tools
Launch
M

Mockfly

Free Mock API Generator Online for Frontend Teams

Developer Tools
Launch
M

Mocktail

Self-hosted mock API server & dashboard

Developer Tools
Launch

FakeRest FAQ

What does FakeRest do?

It intercepts fetch or XMLHttpRequest calls in the browser and answers them with records from a JSON data set, so you can work without a server.

Which mocking library should I use?

The README recommends MSW. FakeRest also supports fetch-mock and Sinon.

Does it support pagination and filtering?

Yes. Collection requests accept filter, sort, range and embed, and paginated responses return 206 with a Content-Range header.

Is it open source?

Yes. The source is on GitHub in the marmelab organization.

What are the best FakeRest alternatives?

Popular alternatives to FakeRest include Pocket Mocker, MockBolt and DummyJSON. See all FakeRest alternatives

Developer Stuff

Badges