title: admin-on-rest Using PATCH method
body: <p>I am a junior node developer and am trying out admin on rest to quickly run up an admin panel for my json api. However, all of my update requests use patch instead of put. I attempted revising the UPDATE method in my restClient but this seems wrong (the rest of the methods are removed for brevity)</p>
  
  <pre><code>export default (apiUrl, httpClient = fetchJson) =&gt; {
  const convertRESTRequestToHTTP = (type, resource, params) =&gt; {
      let url = ''
      const options = {}
      switch (type) {
        case UPDATE:
          url = `${apiUrl}/${resource}/${params.id}`
          options.method = 'PATCH'
          options.body = JSON.stringify(params.data)
          break
  
      return { url, options }
    }
  }
  </code></pre>
  
  <p>To me this makes sense but when I try to edit an object I get back <code>HTTP/1.1 404 Not Found</code> <code>&lt;pre&gt;Cannot PUT &lt;/pre&gt;</code>
  I know that that this wasn't possible with previous versions but I read this <a href="https://marmelab.com/blog/2017/03/10/admin-on-rest-0-9.html#http-patch" rel="nofollow noreferrer">https://marmelab.com/blog/2017/03/10/admin-on-rest-0-9.html#http-patch</a> but was a little confused on how it works? I guess I just don't know where to start with this.</p>