Implement hkp index/mr

This commit is contained in:
Tankred Hase
2016-06-02 19:34:24 +02:00
parent e60c6ed8c5
commit 20145d3a11
4 changed files with 61 additions and 26 deletions

View File

@@ -55,26 +55,26 @@ keytext=-----BEGIN PGP PUBLIC KEY BLOCK----- ... -----END PGP PUBLIC KEY BLOCK--
### Lookup a key
Currently only the `get` operation is implemented. Other operations will return a `501` (not implemented) http error code.
Currently only the `get` and `index` (with options=mr) operations are implemented. Other operations will return a `501` (not implemented) http error code.
#### By key id
#### By key id (get)
```
GET /pks/lookup?op=get&search=0x0123456789ABCDEF
```
#### By email address
```
GET /pks/lookup?op=get&search=user@example.com
```
#### Machine readable
#### By email address (get, mr)
```
GET /pks/lookup?op=get&options=mr&search=user@example.com
```
#### By key id (index, mr)
```
GET /pks/lookup?op=index&options=mr&search=0x0123456789ABCDEF
```
## REST api