Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295826

Getting field storage config and field config via JSON:API

$
0
0

I'm looking for the equivalent in JSON:API 8.x-2.x to what in 8.x-1.x were /jsonapi/field_storage_config/field_storage_config and /jsonapi/field_config/field_config. I've enabled both the Field and Field Storage resources in Drupal 8.7.7, but am getting the following:

curl -v --header 'Accept: application/vnd.api+json' http://foo:bar@localhost/entity/field_storage_config/field_storage_config

results in a 404 with the body

{"message":"The \u0022field_storage_config\u0022 parameter was not converted for the path \u0022\/entity\/field_storage_config\/{field_storage_config}\u0022 (route name: \u0022rest.entity.field_storage_config.GET\u0022)"}

and

curl -v --header 'Accept: application/vnd.api+json' http://foo:bar@localhost/entity/field_config/field_config

results in a 404 with the body

{"message":"The \u0022field_config\u0022 parameter was not converted for the path \u0022\/entity\/field_config\/{field_config}\u0022 (route name: \u0022rest.entity.field_config.GET\u0022)"}

Can anyone tell me how to get the response body that was returned by JSON:API 8.x-1.x?


Viewing all articles
Browse latest Browse all 295826

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>