#NEWLINE# @ MyModel . method ( request_fields = ( 'id' , ) , path = 'mymodel/{id}' , http_method = 'GET' , name = 'mymodel.get' ) #NEWLINE# def MyModelGet( self , my_model ) : #NEWLINE# #INDENT# if ( not my_model . from_datastore ) : #NEWLINE# #INDENT# raise endpoints . NotFoundException ( 'MyModel not found.' ) #NEWLINE# #UNINDENT# return self