Mock APIs with Map Local

Mock files, folders and sharing with your team

Serve files from disk, then export a rule or a folder with its files for others.

Serve a file

For large or binary responses (a big JSON, an image, a PDF), use a file instead of the body.

  1. Open the rule and click Browse next to Local file, or type a path like ~/mocks/products.json.
  2. The file overrides the body. Every response variant can have its own file.
  3. Edit the file in any editor; the next request gets the new content.

Templates work in text files too. Binary files are sent unchanged.

Organise with folders

Put rules for one feature or project in a folder: Checkout, Onboarding, Demo Shop. A folder can be switched on or off as a whole, which is the fastest way to move between "everything real" and "everything mocked".

Export

Exports include the files the rules use, so they work on another Mac without copying files by hand.

  • One rule: the export button on the rule.
  • A folder: the export button on the folder header.
  • All Map Local rules: the export button at the top of Map Local.

Import

  1. In Map Local, click Import and choose the .json file.
  2. AegisCeptor shows the rules in the file and marks the ones you already have.
  3. For those, choose Replace (update yours) or Keep both (add copies).
  4. Click Import. Your other rules stay as they are.

Importing the same file again updates the same rules instead of creating duplicates.

Map Local import or Rules import? Files exported from Map Local (a rule, a folder or all mocks) are added with Map Local → Import. A full rules file from Rules → Export rules replaces all rules and is opened with Rules → Import rules.