title: how to receive uuid from postman into tornado application?
body: <p>I have saved my model in elastic database with uuid, I make a call from Postman using that uuid to my tornado application, the uuid is having my model, how should I receive that in POST method in my requestHandler, below is the code</p>
  
  <pre><code>class myHandler(RequestHandler):  
      _thread_pool = ThreadPoolExecutor(max_workers=10)
  
      #My data base url
      def initialize(self): 
          self.db = self.settings['db']
  
      #POST method to receive data and model
      @gen.coroutine
      def post(self, model_id):
          try:
              data = tornado.escape.json_decode(self.request.body)
              yield self.predict(model_id, self.db, data)
          except Exception:
              self.respond('server_error', 500)
  
      ###here I have predict methods that receive the model_id and pass###
  </code></pre>
  
  <p>The model_id in the post method argument is the uuid I receive from postman</p>
  
  <p>My application call looks like</p>
  
  <pre><code>elastic_url = os.environ.get('ELASTICSEARCH_URL', 'localhost:9200')
  define('port', default=8888, help='Tornado port to listen on')
  
  def make_app():  
      url = [(r"/uuid/predict", myHandler)]
      return Application(url, db=elastic_url, debug=True, autoreload=False)
  
  if __name__ == "__main__":
      application = make_app()
      http_server = HTTPServer(application)
      http_server.listen(options.port)
      IOLoop.current().start() 
  </code></pre>
  
  <p>From POSTMAN I call the API as</p>
  
  <pre><code>http://127.0.0.1:8888/9cd68748-a3b5-4bc3-994d-16e921103cb2/predict
  </code></pre>
  
  <p>If I am not having uuid, I simply receive using regex as below</p>
  
  <pre><code>url = [(r"/(?P&lt;id&gt;[a-zA-Z0-9_]+)/predict", myHandler)
  #From POSTMAN I call as
  http://127.0.0.1:8888/model_name/predict
  </code></pre>