RESTful Server - Part 1

Поделиться
HTML-код
  • Опубликовано: 4 дек 2024

Комментарии • 12

  • @safaselimguitar
    @safaselimguitar 5 лет назад +7

    Where is Part 2?

  • @kid1997
    @kid1997 3 года назад +2

    Please make the part 2! Can we get a tutorial on POST/PUT requests please?

  • @iqwebserve3973
    @iqwebserve3973 4 года назад

    CFML with Lucee is amazing. I try to leave server-side coding but this keeps pulling me back in. Thanks

  • @lindaburnside3832
    @lindaburnside3832 4 года назад

    Excellent resource

  • @testtest-ph1ms
    @testtest-ph1ms 4 года назад

    I got an empty page. So, how can I do that...

  • @dali4875
    @dali4875 6 лет назад

    What's the benefit of using the native REST Server over the "alternatives" offered by Coldbox, FW/1 or TAFFY? Performance gain I suppose.

    • @chrisdawes7270
      @chrisdawes7270 5 лет назад

      no overhead... can use any framework... can whip up a simple api in minutes eg: AngularJS + ColdFusion ruclips.net/video/4GkXanOqH88/видео.html - he builds a whole api on the video including angular. (not the best coding example, but it works)

  • @dali4875
    @dali4875 6 лет назад

    Is it possible to define the REST routes/mapping in Application.cfc like other frameworks such as FW/1 and Coldbox do instead of manually entering them in Lucee Administrator ?

    • @chrisdawes7270
      @chrisdawes7270 5 лет назад

      use restInitApplication(dir,mapping) and takes 3rd param web admin password, but you can also set that in application.cfc so you don't have to here.

  • @jeffjustice5478
    @jeffjustice5478 5 лет назад +1

    I found this only works for the root site so I ended up using ColdBox instead. Hopefully this becomes better flushed out in the future.

    • @DomHoward1
      @DomHoward1 4 года назад

      Hi Jeff - I've been having issues with REST on a server using vhosts - can you share where you had it confirmed that REST works only in the root. Many thanks.

    • @loopy20000
      @loopy20000 3 года назад

      I think that is not true. During my experiments with REST in a default Lucee installation ( using the installer ) using Apache or IIS in front of Lucee, creating a pure REST mapping won't work out of the box. The cause is that even if you have IIS or Apache2 configured properly, mod_cfml will fail to identify these requests as being cfml requests, thus it will consequently fail to create Tomcats web context for that new site/ hostname (mod_cfml task is to create the contex settings for sites/virtual hosts added to IIS/Apache in Tomcats configuration for you). Because Tomcat has no configuration set up for those it will deliver it's own default webroot, causing the impression of being always the server root in Tomcat/webapps/ROOT.
      However, this should be easily fixed by adding an empty index.cfm template at the physical location of the webroot of IIS site or apache virtual host. When done, call the index.cfm file through port 80 of your IIIS or apache2 and wait for mod_,cfml to create the context in Tomcat.
      I'm going to add this ASAP in Lucees REST docs, which really needs to be updated soon.