pytan3.adapters.
magic_endpoint
Build a REST API endpoint from an API object.
pytan3.api_models.ApiModel
str
Manually provided target.
Defaults to: None.
bool
Try to identify the target from obj by getting “id” or “name” attributes if their values are not None.
Defaults to: True.
Throw an exception if a target is not automatically determined from obj.
Defaults to: False.
exceptions.ModuleError – If needs_target is True and resolved target is None.
exceptions.ModuleError
build_endpoint
Build a REST endpoint string by joining route and target.
Target part of endpoint.
Defaults to None.
serialize_json
Encode python object into a JSON string.
object
int
Defaults to: 2.
json.dumps()