api-tester

Test REST and GraphQL APIs with curl, covering authentication and validation.

30|7|Updated Mar 1, 2026
One-click install
npx skills add https://github.com/rfdiosuao/openfang-cn --skill api-tester-rfdiosuao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-tester
Source: https://github.com/rfdiosuao/openfang-cn/tree/main/crates/openfang-skills/bundled/api-tester
Command: npx skills add https://github.com/rfdiosuao/openfang-cn --skill api-tester-rfdiosuao

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps users efficiently test, debug, and validate APIs, ensuring they function correctly under various conditions and handle errors gracefully.

Core Features & Use Cases

  • API Testing: Test REST and GraphQL APIs using tools like curl and httpie.
  • Debugging: Identify and resolve issues related to authentication, input validation, and response handling.
  • Use Case: You need to test a new REST API endpoint to ensure it correctly handles authentication with a bearer token and returns a 200 status code for valid requests, while returning a 401 for unauthorized access.

Quick Start

Use the api-tester skill to test the endpoint https://api.example.com/users with a GET request and a bearer token.

Frequently Asked Questions about api-tester

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

FAQPage Schema
How do I test a REST API endpoint with curl and a bearer token?

To test a REST API endpoint with curl, you send a GET request including the Authorization header with a bearer token, then validate that the response returns a 200 status code for authorized access and a 401 for unauthorized requests.

What is the best way to debug GraphQL API authentication and input validation errors?

Debugging GraphQL API authentication and input validation involves systematically testing error cases and edge conditions to identify issues in response handling, ensuring the API gracefully rejects invalid inputs and missing credentials.

How do I validate API status codes, headers, and response bodies against a specification?

Validating API responses involves checking that the returned status codes, headers, and response bodies match the expected outcomes defined in the API specification, ensuring correct handling of both happy paths and error cases.

Can I test both REST and GraphQL APIs using the same testing approach?

Yes, you can test both REST and GraphQL APIs using a unified approach that covers endpoint testing, authentication validation, and debugging, ensuring both API types correctly handle edge conditions and error states.

Why does my API return a 401 status code when I send a request with a valid bearer token?

An API returns a 401 status code during testing when the bearer token is missing, expired, or incorrectly formatted in the Authorization header, requiring systematic debugging of the authentication flow to resolve the access issue.