aboutsummaryrefslogtreecommitdiff
path: root/doc/proposals/2022-01-log-url
blob: 0ec67c09d843b51aee6927f89d4538a1b38de319 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Redefine "base URL" as "log URL" proposal

Background
---
The current api.md specification requires that a log has a fixed unique "base
URL".  It is any valid HTTP(S) URL that can end with "/sigsum/v0/<endpoint>".

Proposal
---
Remove the term "base URL" and instead define "log URL".  A log URL is a valid
HTTP(S) URL that ends with "/sigsum/v0".  Example of a valid log URL:

	https://example.com:4711/opposum/sigsum/v0

This means that a named sigsum endpoint can be appended to a log's URL.  For
example, if the endpoint is "get-tree-head-cosigned" the resulting "endpoint URL"
would be:

	https://example.com:4711/opposum/sigsum/v0/get-tree-head-cosigned

And with input parameters for "get-leaves":

	https://example.com:4711/opposum/sigsum/v0/get-leaves/42/4711