Rest API for Google Firestore

I´m trying to use Firestore for a simple app. Google Firestore is a very easy to use NonSQL database and is free for small projects that scales without problem.

I can get the Composer Pro REST API to work with the following configuration:

Base:
Resource URL: https://firestore.googleapis.com/v1/
GET ALL:
Relative path: projects/{database}/databases/(default)/documents/./{collection id}
Response keypath: documents
GET ONE:
Relative path: projects/{database}/databases/(default)/documents/./{collection id}/{id}

for:

  1. Getting all the documents on a collection using the (GET ALL)
  2. Getting one document by ID (GET ONE)

Although in the Firestore REST API Explorer works fine, I haven’t been able to get Composer Pro REST API to:

  1. Query the database and get a record (document) by field content
  2. Post a record (document)
  3. Patch a record

Any suggestion?

1 Like

This thread was continued here: REST API for Google Firestore Tutorial