Home How to send a REST request to Cloud Firestore
Reply: 0

How to send a REST request to Cloud Firestore

user839
1#
user839 Published in June 20, 2018, 7:30 am

I've build an Android app using Firebase, but I'd like to test the performance of the Cloud Firestore using REST requests (through Postman). I've looked up some info on some sites from Firebase, but everytime I send a request, I get a 404 Not Found.

The Authentication I use seems to work, by doing a POST request to https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyPassword?key=MY_API_KEY I'm able to get a Firebase Id Token.

After that I tried sending a GET request to https://firestore.googleapis.com/v1beta1/parent=projects/MY_PROJECT_ID/databases/(default)/documents/MY_COLLECTION_ID with the token as Authrorization header, but everytime I seem to get 404 Page Not Found.

I'm not sure what I'm doing wrong and I hope someone can help me with this.

Thanks in advance!

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.306896 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO