We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9982
    • 2 Posts
    good day.

    Im using this
    http://rtfm.modx.com/revolution/2.x/developing-in-modx/advanced-development/developing-rest-servers

    created a simple component connected REST API.
    able to get a GET but it is impossible to update the data request PUT (from postman chrome extension)
    what am I doing wrong?

    my connector video.php
    <?php
    
    class MyControllerVideo extends modRestController {
        public $classKey = 'lfvideoItem';
        public $defaultSortField = 'id';
        public $defaultSortDirection = 'DESC';
    
    }
    


    my lfvideoitem.class.php
    <?php
    /**
     * @package lfvideo */
    class lfvideoItem extends xPDOSimpleObject {}
    


    screenshot PUT in Postman:
    http://cropme.ru/13260b073b041b2eeb963a53b1079270

      • 12320
      • 88 Posts
      i never tried this wonderfull module but when put is not available, it sometimes means that you are not well authenticated
        Thanks to the authors of the following code :
        Easy Newsletter (module)
        SiteMap (snippet)
        Codepress (Plugins)
        Strict URLs (Plugins)
        Virtual Aliases (Plugins)
        Maxygallery (snippet)