How to expose paragraph fields along with node? For example I am having a paragraph fields (title and image) are attached in node, how to get these files value via api.
I am trying the same on Drupal 9 local instance. I have done the necessary updates basic auth, tried hal_json in parameter and in request URL, still I get a 404 error. Any solutions?
Are you seeing anything in your error logs that might be related to this? Just to make sure, going to something like node/42 works, but going to node/42?_format=hal_json is returning a 404 for the same user?
Hi, I am using drupal 8.2. I have 2 issues. 1.In the video at 3:59, I don't have those permissions. I think that is a minor issue. 2. In the video at 5:41, when I click submit in postman. The error I got is "Symfony\Component\HttpKernel\Exception\UnsupportedMediaTypeHttpException: No route found that matches "Content-Type: hal+json" in Drupal\Core\Routing\ContentTypeHeaderMatcher->filter() (line 49 of core/lib/Drupal/Core/Routing/ContentTypeHeaderMatcher.php)." I am using https and running in my localhost. Does it related to this: www.drupal.org/node/2680769?
I HATE DRUPAL..... Rails all the way... I just had to say that... I working on a drupal project and it hurts my soul to do things ass backwards.... enabling REST?!?!?!?!?! really ?!?!?!?! why not REST out of the box... I can't even explain how dumb this is
This video is from 2015. Drupal now goes JSON:API. You might also want to read dri.es/headless-cms-rest-vs-jsonapi-vs-graphql. And maybe name a good content management framework written in Rails. Thank you
please do a series on headless or decoupled drupal
+kumbackquatsta This video is part of the Decoupled Drupal series of tutorials, available at drupalize.me/series/decoupled-drupal
Old... but gold!
How to expose paragraph fields along with node? For example I am having a paragraph fields (title and image) are attached in node, how to get these files value via api.
Add relation in the view and you will get all fields of referenced paragraph
I am trying the same on Drupal 9 local instance. I have done the necessary updates basic auth, tried hal_json in parameter and in request URL, still I get a 404 error. Any solutions?
Are you seeing anything in your error logs that might be related to this? Just to make sure, going to something like node/42 works, but going to node/42?_format=hal_json is returning a 404 for the same user?
Hi, I am using drupal 8.2. I have 2 issues. 1.In the video at 3:59, I don't have those permissions. I think that is a minor issue. 2. In the video at 5:41, when I click submit in postman. The error I got is "Symfony\Component\HttpKernel\Exception\UnsupportedMediaTypeHttpException: No route found that matches "Content-Type: hal+json" in Drupal\Core\Routing\ContentTypeHeaderMatcher->filter() (line 49 of core/lib/Drupal/Core/Routing/ContentTypeHeaderMatcher.php)." I am using https and running in my localhost. Does it related to this: www.drupal.org/node/2680769?
How can we add comments in article using postman ?
This should help you out: drupal.stackexchange.com/questions/258051/json-api-create-comments
I am getting 403 forbidden error even after performing all steps.
if you had 403 forbidden error in the post request try to add to the query parameter the format hal_json (/entity/node?_format=hal_json)
I HATE DRUPAL..... Rails all the way... I just had to say that... I working on a drupal project and it hurts my soul to do things ass backwards.... enabling REST?!?!?!?!?! really ?!?!?!?! why not REST out of the box... I can't even explain how dumb this is
Thanks
This video is from 2015. Drupal now goes JSON:API. You might also want to read dri.es/headless-cms-rest-vs-jsonapi-vs-graphql. And maybe name a good content management framework written in Rails. Thank you
Well said 🤣
why not talk about pager ??