# Enabling grpc server reflection extension

**URL:** <https://forum.canton.network/t/enabling-grpc-server-reflection-extension/5115>\
**Category:** App Development\
**Tags:** ledger-api\
**Created:** [August 22, 2022, 11:30am UTC](https://forum.canton.network/t/enabling-grpc-server-reflection-extension/5115 "2022-08-22T11:30:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Darko](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/darko/32/42_2.png) [@Darko](https://forum.canton.network/u/Darko)\
**Post date:** [August 22, 2022, 11:30am UTC](https://forum.canton.network/t/enabling-grpc-server-reflection-extension/5115/1 "2022-08-22T11:30:48Z")

</div>

Would there be a downside to enabling grpc [server reflection](https://github.com/grpc/grpc/blob/25e71100039565152104f12695fb2a2edc9cd253/doc/server-reflection.md) on the ledger-api?

Given that Postman has started supporting gRPC, and as of this version, they fixed a [bug](https://github.com/grpc/grpc/blob/25e71100039565152104f12695fb2a2edc9cd253/doc/server-reflection.md) that prevented our protos to be imported, it would be neat if one could easily test/explore the LedgerAPI with Postman.

One way would be to grab all the protos from the repository and then import all of them individually.  
There is also the possibility of using grpc server reflection. However, when trying it, postman returns “Server Reflection Failed”. I’m assuming that the extension is not enabled as described [here](https://github.com/grpc/grpc-java/blob/9ed5a1bbbf53077110167261edc1d4e4c5864e35/documentation/server-reflection-tutorial.md#enable-server-reflection).

Would it be sensible to enable this extension?

---

<div class="post-metadata">

**Author:** ![cocreature](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/cocreature/32/36_2.png) [@cocreature](https://forum.canton.network/u/cocreature)\
**Post date:** [August 22, 2022, 11:53am UTC](https://forum.canton.network/t/enabling-grpc-server-reflection-extension/5115/2 "2022-08-22T11:53:20Z")

</div>

As far as I know grpc reflection _is_ enabled. Running grpcurl against the ledger API exposed by `daml sandbox` works without any issues:

```haskell
moritz@adjunction ~ [2]> grpcurl -plaintext localhost:6865 list
com.daml.ledger.api.v1.ActiveContractsService
com.daml.ledger.api.v1.CommandCompletionService
com.daml.ledger.api.v1.CommandService
com.daml.ledger.api.v1.CommandSubmissionService
com.daml.ledger.api.v1.LedgerConfigurationService
com.daml.ledger.api.v1.LedgerIdentityService
com.daml.ledger.api.v1.PackageService
com.daml.ledger.api.v1.TransactionService
com.daml.ledger.api.v1.VersionService
com.daml.ledger.api.v1.admin.ConfigManagementService
com.daml.ledger.api.v1.admin.MeteringReportService
com.daml.ledger.api.v1.admin.PackageManagementService
com.daml.ledger.api.v1.admin.ParticipantPruningService
com.daml.ledger.api.v1.admin.PartyManagementService
com.daml.ledger.api.v1.admin.UserManagementService
grpc.health.v1.Health
grpc.reflection.v1alpha.ServerReflection

```

There was a bug in some older versions so make sure that you’re testing against 2.3.2.

---

<div class="post-metadata">

**Author:** ![Darko](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/darko/32/42_2.png) [@Darko](https://forum.canton.network/u/Darko)\
**Post date:** [August 22, 2022, 11:55am UTC](https://forum.canton.network/t/enabling-grpc-server-reflection-extension/5115/3 "2022-08-22T11:55:08Z")

</div>

I’ve just realized that it must be enabled by looking here

> <https://github.com/digital-asset/daml/blob/95d00c4e8ac307cee9e64f85e30c148f69d36e07/ledger/participant-integration-api/src/main/scala/platform/apiserver/ApiServices.scala>

Hmm - then I’ll have to figure out why postman doesn’t like it.

Thanks @cocreature
