Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Rest UI shows paths like /entity/node/1 which should be just node/1 since this change:
Comment | File | Size | Author |
---|---|---|---|
#3 | rest_uri_paths_changed-2290605-3.patch | 785 bytes | clemens.tolboom |
Comments
Comment #1
askibinski CreditAttribution: askibinski commentedComment #2
clemens.tolboomAs 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.
Comment #3
clemens.tolboomChoosing for 'id' was bad. It contains 'entity:'.
Comment #4
clemens.tolboomNo need to display the bad files.
Comment #5
clemens.tolboomOn 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 :-(
Comment #6
clemens.tolboomHmmm ... I'm not sure my patches are in order.
As a side note: I've created Drupal #2293697: EntityResource POST routes all use the confusing default: use entity types' https://www.drupal.org/link-relations/create link template if available
Comment #7
clemens.tolboomIn #2292707-10: GET on entity/taxonomy_vocabulary/{id} is not working I learned not all endpoints start with their entity type by checking the database.
Comment #9
juampynr CreditAttribution: juampynr commentedCommitted. I will have a look at #2293697: EntityResource POST routes all use the confusing default: use entity types' https://www.drupal.org/link-relations/create link template if available.
Thanks!