<s> import flask <EOL> from opencenter . db . api import api_from_models <EOL> from opencenter . webapp import generic <EOL> bp = flask . Blueprint ( '<STR_LIT>' , __name__ ) <EOL> @ bp . route ( '<STR_LIT:/>' , methods = [ '<STR_LIT:POST>' ] ) <EOL> def run_plan ( ) : <EOL> api = api_from_models ( ) <EOL> data = flask . request . json <EOL> if not '<STR_LIT>' in data : <EOL> return generic . http_badrequest ( msg = '<STR_LIT>' ) <EOL> if not '<STR_LIT>' in data : <EOL> return generic . http_badrequest ( msg = '<STR_LIT>' ) <EOL> plan = data [ '<STR_LIT>' ] <EOL> for step in plan : <EOL> if '<STR_LIT:args>' in step : <EOL> for arg in step [ '<STR_LIT:args>' ] : <EOL> if '<STR_LIT:value>' in step [ '<STR_LIT:args>' ] [ arg ] : <EOL> step [ '<STR_LIT>' ] [ arg ] = step [ '<STR_LIT:args>' ] [ arg ] [ '<STR_LIT:value>' ] <EOL> step . pop ( '<STR_LIT:args>' ) <EOL> return generic . http_solver_request ( data [ '<STR_LIT>' ] , [ ] , api = api , plan = plan ) </s>
