1.
Create gRPC Project: On the Apifox home page, click 'Create New Project' and select 'gRPC Project (Beta)'.
2.
Import Proto Files: gRPC is API-first, so you need to import .proto files that define the API. Apifox supports local and URL import, and adding dependency directories. If proto files are updated, right-click to re-import.
3.
Call Types: Apifox supports four gRPC call types:Server Streaming: Server streaming
Client Streaming: Client streaming
Bidirectional Streaming: Bidirectional streaming
4.
Auto-generate Dynamic Values: Automatically generate message bodies or configure dynamic data.
Use Variables: Messages and Metadata support referencing environment variables.
Enable TLS: Enable secure connections via the protocol selector or grpcs://.
5.
Manage Server Addresses: Add commonly used server addresses to environment variables for unified management.
6.
View Proto Files & Parameters: View raw proto content, automatically display request/response parameters in JSON format for more intuitive debugging.
7.
Save Debug Data: After debugging, save server addresses, message bodies, and Metadata for team collaboration.
With a user-friendly interface and comprehensive features, Apifox is an excellent tool for gRPC API debugging, especially for high-performance communication and complex data scenarios.