Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Star Wars API - HTTP Client

Security covered Under active development

This module provides a Drupal-integrated client for the Star Wars API. It allows developers to easily fetch Star Wars data directly within their PHP code or expose these operations as Drupal action plugins for use in visual workflows.

An HTTP Client Manager implementation of the Star Wars API. Initially
created as an example, but now a fully operational API client.

Usage

For use in PHP, retrieve the client from the Drupal service registry, e.g.:

$client = \Drupal::service('http_client_swapi.client');

Client operations can be invoked directly, e.g.:

$client->personById(['id' => 1]);

For non-code usage, all operations are exposed as Drupal action plugins by
HTTP Client Manager so they can be called from any module that supports
actions like ECA.

Requirements

This module requires the following modules:

Installation

Install as you would normally install a contributed Drupal module. For further
information, see Installing Drupal Modules.

Configuration

This module has no menu or modifiable settings of it's own. Usage and
configuration instructions can be found in the docs for HTTP Client Manager.

Drupal 9–10 · not 11

Ask your assistant about Star Wars API - HTTP Client

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

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Jan 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core PHP Release date
1.0.0 Stable 9–10 Jan 21, 2023