-
Each gRPC API container must provide the following file:
/api/main.proto -
The
/apidirectory is a shared Docker volume. It is provided by the gRPC API container and used by the API adapter container. The API adapter container loads the/api/main.protofile to communicate with the gRPC API container.- Therefore, the
Dockerfileof the gRPC API container must include the statementVOLUME /api.
- Therefore, the
-
The
/api/main.protofile is the only required file. Therefore each API adapter must work properly based on this file without any additional metadata. -
The
/apidirectory can optionally contain additional files such as metadata, which may be read and considered by certain API adapters. -
The
/api/main.protofile must follow the Protocol Buffers specification version 3 (proto3). Each API adapter must understand all proto3 and gRPC features: -
The environment variables
API_HOST(IP address or hostname) andAPI_PORT(port number) must be provided to the API adapter, so the adapter can connect to the gRPC API. -
The environment variable
API_PROTO_PATHcan optionally be provided to the API adapter to load another proto3 file instead of the default/api/main.proto. Each API adapter must process and respect this variable if it is set.
-
Notifications
You must be signed in to change notification settings - Fork 0
APIBrickwork/specs
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
Specification for the interface between API Adapter containers and gRPC containers.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published