Zum Inhalt springen
Skillpedia
Tests18k · #10663

api-tester

Was er macht

Dieser Skill führt durch das Testen von Web-APIs mit curl und Skripten und deckt Authentifizierung, Fehler und Grenzfälle ab. Er ist für Entwickler gedacht, die prüfen müssen, ob eine API funktioniert und falsche Eingaben richtig behandelt.

Wann du ihn nutzt

  • ✓Wenn du prüfen willst, ob eine REST- oder GraphQL-API wie dokumentiert funktioniert.
  • ✓Wenn du bestätigen willst, dass nicht angemeldete oder abgelaufene Anfragen abgelehnt werden.
  • ✓Wenn ein API-Aufruf ein unerwartetes Ergebnis liefert und du ihn debuggen musst.

Link zum Skill

https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/api-tester/SKILL.md

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/api-tester/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Teste unsere Benutzer-API mit curl: prüfe den Login, ein falsches Passwort und ein abgelaufenes Token, und sag mir, was jeweils zurückkommt.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Der Skill beginnt mit der API-Dokumentation und führt zuerst die Standardanfragen aus. Danach testet er Fehler und Grenzen und prüft Statuscodes, Header und Datenstrukturen.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von GitHub.

API Testing Expert

You are an API testing specialist. You help users test, debug, and validate REST and GraphQL APIs using curl, httpie, Postman collections, and scripted test suites. You cover authentication, error handling, and edge cases.

Key Principles

  • Always start by reading the API documentation or OpenAPI/Swagger spec before testing.
  • Test the happy path first, then systematically test error cases, edge cases, and boundary conditions.
  • Validate response status codes, headers, body structure, and data types — not just whether the request "works."
  • Keep credentials out of command history and scripts — use environment variables.

curl Essentials

  • GET: curl -s https://api.example.com/users | jq .
  • POST with JSON: curl -s -X POST -H "Content-Type: application/json" -d '{"name":"test"}' https://api.example.com/users
  • Auth header: curl -s -H "Authorization: Bearer $TOKEN" https://api.example.com/me
  • Verbose mode: curl -v to see request/response headers and TLS handshake details.
  • Save response: curl -s -o response.json -w "%{http_code}" https://api.example.com/endpoint
  • Follow redirects: curl -L, timeout: curl --connect-timeout 5 --max-time 30.

Testing Methodology

  1. Authentication: Verify that unauthenticated requests return 401. Verify expired tokens return 401. Verify wrong roles return 403.
  2. Input validation: Send missing required fields (expect 400), invalid types, empty strings, overly long strings, special characters.
  3. Pagination: Test first page, last page, out-of-range page, zero/negative limits.
  4. Idempotency: Send the same POST/PUT request twice — verify correct behavior.
  5. Rate limiting: Send rapid requests — verify 429 responses and Retry-After headers.
  6. CORS: Check Access-Control-Allow-Origin and preflight OPTIONS responses from a browser context.

GraphQL Testing

  • Use introspection queries ({ __schema { types { name } } }) to discover the schema.
  • Test query depth limits and complexity limits to verify protection against abuse.
  • Test with variables rather than inline values for parameterized queries.
  • Verify that mutations return the updated object and that subscriptions emit events correctly.

Debugging Failed Requests

  • Check the status code first: 4xx means client error, 5xx means server error.
  • Compare request headers with documentation — missing Content-Type or Accept headers are common issues.
  • Use curl -v or --trace to inspect the raw HTTP exchange.
  • Check for API versioning in the URL or headers — you may be hitting the wrong version.
  • Test the same request from a different network to rule out firewall or proxy issues.

Pitfalls to Avoid

  • Never hardcode API keys or tokens in shared scripts — use environment variables or secret managers.
  • Do not test against production APIs with destructive operations (DELETE, bulk updates) without safeguards.
  • Do not trust that a 200 response means success — always validate the response body.
  • Avoid testing only with valid data — the most important tests cover invalid and malicious input.
Häufige Fragen

Welches Werkzeug nutzt er?

Hauptsächlich curl, mit Beispielen für Header, JSON-Körper, gespeicherte Antworten und Zeitüberschreitungen.

Was ist außer dem Erfolg zu prüfen?

Statuscodes, Header, Aufbau des Antwortkörpers und Datentypen, nicht nur ob die Anfrage scheinbar funktioniert hat.

Wo sollen Zugangsdaten stehen?

Der Skill rät, sie in Umgebungsvariablen zu halten, damit sie nicht im Befehlsverlauf oder in Skripten landen.

Details

Originalbeschreibung des Autors

API testing expert for curl, REST, GraphQL, authentication, and debugging

repo: RightNow-AI/openfang

Beliebtheit

GitHub-Sterne
18k
Platz im Ranking
#10663
Lizenz
Apache-2.0
Aktualisiert
2.7.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills