title: What is event stream in rest api and why do we need it?
body: <p>I'm trying to develop rest api for the first time. And looking to loopback references that uses change stream for the resources like <code>/resources/change-stream</code> with the GET and POST methods.</p>
  
  <p>I have visited <a href="https://stackoverflow.com/q/5960128/2138752">this post</a> which indicates differences between rest api and streaming api.</p>
  
  <p>While the loopback is providing it in rest api, I think. What is it and what it does. Can you please explain it to me in a way that you're making clear to me (for a six years old child). Because, I am developing REST API for the first time in my own. So, I would like to understand step by step if possible like what should I have in the postman. Should I use the url like <code>'/api/resources/change-stream?_format=event-stream</code> along with <code>application/json</code> content-type or just <code>/api/resources/change-stream</code> would be fine.</p>
  
  <p>It would be great example if you could provide me some real example so that I can develop it trying in my own application.</p>
  
  <p>PS: It's perfectly fine to me whichever language (Node.js, Python, Ruby, PHP) you'd choose to provide answer with some examples.</p>