>_ RESTERM
v1.18.2

examples Protocols

grpc.http

gRPC with server reflection, metadata and a plaintext override, and a call that reads a local .proto file.

needs your own server

shell
resterm run --request GrpcReportStatus _examples/grpc.http

Run this from the root of a clone of the Resterm repository.

Editor
### Generate Report Over gRPC
# @name GrpcGenerateReport
# @tag grpc reports
# @description Demonstrates @grpc metadata, reflection, and plaintext override.
# @grpc analytics.ReportingService/GenerateReport
# @grpc-reflection true
# @grpc-plaintext true
# @grpc-authority {{grpc.authority}}
# @grpc-metadata x-trace-id: {{$uuid}}
GRPC {{grpc.host}}

{
  "tenantId": "{{tenant.id}}",
  "reportId": "rep-{{$uuid}}",
  "includeHistorical": true
}

### Fetch Report Status With a Proto File
# @name GrpcReportStatus
# @tag grpc reports
# @description Uses a local proto file and additional metadata.
# @grpc analytics.ReportingService/GetReportStatus
# @grpc-proto ./proto/analytics.proto
# @grpc-metadata authorization: Bearer {{auth.token}}
GRPC {{grpc.host}}

{
  "reportId": "rep-{{$uuid}}"
}

_examples/grpc.http on GitHub

gRPC docs
Search

↑↓ moveEnter openEsc close

Help

These keys work like the ones in the TUI.

/
Search the docs (also Ctrl K)
j k
Scroll down and up
g g G
Jump to the top or the bottom
[ ]
Previous and next page
g d
Docs index
g h
Home page
t
Switch between dark and light
?
Show this help
Esc
Close a dialog