Exposing Your API in Drupal 8

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 พ.ย. 2024

ความคิดเห็น • 20

  • @kumbackquatsta
    @kumbackquatsta 9 ปีที่แล้ว

    please do a series on headless or decoupled drupal

    • @DrupalizeMe
      @DrupalizeMe  9 ปีที่แล้ว +1

      +kumbackquatsta This video is part of the Decoupled Drupal series of tutorials, available at drupalize.me/series/decoupled-drupal

    • @duartecancela
      @duartecancela 2 ปีที่แล้ว

      Old... but gold!

  • @PranavPathakjaora
    @PranavPathakjaora 6 ปีที่แล้ว

    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.

    • @sahsahal7
      @sahsahal7 4 ปีที่แล้ว

      Add relation in the view and you will get all fields of referenced paragraph

  • @raghulravichandran5560
    @raghulravichandran5560 2 ปีที่แล้ว

    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?

    • @eojthebrave
      @eojthebrave 2 ปีที่แล้ว

      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?

  • @figo2476
    @figo2476 7 ปีที่แล้ว

    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?

  • @vickycoool13
    @vickycoool13 4 ปีที่แล้ว

    How can we add comments in article using postman ?

    • @DrupalizeMe
      @DrupalizeMe  4 ปีที่แล้ว

      This should help you out: drupal.stackexchange.com/questions/258051/json-api-create-comments

  • @17airwings
    @17airwings 4 ปีที่แล้ว

    I am getting 403 forbidden error even after performing all steps.

    • @fedouajnt7168
      @fedouajnt7168 4 ปีที่แล้ว

      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)

  • @DiosanXaquerry
    @DiosanXaquerry 6 ปีที่แล้ว +4

    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

    • @blendlight5860
      @blendlight5860 5 ปีที่แล้ว

      Thanks

    • @drupalgold4177
      @drupalgold4177 4 ปีที่แล้ว

      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

    • @stigthorseth985
      @stigthorseth985 2 ปีที่แล้ว

      Well said 🤣

  • @kamalsahmoud9909
    @kamalsahmoud9909 6 ปีที่แล้ว

    why not talk about pager ??