Change REST in according to standards

Change REST in according to standards

ashl1ashl1 Posts: 18Questions: 5Answers: 1

Now Editor don't really support Rest (resources) but only HTTP methods. I decided to change Editor or make plugin to make requests and response assertion stay more closely to REST, especially to work with Flask-RESTless (http://flask-restless.readthedocs.org/en/latest/requestformat.html)
What special properties of Editor I should now to realize that? Any suggestions about page to which the code should be located or hooks/events to be listen for?

Replies

  • allanallan Posts: 61,840Questions: 1Answers: 10,134 Site admin

    Use the preSubmit ande-init postSubmit` events to transform the data from and to the formats that Editors uses into whatever your REST API expects.

    "Supporting" REST is difficult to done fully out of the box, since every REST interface is a little different in what parameters it expects and will return.

    Allan

This discussion has been closed.