Overview

In the following article, I performed content registration using Python with Basic authentication.

This time, I tried API Key Authentication, referring to the following article.

https://designkojo.com/post-drupal-using-jsonapi-vuejs-front-end

API Key Authentication

The following module was used.

https://www.drupal.org/project/key_auth

A “Key authentication” tab appeared on the user edit screen, allowing an API key to be generated.

When using the API key, the following program can be used.

iekh}p}rrmneea.pdyay=jopdlsro=e''"o"}rotirACaadenn'scopdaq(rt{cnitu)eA=et-=a""}eq=Ppek"tasuI{tne{:ytte''typtsshk:-"{er""}.tteT:"itbpsty'y:bioop}apkutds:'pee"tly""t/p'ynee"vf(/l:os":aoe{id":lrnIc'e:{umdPaa-"eaptp-{W"toaipah:"idolra:ndnitt"tr/ci'B",evacsepsntllhsdieuwae.o"paiaoan,tndrp/fe_eivrrtrd+no.esojdmx=ms.MthaoaPy"einpyan'itfd,+hrenjoirasnesmo"n,en,d}'sj/,.sj"os,no=npaapyil/onaodd)e/article'

Notes on Multilingual Support

As a note, it appears that creating translation data is not supported.

https://www.drupal.org/docs/core-modules-and-themes/core-modules/jsonapi-module/translations

While updating existing translation data is possible, the following error occurred for nodes without translation data.

{}"}"]j,es""}r{}ovmrnee"}o"""artlrtsdpsai"}siteii"ns"tat"o:ke":lta:nslheui"{"fr["sl{::"e:"":f::"{""1{:M"".e4T0"t0h"hh5e,to"td,rpe:Nq/ou/tejssAtolenldaopwtier.dao"nr,sgl/aftoiromnato/f1.t0h/e"resourceobjectdoesnotexist,insteadmodifyoneofthetranslationsthatdoexist:ja."

A workaround for this issue may already be available. I plan to continue investigating.

Summary

I hope this serves as a useful reference for using Drupal’s JSON:API.