Description
📚 Documentation
Looking at #720
it seems the path patterns support some sort of {foo=bar}
templating, but I can't seem to find any docs about it, what it does, how it works, or it's use in any examples.
Furthermore, there is no indication of where users can ask questions (whether it's the issue tracker, forum, mailing list etc).
Hence I am dumping it here:
I'd like to implement a rpc method with optional parameters for paging.
Namely:
GET /books = returns all books
GET /books/{page}/{per_page} = returns paginated books
I assume I might be able to do something like:
get: "/books/{page=0}/{per_page=0}
But it seems the swagger spec generated has both parameters as required and not optional and default value is nowhere to be seen, so I assume this doesn't do what I want.
Does this really need to be two separate grpc methods?
I guess I could have additional_bindings
with the path parameters, but then I get an ugly GetBooks, GetBooks2 operations.
Is there a way to control the operation name for the additional binding, so I could call it GetBooksPaginated or something?