0

In mantle REST API, partial updates are done with PATCH method. however tomcat does not support PATCH method yet.

My question is how the PATCH method is handled in default deployment (and most of deployment is done with Tomcat)?

Jimmy Shen
  • 240
  • 1
  • 12
  • 1
    Have you tried this with more recent code? I'll admit I need to do more extensive testing with some of this, and on different app servers, but the MoquiServlet now overrides the service() method instead of the doGet(), doPut(), etc methods. In the Java Servlet API there is no doPatch() method, so this seems to be the only way to get it. If there are issues with this we may have to change patch to not allowed and just use put. – David E. Jones Jun 02 '16 at 03:52
  • I tried this with the following and it made it through just fine (with the latest code... does need the MoquiServlet update!): – David E. Jones Jun 02 '16 at 04:07
  • curl -X PATCH -H "Content-Type: application/json" -u john.doe:moqui -d '{ "firstName":"Not John" }' http://localhost:8080/rest/s1/mantle/parties/EX_JOHN_DOE/user – David E. Jones Jun 02 '16 at 04:07
  • Great! just quick run it with c464d2f, the patch works fine. – Jimmy Shen Jun 03 '16 at 00:24

0 Answers0