def get(self, thing_id='<STR_LIT:0>', property_name=None):
thing = self.get_thing(thing_id)<EOL>if thing is None:<EOL><INDENT>self.set_status(<NUM_LIT>)<EOL>return<EOL><DEDENT>if thing.has_property(property_name):<EOL><INDENT>self.set_header('<STR_LIT:Content-Type>', '<STR_LIT:application/json>')<EOL>self.write(json.dumps({<EOL>property_name: thing.get_property(property_name),<EOL>}))<EOL><DEDENT>else:<EOL><INDENT>self.set_status(<NUM_LIT>)<EOL><DEDENT>
Handle a GET request.

thing_id -- ID of the thing this request is for
property_name -- the name of the property from the URL path