blob: ca0f94589a16df1856d6d751b459f5b627833801 [file] [log] [blame]
.. _BBSimAPI:
REST APIs
=========
BBSimAPI
--------
BBSim exposes gRPC and REST APIs for external control of the simulated OLT. The
API is defined using the protocol buffer specification in
`api/bbsim/bbsim.proto`.
By default, the gRPC server is started on port 50070 and the REST server is
started on port 50071. The following endpoints are currently defined:
.. openapi:: ../swagger/bbsim/bbsim.swagger.json
Legacy BBSimAPI
---------------
Additionally, a legacy API is available, defined in `api/legacy/bbsim.proto`.
This API is deprecated and will be removed once BBSim reaches feature parity
with the legacy version.
By default, the legacy gRPC server is started on port 50072 and the
corresponding REST server is started on port 50073. The following endpoints are
currently defined:
.. openapi:: ../swagger/legacy/bbsim.swagger.json