api-testing-observability-api-mock

Create mock API services with FastAPI, Faker, and Pydantic.

Updated Feb 21, 2026
One-click install
npx skills add https://github.com/HCMUTE-RTIC/fit-hcmute --skill api-testing-observability-api-mock-hcmute-rtic
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-testing-observability-api-mock
Source: https://github.com/HCMUTE-RTIC/fit-hcmute/tree/main/.agent/skills/api-testing-observability-api-mock
Command: npx skills add https://github.com/HCMUTE-RTIC/fit-hcmute --skill api-testing-observability-api-mock-hcmute-rtic

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill addresses the challenge of needing realistic API endpoints for development, testing, and demonstration without relying on actual backend services, which can be unstable or unavailable.

Core Features & Use Cases

  • Realistic Mocking: Simulates API behavior with dynamic data, scenarios, and latency.
  • Contract Testing: Validates mock responses against API specifications (e.g., OpenAPI).
  • Performance Testing: Creates mocks that mimic real-world performance characteristics like latency and throughput.
  • Use Case: A frontend team needs to develop and test a new feature that interacts with a user profile API. They can use this Skill to create a mock user API that returns sample user data, simulates network delays, and handles different error conditions, allowing them to proceed with development independently of the backend team.

Quick Start

Use the api-testing-observability-api-mock skill to create a mock API endpoint for GET /users/{id} that returns a JSON object with user details.

Frequently Asked Questions about api-testing-observability-api-mock

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a mock API server for frontend development when the backend is unavailable?

You can create a mock API server using this Skill's FastAPI-based framework to simulate real-world endpoints. It enables frontend teams to proceed independently by generating dynamic data, simulating network latency, and handling error conditions without relying on actual backend services.

What is scenario-based API mocking and how does it handle dynamic data?

Scenario-based API mocking simulates specific API behaviors and sequences using dynamic data generation. This Skill utilizes Python with FastAPI and Faker to generate realistic responses, allowing you to test different application states and edge cases effectively.

Can I validate mock server responses against an OpenAPI specification?

Yes, you can validate mock responses against API specifications like OpenAPI. This Skill supports contract testing by utilizing Pydantic for schema validation, ensuring your mock endpoints conform strictly to the defined API contracts.

How do I simulate network latency and throughput for API performance testing?

You simulate network latency and throughput by configuring this Skill to mimic real-world performance characteristics. It creates mock API services that introduce controlled delays and simulate specific throughput constraints for robust performance testing.

Does this API mocking framework support request and response stubbing?

Yes, the framework fully supports request and response stubbing. It allows developers to define specific static or dynamic responses for targeted API requests, facilitating isolated testing of client applications against predictable endpoint behaviors.

What is the best way to test frontend error handling without a live backend?

The best way is to use a mock server to simulate various API error conditions. This Skill allows you to define scenario-based mocks that return specific error statuses and delayed responses, enabling thorough validation of frontend error handling logic.