Hartmut Goebel 3ee0f170c8
ci: Properly construct URLs.
Implement a new function "api-url", which constructs URLs using relative URI
and "resolve-uri-reference" (which implements the algorithm specified in RFC
3986 section 5.2.2) for building the URL, instead of just appending
strings. This avoids issued if the server-url ends with a slash.

Since "api-url" uses URI-objects, it makes sense to also construct the
query-part of the URL here. For this "api-url" accepts optional
key-value-pairs.

New function "json-api-fetch" is a wrapper using "api-url".

* guix/ci.scm (api-url): New function. (build): Use it.
  (json-api-fetch): New function. (queued-builds, latest-builds,
  evaluation, latest-evaluations, evaluation-jobs: Use it.
2021-07-16 19:48:24 +02:00
..
2021-03-06 11:41:48 +01:00
2019-12-15 00:34:05 +01:00
2021-07-16 19:48:24 +02:00
2020-07-05 03:15:08 +05:30
2021-07-04 04:35:35 +02:00
2021-01-04 23:54:16 +01:00
2020-07-05 16:07:59 +05:30
2020-12-09 22:25:17 +01:00
2020-04-17 23:36:47 +02:00
2021-01-04 23:54:16 +01:00
2021-01-04 23:54:16 +01:00
2021-04-12 18:42:22 +02:00
2021-06-24 23:43:05 +02:00
2020-12-19 23:25:01 +01:00
2021-05-11 12:49:53 +02:00
2021-06-14 18:35:18 +02:00