Skip to content
Snippets Groups Projects
Commit 67b62e21 authored by inso's avatar inso
Browse files

Distinct post Identity and post Certification

parent 926c6c26
No related branches found
No related tags found
No related merge requests found
......@@ -27,17 +27,25 @@ class WOT(API):
class Add(WOT):
"""POST Public key data."""
"""POST Identity data."""
async def __post__(self, session, **kwargs):
assert 'pubkey' in kwargs
assert 'self_' in kwargs
assert 'other' in kwargs
assert 'identity' in kwargs
r = await self.requests_post(session, '/add', **kwargs)
return r
class Certify(WOT):
"""POST Certification data."""
async def __post__(self, session, **kwargs):
assert 'cert' in kwargs
r = await self.requests_post(session, '/certify', **kwargs)
return r
class Revoke(WOT):
"""POST Public key data."""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment