Problem/Motivation

Problem 1
- Root composer.json requires drupal/bat_api ^3.1 -> satisfiable by drupal/bat_api[3.1.0].
- drupal/bat_api 3.1.0 requires drupal/services * -> found drupal/services[dev-4.x, dev-5.x, 4.0.0-alpha1, ..., 4.x-dev (alias of dev-4.x), 5.0.0-beta7, ..., 5.x-dev (alias of dev-5.x)] but it does not match your minimum-stability.

Steps to reproduce

composer require 'drupal/bat_api:^3.1'

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

scbritton created an issue. See original summary.

gbajo’s picture

Before you install bat_api, you have to install the module services manually. This is because drupal services is on beta phase and it is not installed by default:
Firstly -> $ composer require 'drupal/services:^5.0@beta'
And then -> $ composer require 'drupal/bat_api:^3.1.0'

scbritton’s picture

Unfortunately, the recommended approach doesn't work, as I'm using Drupal 11.1.1, and the Services module is for Drupal 10. When I run the command, I get a similar error. I checked the Services module, and there does not appear to be a module for Drupal 11.

I'll try to work around the problem using the BAT core in the interim, however if you can suggest an alternative approach, it would be helpful.

4kant’s picture

I´m at Drupal 11 too and installed (and activated) services manually (with this "patch": https://git.drupalcode.org/project/services/-/merge_requests/17/diffs)

But still I get the same error as #1.

afagioli’s picture

BAT API is using now Drupal Core REST Api
Service module dependency removed

afagioli’s picture

Status: Active » Needs review
afagioli’s picture

Issue tags: +REST API
afagioli’s picture

Version: 3.1.0 » 11.1.0-alpha6
afagioli’s picture

with today latest dev we have:

a@?????:~/Public/d11/web/sites/d11.bat$ composer require drupal/restui
No composer.json in current directory, do you want to use the one at /home/a/Public/d11? [Y,n]? Y
Always want to use the parent dir? Use "composer config --global use-parent-dir true" to change the default.
./composer.json has been updated
Running composer update drupal/restui
Loading composer repositories with package information
Updating dependencies
Lock file operations: 1 install, 0 updates, 0 removals
  - Locking drupal/restui (1.22.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
  - Downloading drupal/restui (1.22.0)
  - Installing drupal/restui (1.22.0): Extracting archive
Generating autoload files
48 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
No security vulnerability advisories found.
Using version ^1.22 for drupal/restui
a@?????:~/Public/d11/web/sites/d11.bat$ 
a@?????:~/Public/d11/web/sites/d11.bat$ 
a@?????:~/Public/d11/web/sites/d11.bat$ dru12 en bat_api
The following module(s) will be installed: bat_api, bat_event, bat_unit, datetime_range, bat_fullcalendar, restui, rest, serialization

 ┌ Do you want to continue? ────────────────────────────────────┐
 │ Yes                                                          │
 └──────────────────────────────────────────────────────────────┘

 [success] Module bat_api has been installed.
 [success] Module bat_event has been installed. (Permissions)
 [success] Module bat_unit has been installed. (Permissions)
 [success] Module datetime_range has been installed.
 [success] Module bat_fullcalendar has been installed. (Permissions)
 [success] Module restui has been installed. (Configure)
 [success] Module rest has been installed. (Permissions)
 [success] Module serialization has been installed.
a@?????:~/Public/d11/web/sites/d11.bat$ 
a@?????:~/Public/d11/web/sites/d11.bat$ 

afagioli’s picture

Status: Needs review » Closed (outdated)

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.