title: How to configure basepath in flask restful api application?
body: <p>I want to set a basepath for my flask application. I have mentioned one example below.</p>
  
  <pre><code>basepath = 'http://localhost:3000/api'
  </code></pre>
  
  <p>i have two api call one is <code>GET</code> and other one is <code>POST</code> .</p>
  
  <pre><code>from flask import Flask
  from flask_restful import Api
  app = Flask(__name__)
  api = Api(app)
  
  api.add_resource(CreateUser, "/v1/user/create/")
  api.add_resource(CreateUser, "/v1/user/details")
  
  class CreateUser(Resource):
      def post(self):
         # Code for creating a user
      def get(self):
         # Code for get the details of user.
  </code></pre>
  
  <p>So here, if i want to create the user then my url will be <code>http://localhost:3000/api/v1/user/create/</code>
  so same for <code>GET</code> also . So how do i achieve this ?</p>