title: meteor restivus endpoints configuration
body: <p>so i have meteor running and i wish to expose a REST API. i decided to choose restivus as it seemed a bit cleaner and more flexible to me.</p>
  
  <p>so my basic code is:</p>
  
  <pre><code>if (Meteor.isServer) {
    Meteor.startup(function () {
  
      // Sensors = new Meteor.Collection('sensor');
  
      Restivus.configure({
        useAuth: false,
        prettyJson: false
      });
      Restivus.addCollection("sensor", {
        defaultOptions: {},
      });
  
    });
  }
  </code></pre>
  
  <p>and i can query it fine using:</p>
  
  <pre><code>$ curl -X GET http://localhost:3000/api/sensor
  {"status":"success","data":[{"_id":{"_str":"00000000236668afaf952dee"},"ts":1424246899,"temp":28,"humidity":33}]}
  </code></pre>
  
  <p>hmm... so the '_id' i manually enter (rather than letting mongo set it for me) looks a bit strange in the output; but okay, i guess it's an <code>ObjectId()</code>. however, when i go about with a GET, it fails:</p>
  
  <pre><code>$ curl -X GET http://localhost:3000/api/sensor/00000000236668afaf952dee
  </code></pre>
  
  <p>{"status":"fail","message":"Item not found"}</p>
  
  <p>what am i doing wrong?</p>