title: Are this firebase rules & the PUT and GET request correct? (Angular + Firebase)
body: <p>I want the user to only see his own posts and noone should access his posts.
  Auth + posting is possible already and working. But without firebase restrictions.</p>
  <p>For firebase I plan on using this rules. Is that alright?</p>
  <pre><code>{
    &quot;rules&quot;: {
      &quot;notes&quot;: {
        &quot;$uid&quot;: {
          &quot;.read&quot;: &quot;auth != null &amp;&amp; auth.uid == $uid&quot;,
          &quot;.write&quot;: &quot;auth != null&quot;
        }
      }
    }
  }
  </code></pre>
  <p>Put request in angular:</p>
  <pre><code>this.http
        .put(
          'https://_____.firebaseio.com/notes.json?auth=&lt;ID_TOKEN&gt;',
          notes
        )
  </code></pre>
  <p>Get request in angular (here in the complete function)</p>
  <pre><code>loadNotes() {
      return this.http
        .get&lt;Note[]&gt;(
          'https://______.firebaseio.com/notes.json?auth=&lt;ID_TOKEN&gt;'
        )
        .pipe(
          map(notes =&gt; {
            return notes.map(note =&gt; {
              return {
                ...note
              };
            });
          }),
          tap(notes =&gt; {
            this.noteService.setNotes(notes);
          })
        );
    }
  }
  </code></pre>
  <p>I think the most critical points here are the links to the firebase database and the firebase rules.</p>
  <p>I really would appreciate some help!! thanks.</p>