ToolJet/docs/versioned_docs/version-2.18.0/data-sources/grpc.md
Shubhendra Singh Chauhan 9f2ff94a12
[docs] platform 5.x (#7427)
* whtie label revamp

* minor changes

* updated beta info in copilot docs

* renamed gds to ds in overview doc of v2.15 onwards

* updated multienv: renamed gds to ds, updated screenshot

* updated multienv: app state description

* updated superadmin wrt new licensing updates

* licensing update: free trial

* updates in licensing

* changes after review

* [docs]updated restapi with bearer auth

* Update kubernetes-aks.md

* Update openshift.md

* Update ecs.md

* Update ecs.md

* Update kubernetes-gke.md

* Update kubernetes.md

* Update docker.md

* Update docker.md

* Update ecs.md

* Update google-cloud-run.md

* Update kubernetes-aks.md

* Update kubernetes-gke.md

* Update kubernetes.md

* Update openshift.md

* Update kubernetes-gke.md

* Update kubernetes-aks.md

* fixed ecs, removed heroku from 2.15 onwards

* updated digitalocean doc

* licensing doc changes and location

* Update digitalocean.md

* Update digitalocean.md

* added v2.18.0

---------

Co-authored-by: Adish M <44204658+adishM98@users.noreply.github.com>
2023-09-27 12:24:39 +05:30

2.1 KiB

id title
grpc gRPC
Self-hosted only

:::caution only self-hosted deployments will have access to a gRPC datasource that is capable of handling unary requests and responses. :::

Setup

Step 1: Upgrade ToolJet to the version 2.5 or above

Find instructions on how to do this in the setup guides located here: https://docs.tooljet.com/docs/setup/.

Step 2: Add proto files

At the root, create a directory named "protos" and add a "service.proto" file inside it.

Step 3: Mount Volumes

In the docker-compose.yml add

./protos:/app/protos

to the 2 volume sections for plugins and server

gRPC: datasource
gRPC: datasource

Step 4: Reboot the instance

docker-compose up -d

Querying gRPC

After setting up your proto files, you should be able to establish a connection to gRPC by going to the global datasource page.

Connect the gRPC datasource

ToolJet requires the following to connect to gRPC servers:

  • Server URL
  • Authentication type (None, Basic, Bearer, and API key)
gRPC: connection

Once you have added the gRPC from the global datasource page, you'll find it on the query panel of the application.

gRPC: connection

Creating query

You can now query a particular RPC method of the added services.

gRPC: connection