From 8374382b016a6a3b12bfe846077611f5bc0484fb Mon Sep 17 00:00:00 2001 From: Vincent Breitmoser Date: Tue, 21 May 2019 03:26:25 +0200 Subject: [PATCH] document api changes --- dist/assets/site.css | 25 +++ dist/templates/about/api.html.hbs | 252 +++++++++++++++++++++--------- 2 files changed, 203 insertions(+), 74 deletions(-) diff --git a/dist/assets/site.css b/dist/assets/site.css index 881b9aa..c480fb0 100644 --- a/dist/assets/site.css +++ b/dist/assets/site.css @@ -47,6 +47,31 @@ code.snippet { padding: 1em; } +.example { + display: flex; +} +.example div { + flex: 1; + min-width: 0; +} + +blockquote { + background: #f9f9f9; + border-left: 10px solid #ccc; + margin: 1.5em 10px; + padding: 0.5em 10px; +} +blockquote:before { + color: #ccc; + font-size: 4em; + line-height: 0.1em; + margin-right: 0.25em; + vertical-align: -0.4em; +} +blockquote p { + display: inline; +} + li { text-align: left; } diff --git a/dist/templates/about/api.html.hbs b/dist/templates/about/api.html.hbs index dfb1e35..7eb9848 100644 --- a/dist/templates/about/api.html.hbs +++ b/dist/templates/about/api.html.hbs @@ -6,50 +6,146 @@ Hagrid implements both the legacy HKP interface, as well as our native interface, VKS.

-

VKS interface

+ +

Verifying Keyserver (VKS) Interface

Hagrid has its own URL scheme to fetch keys.

-

GET /vks/v1/by-fingerprint/<FINGERPRINT>

+ -

HPK interface

+

HTTP Keyserver Protocol (HKP) Interface

Hagrid implements a subset of the HKP @@ -57,54 +153,64 @@ without modification.

-

GET /pks/lookup?op=get&options=mr&search=<QUERY>

- -

Returns an ASCII Armored key matching the query. Query may be:

- -

- Note that while the hexadecimal digits may use either case, using - upper case letters is more efficient with Hagrid. -

- -

GET /pks/lookup?op=index&options=mr&search=<QUERY>

- -

- Returns - a machine-readable - list of keys matching the query. Query may have the forms - detailed above. Hagrid always returns either one or no keys at - all. -

- -

POST /pks/add

- -

- Keys may be submitted using a POST request - to /pks/add, the body of the request being - a application/x-www-form-urlencoded query. - keytext must be the keys to submit, which must - be ASCII Armored. More than one key may be submitted in - one request.

-

-

Limitations

- By design, Hagrid cannot (or intentionally chooses not to) implement, - the full HKP protocol. The main limitations are: + By design, Hagrid does not implement the full HKP protocol. The specific + limitations are:

-

- « Back -

+ {{/layout}}