Skip to main content

Directory APIs

As of Topaz 0.30+, the Directory APIs are exposed both over gRPC as well as REST.

note

Prior versions only support the v2 gRPC contracts. To use the new contracts, upgrade to Topaz 0.30+.

gRPC

By default, Topaz exposes all of the directory gRPC endpoints on port 9292. You can override this in config, and configure separate endpoints for the Reader, Writer, Import, and Export services.

Topaz 0.30+ supports two contracts side-by-side - v2 and v3. You can find the contracts on buf.

The v2 Directory APIs are organized into four services:

The v3 Directory APIs add a Model service as well.

The Reader APIs and Writer APIs can be used to read and write data to the directory.

The Import and Export APIs can be used to stream data in and out of the directory.

The Model APIs can be used to get, set, and delete a directory manifest.

REST

Topaz 0.30+ supports REST APIs in addition to the gRPC contracts.

By default, Topaz exposes the directory REST endpoints on port 9393. You can override this in config, and configure separate endpoints for the Reader, Writer, Model, Import, and Export services.

The reference documentation for the REST APIs can be found here.