-
Each gRPC API container must provide the following file:
/api/main.proto
-
The
/api
directory 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.proto
file to communicate with the gRPC API container.- Therefore, the
Dockerfile
of the gRPC API container must include the statementVOLUME /api
.
- Therefore, the
-
The
/api/main.proto
file is the only required file. Therefore each API adapter must work properly based on this file without any additional metadata. -
The
/api
directory can optionally contain additional files such as metadata, which may be read and considered by certain API adapters. -
The
/api/main.proto
file 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_PATH
can 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