تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

sovereign-api-mock-generator

بواسطة ryudi84

DevOps & Cloud
342التنزيلات وفق ما يذكره clawskills.sh
1المشاهدات
لا إعجاباتسجّل الدخول للإعجاب بهذه المهارة
—لم يُقيَّم بعد
تقييمك

موجز

Generates mock API servers from OpenAPI specs or examples.

الوصف

ما الذي تفعله هذه المهارة

Generates mock API servers from OpenAPI specs or example requests. Supports realistic fake data generation, configurable response delays, and error simulation to replicate production API behavior during development.

Combining OpenAPI spec parsing with delay control and error simulation in one tool removes the need to maintain separate mock servers or modify real APIs for testing.

متى تستخدمها

  • Testing frontend components before the backend API is ready
  • Simulating slow or failing endpoints during QA
  • Running integration tests without hitting third-party rate limits
  • Demoing app features without live credentials or a live backend
  • Developing against a new API version before it deploys

مثال على سير العمل

الإدخال

User asks: Generate a mock server from this OpenAPI spec for a payments API

الوكيل
  1. 1

    Parses the OpenAPI specification and extracts all endpoint definitions

  2. 2

    Generates realistic fake data conforming to each response schema

  3. 3

    Configures per-endpoint response delays and error rates

  4. 4

    Produces a runnable mock server with all routes and handlers defined

  5. 5

    Provides startup instructions and example curl commands for testing

الإخراج

A local mock server that responds to all defined API endpoints with schema-valid fake data, simulated latency, and configurable error responses

التثبيت

clawhub install ryudi84/sovereign-api-mock-generator

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط