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

api-dev

بواسطة gitgoodordietrying

Web & Frontend Development
6.0kالتنزيلات وفق ما يذكره clawskills.sh
6النجوم
0المشاهدات
لا إعجاباتسجّل الدخول للإعجاب بهذه المهارة
—لم يُقيَّم بعد
تقييمك

موجز

Scaffold, test, document, and debug REST and GraphQL APIs.

الوصف

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

Covers the full lifecycle of HTTP API development from the command line: scaffolding endpoints, writing integration tests, generating OpenAPI specs, mocking external services, and debugging request/response issues. Works with REST and GraphQL APIs using curl, Python, or Node.js.

Covers the entire API development loop without leaving the terminal, replacing GUI tools like Postman for scripting, CI pipelines, and automated test runs.

متى تستخدمها

  • Test a third-party API endpoint before writing integration code
  • Run a local mock server while the backend team is still building
  • Generate an OpenAPI spec for an undocumented internal service
  • Debug why a POST request returns a silent 400 error
  • Benchmark endpoint response times across 10 requests

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

الإدخال

User asks: scaffold a minimal REST API, add integration tests, and validate an OpenAPI spec

الوكيل
  1. 1

    Scaffold an Express app with CRUD endpoints using the provided server.js template

  2. 2

    Start the server and verify the health endpoint returns 200 with curl

  3. 3

    Write a bash test runner that asserts status codes and JSON field values against the running server

  4. 4

    Generate an openapi.yaml from the endpoint structure

  5. 5

    Validate the spec with npx @redocly/cli lint openapi.yaml

الإخراج

A running Express API with passing integration tests and a validated OpenAPI 3.0 spec

التثبيت

clawhub install gitgoodordietrying/api-dev

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

الروابط