Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Stubby (JSON API STUBS)

Security covered Under active development 16 sites

Stubby allows you to create fake API responses for testing purposes. You can define custom JSON responses with specific status codes, and even set up parameter validation to mimic real API behavior without making actual requests. This makes it easier to test how your application handles different API scenarios.

JSON Stubs for testing API responses.

What is a stub?

In testing land, a stub replaces real behavior with a fixed version. In the case of HTTP requests, instead of making the actual call, a stub fakes the call and provides a canned response that can be used to test against.

Stubby features:

  • Creating API routes on the fly
  • Custom Response Code/Message responses
  • JSON Upload or Paste
  • Pluggable Parameters with custom error code and message validation (see below)
  • Default "Required" and "Regex" parameteres.

Pluggable Parameters

Currently Stubby comes with a default set of parameters to test against; however, they are just plugins so can be extended to support a wide array of test data when sending a request

Drupal 9–11

Ask your assistant about Stubby (JSON API STUBS)

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Oct 2023
Latest release
11 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Core PHP Release date
1.0.2 Stable 9–11 Nov 4, 2025
1.0.1 Stable 9–10 Oct 12, 2023