title: Polymer REST backend
body: <p>I have a backend written in golang exposing /api/list interface. It returns lists when called from GET and create new list when it receive POST with parameters.
  I can read it with standard core-ajax element, there is a huge amount of examples to do that. </p>
  
  <p>What I didn't understood is what should I do, when I want to create new element through POST? I read the documentation and searched for sample code for half day, can you point me to right direction?
  //
  Ok, thanks for help, it was really only bad format of json I was sending. There is still dark cloud in my mind telling that I misunderstood something from conceptual view. Is this:</p>
  
  <pre><code>&lt;link rel="import" href="bower_components/polymer/polymer.html"&gt;
  &lt;link rel="import" href="bower_components/core-ajax/core-ajax.html"&gt;
  
  &lt;polymer-element name="channels-service" attributes="channels"&gt;
    &lt;template&gt;
      &lt;style&gt;
      :host {
        display: none;
      }
      &lt;/style&gt;
      &lt;core-ajax id="ch_load"
        auto
        url="/api/list"
        on-core-response="{{channelsLoaded}}"
        handleAs="json"&gt;
      &lt;/core-ajax&gt;
      &lt;core-ajax id="ch_update"
        url="/api/list"
        on-core-response="{{channelsUpdated}}"
        method="POST"
        handleAs="json"&gt;
      &lt;/core-ajax&gt;
    &lt;/template&gt;
    &lt;script&gt;
    Polymer('channels-service', {
      created: function() {
        this.channels = [];
      },
      channelsLoaded: function() {
        // Make a copy of the loaded data
        this.channels = this.$.ch_load.response.slice(0);
      },
      newChannel: function(ch_name) {
       // this.$.ch_update.body = "ch_name";
       this.$.ch_update.body = '{"Name":"pitchalist2"}'
        this.$.ch_update.go();
      },
      channelsUpdated: function() {
        //window.log(this.$.ch_update.response.slice(0));
      }
    });
    &lt;/script&gt;
  &lt;/polymer-element&gt;
  </code></pre>
  
  <p>correctly written data layer? It looks very counterintuitive to me and in examples using local data storage it works way easier.</p>