Apipost's gRPC module for simulating gRPC client requests with parameter mocking support. Version 2.0.7. Designed for use with Apipost 8. Provides a client class to load .proto files, list services and methods, and send gRPC requests with optional SSL/TLS support. Differentiator: integrates with Apipost ecosystem for API testing workflows.
npm install apipost-grpcNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize a gRPC client, send a request with headers and JSON body, and log the response.
Use path.resolve(__dirname, relativePath) to construct absolute path.
Ensure header array matches the exact schema, including is_checked as string '1' or '0'.
Use JSON.stringify on the body object before assigning to raw.
Provide path strings (e.g., ca: '/path/to/ca.crt') to ssl option.
Run 'npm install apipost-grpc' and ensure import is correct (named export).
Use 'import { ApipostGrpc } from 'apipost-grpc'' for ESM or 'const { ApipostGrpc } = require('apipost-grpc')' for CJS.Use an absolute path: path.resolve(__dirname, './protos/HelloWorld.proto').