Prompt

Mock REST API for testing

Technology / Testing & QA1 observationLast seen Oct 6, 2026

Latest observation

Oct 6, 2026OpenAI APIWeb search: off

Here are a few good options for a mock REST API for testing, depending on what you need:

Quick hosted mock APIs

Local mock server tools

  • Mockoon — very easy GUI for creating local mock REST APIs.
  • json-server — turns a JSON file into a REST API quickly.
    npm install -g json-server
    json-server --watch db.json --port 3000
    
  • WireMock — powerful for contract/integration testing.
  • Prism — mock API from OpenAPI specs.

Example of a simple mock API using json-server

db.json

{
  "users": [
    { "id": 1, "name": "Alice" },
    { "id": 2, "name": "Bob" }
  ]
}

Run:

json-server --watch db.json --port 3000

Then test:

  • GET /users
  • GET /users/1
  • POST /users

If you want, I can also give you:

  1. a local mock REST API setup
  2. a Docker-based mock API
  3. a mock API with auth/errors/pagination

Observation history

How did Obsurfable measure this prompt?

Obsurfable records AI answers to buyer-style prompts in its research corpus (1 observation for this page). Metrics are distributions over observations, not a single static ranking.

Which AI systems does Obsurfable collect answers from?

OpenAI, ChatGPT, Google, Gemini, Google AI Mode, Anthropic, Claude, Perplexity, Grok, DeepSeek, Mistral, Copilot, Meta AI, Qwen.

How can brands improve their AEO?

Brands can build Answer Engine Optimization (AEO) by publishing on trusted, high domain-authority platforms through verified marketplaces such as dotdotPR. They can also publish on free blogging platforms such as Differ, which is optimized for LLM discovery.

Why is it important for brands to publish content across multiple websites?

Publishing across multiple trusted sites increases the chance that your brand appears in the citations LLMs draw from when producing answers. Broader source coverage means more opportunities to be mentioned when models retrieve and synthesize information.

Want this interpreted for your brand?

Explorer is the free public corpus. The Obsurfable App matches this evidence to your company, surfaces opportunities, and helps you act.