api-tester

Comprehensive strategy for verifying backend services, ensuring reliability, security, and performance of REST and GraphQL APIs.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "api-tester" with this command: npx skills add mileycy516-stack/skills/mileycy516-stack-skills-api-tester

API Tester

Comprehensive strategy for verifying backend services, ensuring reliability, security, and performance of REST and GraphQL APIs.

When to Use This Skill

  • Verifying new API endpoints during development.

  • Debugging integration issues between frontend and backend.

  • Automating regression tests for CI/CD.

  • Validating error handling and edge cases.

  • Performance checking (Response time).

Core Methodologies

  1. Functional Testing

Happy Path Verify the endpoint works as expected with valid data.

  • Check: Status 200/201, correct JSON schema, data persistence.

Edge Cases

  • Invalid inputs (e.g., negative numbers, empty strings).

  • Missing required fields.

  • Type mismatches.

Error Handling

  • Verify standard error structures (Status 400, 401, 403, 404, 500).

  • Ensure no stack traces leak in production.

  1. Testing Tools Strategy

Manual / Ad-hoc (CLI) Use curl or hurl for quick checks.

SImple GET

curl -i https://api.example.com/users/1

POST with JSON

curl -X POST -H "Content-Type: application/json"
-d '{"name": "Test"}'
https://api.example.com/users

Automated (Code-Based) Use Supertest (Node) or pytest-requests (Python) for robust suites.

// Jest + Supertest Example describe('POST /api/users', () => { it('should create a user', async () => { const res = await request(app) .post('/api/users') .send({ name: 'John' }); expect(res.statusCode).toEqual(201); expect(res.body).toHaveProperty('id'); }); });

E2E / Workflows Use Postman/Newman for complex scenarios (Login -> Get Token -> Fetch Data).

  1. Security Validation
  • Auth: Try accessing without header, with invalid token, with expired token.

  • Permissions: Try accessing Admin routes as User.

  • Injection: Send basic SQLi/XSS payloads in parameters.

  1. Checklist
  • Status Codes: Are they semantic? (201 Created vs 200 OK).

  • Headers: Content-Type, CORS, Security headers.

  • Payload: JSON correctness, unnecessary fields removed.

  • Performance: Response time < 200ms (P95).

Resources

  • Postman Learning Center

  • Supertest Documentation

  • Hurl.dev

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Security

backend-security-coder

No summary provided by upstream source.

Repository SourceNeeds Review
General

api-tester

No summary provided by upstream source.

Repository SourceNeeds Review
General

trading-psychology-coach

No summary provided by upstream source.

Repository SourceNeeds Review