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.
Start from the dashboard where you can see all your projects and endpoints. Click + Create Project to begin.
Enter a project name, description, and select the API type (REST or GraphQL). You can optionally configure an interceptor URL.
Once your project is created, customize its settings including authentication, interceptor URL, and response behavior.
Project name, description and API type
Interceptor URL and authentication
Response delays and rate limiting
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.
type Query { product(id: ID!): Product allProducts: [Product!]! }
Now that you've created your mock endpoints, explore these related resources:
Learn how to capture and modify API requests
Customize GraphQL responses based on conditions
Test how your app handles API errors and failures