Using GRPC UI to use an API

In this example we will use the People API as an example.

Get GRPC UI

You can get GRPC UI by following the steps in this Github Repository.

Using GRPC UI

First open the APIs Repository on your local setup. For example:

git clone [get this part from gitlab]

Get credentials using cli-auth

If you don't have cli-auth install it here.

In order to obtain Credentials run the following:

cli-auth -client_id sip-apps-peopleapicli -scope openid -ports 58632

Then copy the access_token.

Make a request using GRPC UI

In order to use GRPC UI enter the following into the terminal:

grpcui -proto sip/people/people.proto people.api.getsip.ethz.ch:443

Now you will need the credentials we just generated. Enter "Authorization" in the Name field and "Bearer" followed by the access_token in the Value field in order to authenticate.