taler-docs

Documentation for GNU Taler components, APIs and protocols
Log | Files | Refs | README | LICENSE

canonicalize-base-url.rst (703B)


      1 .. ts:op:: canonicalizeBaseUrl
      2   :read-only:
      3 
      4   Canonicalize a base URL the way wallet-core does for exchange and
      5   auditor base URLs.
      6 
      7   **Request:**
      8 
      9     The request must be a `CanonicalizeBaseUrlRequest` object.
     10 
     11   **Response:**
     12 
     13     On success, the result is a `CanonicalizeBaseUrlResponse`
     14     object.
     15 
     16   **Details:**
     17 
     18     An ``https://`` scheme is prepended when the URL has no scheme,
     19     a trailing slash is appended to the path when missing, and any
     20     query and fragment are removed.
     21 
     22 .. ts:def:: CanonicalizeBaseUrlRequest
     23 
     24   interface CanonicalizeBaseUrlRequest {
     25     url: string;
     26   }
     27 
     28 .. ts:def:: CanonicalizeBaseUrlResponse
     29 
     30   interface CanonicalizeBaseUrlResponse {
     31     url: string;
     32   }