I am trying to use firebase database as my rest api and I am POSTed data in the following way
https://doctorapp-b8180.firebaseio.com/app.json
POST body
{"name":"facebook"}
It is very simple, it has one node called app that has child called name.
But when I POST what is happening is that its adding some sort of key. which looks like this.
KjIoN-2vKwHFHwwKf9y
Now, I need to do GET request and I need app with name facebook, but I cannot get that element because of the key POST request added. This is my GET request
https://doctorapp-b8180.firebaseio.com/app/facebook/name.json
This is returning null. But when I add the key like the following, its working
https://doctorapp-b8180.firebaseio.com/app/KjIoN-2vKwHFHwwKf9y/facebook/name.json
the thing is I want to GET data with name parameter not without key. Is it possible. Besides when I add an element I do not know it's key.