title: Using Flask API instead of render_template
body: <p>last year i developed a big website using Flask.</p>
  
  <p>I used render_template method to send data from back-end to front-end and request.form to get data from front-end to back-end</p>
  
  <p>Now, my product owner wants me to use "API" instead of above solutions.
  And i'm fully confused how to use API.</p>
  
  <p>Should i remove any render_template or request.form?</p>
  
  <p>Should i change my back-end and view functions completely?</p>
  
  <p>Am i able to just change render_template and request.form and make no change in the remaining code ?</p>
  
  <p>Can i use Jinja template after using API? or i should use javascript?</p>
  
  <p>my previous solution was like this:</p>
  
  <pre><code>apps = apps_model.query.all ()
  render_template ('index.html' , apps=apps)
  </code></pre>
  
  <p>and:</p>
  
  <pre><code>user_name = request.form ['username']
  </code></pre>