coldbox-testing-http-methods

Simulate HTTP verb calls to test ColdBox REST endpoints.

1|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/ColdBox/skills --skill coldbox-testing-http-methods
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: coldbox-testing-http-methods
Source: https://github.com/ColdBox/skills/tree/main/coldbox/testing-http-methods
Command: npx skills add https://github.com/ColdBox/skills --skill coldbox-testing-http-methods

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Tests automate HTTP endpoint verification in ColdBox by simulating HTTP verb calls.

Core Features & Use Cases

  • Simulates get(), post(), put(), patch(), delete(), and request() calls to exercise the full ColdBox routing and HTTP pipeline.
  • Validates responses with status checks (toHaveStatus) and validations (toHaveInvalidData) across REST endpoints.
  • Applies to API testing, authentication/authorization flows, and route-mapping scenarios in ColdBox apps.

Quick Start

Create tests using the HTTP method helpers to exercise your REST API routes and verify status codes and responses.

Frequently Asked Questions about coldbox-testing-http-methods

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

FAQPage Schema
How do I test HTTP endpoints and REST API routes in ColdBox?

ColdBox HTTP endpoint testing simulates HTTP verb calls using get(), post(), put(), patch(), delete(), and request() helpers. This exercises the full routing and HTTP pipeline to verify REST API behavior across different methods.

Can I validate HTTP status codes and request bodies in ColdBox API tests?

You can validate ColdBox API test responses using assertions like toHaveStatus for status code checks and toHaveInvalidData for request body validations. These ensure routing and data handling operate correctly.

What's the best way to test authentication flows and route mapping in ColdBox?

Simulating HTTP methods across REST endpoints is the best way to test authentication flows and route mapping in ColdBox. This verifies authorization rules and route resolution through the complete HTTP pipeline.

Do HTTP method helpers work with execute() event-based testing in ColdBox?

HTTP method helpers maintain full compatibility with execute() event-based testing in ColdBox. Both approaches verify endpoint behavior, ensuring consistent results across different testing styles.

Why does my ColdBox REST API test fail to simulate headers and bodies correctly?

ColdBox REST API tests fail to simulate headers and bodies correctly when not using the HTTP verb helpers. Use the appropriate method helper to simulate the full HTTP pipeline for accurate request validation.