wotpy.wot.dictionaries.link¶
Wrapper classes for link dictionaries defined in the Scripting API.
Classes
FormDict (*args, **kwargs) |
Communication metadata indicating where a service can be accessed by a client application. |
LinkDict (*args, **kwargs) |
A Web link, as specified by IETF RFC 8288. |
-
class
wotpy.wot.dictionaries.link.
FormDict
(*args, **kwargs)¶ Bases:
wotpy.wot.dictionaries.link.LinkDict
Communication metadata indicating where a service can be accessed by a client application. An interaction might have more than one form.
-
class
Meta
¶ Bases:
object
-
defaults
= {'contentType': 'application/json'}¶
-
fields
= {'anchor', 'contentType', 'href', 'op', 'rel', 'scopes', 'security', 'subprotocol', 'type'}¶
-
required
= {'href'}¶
-
-
resolve_uri
(base=None)¶ Resolves and returns the Link URI. When the href does not contain a full URL the base URI is joined with said href.
-
security
¶ Set of security configurations, provided as an array, that must all be satisfied for access to resources at or below the current level, if not overridden at a lower level
-
class
-
class
wotpy.wot.dictionaries.link.
LinkDict
(*args, **kwargs)¶ Bases:
wotpy.wot.dictionaries.base.WotBaseDict
A Web link, as specified by IETF RFC 8288.