We don't have an easy way of getting the proper URI stub for a method. Yes, you can guess based on the key in the metadata dict, but that's not the right way to use HATEOAS. So, add Report.report_uri in order to make that a little easier.
For Python 3, we need to decode the content (which, unlike most requests content, isn't automatically decoded) into a unicode string, rather than a byte sequence. So explicitly pass decode_unicode=True into iter_lines.
We don't have an easy way of getting the proper URI stub for a method. Yes, you can guess based on the key in the metadata dict, but that's not the right way to use HATEOAS. So, add
Report.report_uri
in order to make that a little easier.For Python 3, we need to decode the content (which, unlike most
requests
content, isn't automatically decoded) into a unicode string, rather than a byte sequence. So explicitly passdecode_unicode=True
intoiter_lines
.Lastly, add working examples to the docs.