Firebase REST API: how to get priority data like startAt / endAt in JS?

I need to get my priority range data, for example, using startAt / endAt in JS, but in REST. Is it possible?

+7
source share
2 answers

I believe this is now possible using beta API requests.

According to https://www.firebase.com/docs/beta/queries/rest.html :

The startAt parameter accepts any type that you specify in orderBy. This query finds all dinosaurs at least 3 meters high.

curl 'https://dinosaur-facts.firebaseio.com/.json?orderBy="height"&startAt=3' 

And this query finds all dinosaurs, starting with Stegosaurus.

 curl 'https://dinosaur-facts.firebaseio.com/.json?orderBy="$key"&startAt="stegosaurus"' 
+4
source

This is not possible using the REST API.

However, you can run the Node.js client on your own server and request data this way: https://www.firebase.com/docs/nodejs-quickstart.html

+2
source

All Articles