after reading this answer https://stackoverflow.com/a/51614256/15486192 from @Arsam, i am successfully sending data from nodeMcu esp8266 to firebase. but i am using Database secrets Although it is deprecated.
and while searching for an alternative i came across firebase REST
Firebase Database REST API
API Usage
You can use any Firebase Realtime Database URL as a REST endpoint. All you need to do is append .json to the end of the URL and send a request from your favorite HTTPS client. HTTPS is required. Firebase only responds to encrypted traffic so that your data remains safe.
after reading that, anyone conclude that you can send data to firebase using HTTPS request.
so my questions,
is REST API just an HTTP request? i am just confused if it is, then why just not naming it HTTP API? can i send my data to firebase Realtime-database using only https request from my client?if yes then how