Derives the REST base from the GraphQL endpoint URL by dropping trailing slashes and /graphql. A scan, not a regex: //+$/ backtracks quadratically on a long run of slashes that does not end the string, and the URL comes from host configuration.
/graphql
//+$/
Derives the REST base from the GraphQL endpoint URL by dropping trailing slashes and
/graphql. A scan, not a regex://+$/backtracks quadratically on a long run of slashes that does not end the string, and the URL comes from host configuration.