def get(self):
self.set_header('<STR_LIT:Content-Type>', '<STR_LIT:application/json>')<EOL>ws_href = '<STR_LIT>'.format(<EOL>'<STR_LIT>' if self.request.protocol == '<STR_LIT>' else '<STR_LIT>',<EOL>self.request.headers.get('<STR_LIT>', '<STR_LIT>')<EOL>)<EOL>descriptions = []<EOL>for thing in self.things.get_things():<EOL><INDENT>description = thing.as_thing_description()<EOL>description['<STR_LIT>'].append({<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>'.format(ws_href, thing.get_href()),<EOL>})<EOL>descriptions.append(description)<EOL><DEDENT>self.write(json.dumps(descriptions))<EOL>
Handle a GET request.

property_name -- the name of the property from the URL path