Skip to content

Commit ea508ad

Browse files
authored
Update httpapi.md (#20132)
1 parent 6b4b93e commit ea508ad

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

aspnetcore/grpc/httpapi.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ package greet;
5353
service Greeter {
5454
rpc SayHello (HelloRequest) returns (HelloReply) {
5555
option (google.api.http) = {
56-
get: "v1/greeter/{name}"
56+
get: "/v1/greeter/{name}"
5757
};
5858
}
5959
}
@@ -78,11 +78,11 @@ Server logs show that the HTTP call is executed by a gRPC service. gRPC HTTP API
7878
info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
7979
Request starting HTTP/1.1 GET https://localhost:5001/v1/greeter/world
8080
info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0]
81-
Executing endpoint 'gRPC - v1/greeter/{name}'
81+
Executing endpoint 'gRPC - /v1/greeter/{name}'
8282
info: Server.GreeterService[0]
8383
Sending hello to world
8484
info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1]
85-
Executed endpoint 'gRPC - v1/greeter/{name}'
85+
Executed endpoint 'gRPC - /v1/greeter/{name}'
8686
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
8787
Request finished in 1.996ms 200 application/json
8888
```

0 commit comments

Comments
 (0)