Docs

Creating Mock Endpoints

Follow these steps to set up mock endpoints for your APIs. This guide will help you create and configure endpoints for both REST and GraphQL.

1. Navigate to the Dashboard

Start from the dashboard where you can see all your projects and endpoints. Click + Create Project to begin.

Dashboard Overview
Dashboard Overview

2. Create a New Project

Enter a project name, description, and select the API type (REST or GraphQL). You can optionally configure an interceptor URL.

Project Details

E-commerce API
REST API
GraphQL
Create New Project
Create New Project

3. Configure Project Settings

Once your project is created, customize its settings including authentication, interceptor URL, and response behavior.

Basic Settings

Project name, description and API type

Advanced Settings

Interceptor URL and authentication

Performance

Response delays and rate limiting

Project Settings
Project Settings

4. Create and Manage Endpoints

Create endpoints for your API by defining paths, methods, and responses. For REST APIs, configure each endpoint individually. For GraphQL, define your schema and resolvers.

REST Endpoints

GET/api/products
POST/api/orders

GraphQL Schema

type Query {
  product(id: ID!): Product
  allProducts: [Product!]!
}
Endpoint Management
Endpoint Management

Next Steps

Now that you've created your mock endpoints, explore these related resources:

Intercepting Requests

Learn how to capture and modify API requests

GraphQL Features

Customize GraphQL responses based on conditions

Error Simulation

Test how your app handles API errors and failures