npmjs page missing credentials

Created on 5 December 2024, 14 days ago

Problem/Motivation

https://www.npmjs.com/package/@drupal-api-client/json-api-client

The username and password in the Basic auth example has to be wrapped in "credentials"

Not enough to file a separate issue, but also encountered when first trying to use the lib:
baseUrl has historically (in Drupal) been the full, public URL to the site, i.e. http://host/path

In that context, it is behaving in a surprising way here. I expected http://host/path to use http://host/path/jsonapi , but it goes to http://host/jsonapi

With apiPrefix set to path/jsonapi it works, but it seems to me like this should be part of the baseUrl.

🐛 Bug report
Status

Active

Component

Documentation

Created by

🇳🇴Norway arkepp

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024