New answers tagged

0

filter[profileStatusFilter][condition] [path]=first_field&filter[profileStatusFilter2][condition] [path]=second_field&filter[profileStatusFilter][condition] [operator]=CONTAINS&filter[profileStatusFilter2][condition] [operator]=CONTAINS&filter[profileStatusFilter][condition] [value]=first_value&filter[profileStatusFilter2][condition] ...


0

Did you gave node type ? Try the following body data. { "data": { "attributes": { "title": "title of your new node", }, "relationships": { "field_body": { "data": { "type": "paragraph--text", "id": "b0247bf8-a3c0-4a45-8e05-4f4901011000" ...


0

Before this implimentation you can call one more api which debugs the token. Just provide token in header and in the results we will get token expiration details. api :- http://your_url/oauth/debug?_format=json


0

Edit I found a method that works for me. <?php namespace Drupal\modulename\Routing; use Drupal\Core\Routing\RouteSubscriberBase; use Symfony\Component\Routing\RouteCollection; /** * Listens to the dynamic route events. * https://www.drupal.org/docs/8/api/routing-system/altering-existing-routes-and-adding-new-routes-based-on-dynamic-ones */ class ...


0

This works for me (leave it on multiple lines): $ curl --insecure \ --header "Content-type: application/json" \ --request POST "https://bo.mywebsite.com:8001/user/login?_format=json" \ --data '{"name":"admin", "pass":"SuperSecret123&"}' Note: --insecure is used to skip SSL verification.


Top 50 recent answers are included