Database
Introduction
The Rocket Networking API allows users to interact with their database, which is backed by Firebase Firestore. To access the API, use the following base URL:
Authentication
For authentication, include your serverId
in the Authorization header for all requests. No additional authentication parameters, such as Bearer tokens, are required.
Example
Endpoints
Retrieve Document (GET)
Retrieve a document from the specified collection and document ID.
Request
Response
The API will return the requested document in the response body and 200 status code.
Create or Overwrite Document (POST)
Create or overwrite a document in the specified collection. Include the data to be stored in the request body.
They request body is key for key replicated in the document fields.
Request
Response
The API will return 201 success code.
Append Document (PATCH)
Patch a document in the specified collection. Include the data to be patched in the request body.
This takes the keys which are not there in the original document and adds them, and for the keys which are there in the document on the database, it overwrites the values with the value you provided in the request body
They request body is key for key replicated in the document fields.
Request
Response
The API will return 201 success code.
Delete Document (DELETE)
Delete a document from the specified collection.
Request
Response
The API will return a status 204 for successful deletion.
Example Usage
Retrieve Document
Create or Overwrite Document
Patch Document
Delete Document
Last updated