Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/308.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 烧瓶基本路线_Python_Web Services_Rest_Flask_Server - Fatal编程技术网

Python 烧瓶基本路线

Python 烧瓶基本路线,python,web-services,rest,flask,server,Python,Web Services,Rest,Flask,Server,我想用Flask为我的应用程序创建RESTAPI。是否可以使用基本路线fe运行烧瓶。 localhost:5000/webservice @app.route('/users') 将处理localhost:5000/webservice/users?使用烧瓶蓝图。注册蓝图时,可以添加url前缀 app.register_blueprint(restapi, url_prefix='/webservice') 以下是烧瓶蓝图文档的链接: 使用烧瓶蓝图。注册蓝图时,可以添加url前缀 app.r

我想用Flask为我的应用程序创建RESTAPI。是否可以使用基本路线fe运行烧瓶。 localhost:5000/webservice

@app.route('/users')

将处理localhost:5000/webservice/users?

使用烧瓶蓝图。注册蓝图时,可以添加url前缀

app.register_blueprint(restapi, url_prefix='/webservice')
以下是烧瓶蓝图文档的链接:
使用烧瓶蓝图。注册蓝图时,可以添加url前缀

app.register_blueprint(restapi, url_prefix='/webservice')
以下是烧瓶蓝图文档的链接:

看烧瓶蓝图。看烧瓶蓝图。