Skip to content

Service option for Connect HTTP path #468

Description

@dgroux

I have not been able to figure out how to change the HTTP path for a Connect service method.

I think it would be best if we could specify the path in the service specification, as does GRPC gateway.
google.api.http

A custom path option specific to Buf Connect, something like:

service YourService { rpc Echo(StringMessage) returns (StringMessage) { option (connect.http.path) = "/v1/example/echo"; } }

It would be very useful to be able to support custom paths in my use case where the default (and case-sensitive)"/{service}/{method}" is not sufficient.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestwontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions