ruby-grape / grape-swagger

Add OAPI/swagger v2.0 compliant documentation to your grape API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

custom rewriting of endpoint paths

tansaku opened this issue · comments

So we have paths like:

/public/foo
/public/bar

which get rewritten by another service like so

/service/foo
/service/bar

I'd like to be able to add something in our grape swagger settings to be able to replace /public/ in all the paths with /service/ so that the outputted swagger matches the actual paths that one hits - is that currently possible in grape-swagger. I've been all through the docs and not found anything that looks like that option ...