Build a fully-qualified URL from a path and optional query parameters.
Throws a PegelValidationError for a path with a "." or ".." segment. The resource methods
put ids into the path with encodeURIComponent, which leaves those two
unchanged, and URL parsing then resolves them: currentMeasurement("BONN", "..")
would request /stations/currentmeasurement.json (a station of that name).
Neither can name a resource. (Percent-encoded forms such as "%2e%2e" are safe:
encodeURIComponent turns their "%" into "%25".)
Build a fully-qualified URL from a path and optional query parameters.
Throws a PegelValidationError for a path with a "." or ".." segment. The resource methods put ids into the path with
encodeURIComponent, which leaves those two unchanged, and URL parsing then resolves them:currentMeasurement("BONN", "..")would request/stations/currentmeasurement.json(a station of that name). Neither can name a resource. (Percent-encoded forms such as "%2e%2e" are safe: encodeURIComponent turns their "%" into "%25".)