Rest UI shows paths like /entity/node/1 which should be just node/1 since this change:

https://www.drupal.org/node/2199185

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

askibinski’s picture

Issue summary: View changes
clemens.tolboom’s picture

Category: Task » Bug report
Status: Active » Needs review
FileSize
776 bytes

As it does not work on /entity/node/1 while testing I guess we should just use either

$path = '/' . $resource['id'] . '/{id}';

or

$path = '/' . $resource['entity_type'] . '/{id}';

I choose the first but am not sure.

clemens.tolboom’s picture

Choosing for 'id' was bad. It contains 'entity:'.

clemens.tolboom’s picture

No need to display the bad files.

clemens.tolboom’s picture

On http://drupal.d8/admin/config/services/rest I noticed

Watchdog database log //{id} which is not good.

Switching back to $resource['id'] gives

Watchdog database log /dblog/{id}

So this needs work :-(

clemens.tolboom’s picture

clemens.tolboom’s picture

juampynr’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.