diff --git a/README.md b/README.md index 2a1b80e..51c021e 100644 --- a/README.md +++ b/README.md @@ -102,6 +102,14 @@ Retrieves the key with the given *User ID*. Only exact matches are accepted. Lookup by *User ID* requires opt-in by the key's owner. The returned key is *ASCII Armored*. +#### `POST /vks/v1/publish` + +Keys may be submitted using a POST request to `/vks/v1/publish`, the +body of the request being a `multipart/form-data` query. `keytext` +must be the keys to submit, either *ASCII Armored* or not. More than +one key may be submitted in one request. Hagrid will send +verification emails to every non-expired *User ID*. + Building -------- diff --git a/dist/templates/apidoc.html.hbs b/dist/templates/apidoc.html.hbs index a262ebb..7c0b00c 100644 --- a/dist/templates/apidoc.html.hbs +++ b/dist/templates/apidoc.html.hbs @@ -37,6 +37,17 @@ by the key's owner. The returned key is ASCII Armored.
+POST /vks/v1/publish
+ Keys may be submitted using a POST request
+ to /vks/v1/publish
, the body of the request being
+ a multipart/form-data
query. keytext
+ must be the keys to submit, either ASCII Armored or not.
+ More than one key may be submitted in one request. Hagrid will
+ send verification emails to every non-expired User ID.
+
Hagrid implements a subset of diff --git a/dist/templates/publish.html.hbs b/dist/templates/publish.html.hbs index 123f8c2..e476ef4 100644 --- a/dist/templates/publish.html.hbs +++ b/dist/templates/publish.html.hbs @@ -2,7 +2,7 @@
After uploading your key we will send a verification link to each email address we find inside. Clicking that link will make your key searchable by that email address.