<s> from rest_toolkit import resource <EOL> @ resource ( '<STR_LIT:/>' ) <EOL> class RootResource ( object ) : <EOL> def __init__ ( self , request ) : <EOL> pass <EOL> @ RootResource . controller ( '<STR_LIT>' ) <EOL> def root_engage ( resource , request ) : <EOL> return { '<STR_LIT:message>' : '<STR_LIT>' } <EOL> @ RootResource . controller ( '<STR_LIT>' , request_method = '<STR_LIT:GET>' ) <EOL> def get_engage ( resource , request ) : <EOL> return { '<STR_LIT:message>' : '<STR_LIT>' } <EOL> @ resource ( '<STR_LIT>' ) <EOL> class Resource ( object ) : <EOL> def __init__ ( self , request ) : <EOL> pass <EOL> @ Resource . controller ( '<STR_LIT>' ) <EOL> def engage ( resource , request ) : <EOL> return { '<STR_LIT:message>' : '<STR_LIT>' } </s>
