Firebase REST API: How to fetch data by priority like startAt/endAt in JS?

firebase

Solution

I believe this is now possible with the beta Queries API.

As per https://www.firebase.com/docs/beta/queries/rest.html:

The startAt parameter accepts whatever type you specify in orderBy. This query finds all dinosaurs at least 3 meters tall.

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"'

Problem

I need to fetch my data by a priority range, like you can with startAt/endAt in the JS, but in REST. Is it possible?

Original source