Returning API Error Messages with Python and Flask

后端 未结 2 1621
情书的邮戳
情书的邮戳 2021-01-31 01:55

I am designing a RESTful API using Python and Flask. As expected, the API needs to receive an API request and return data if all goes well, but in the instance of an error, it n

2条回答
  •  甜味超标
    2021-01-31 02:43

    Maybe the Flask API is more suitable for your needs, as it is particularly designed for RESTful APIs.

    It has better exception handling than Flask, see: http://www.flaskapi.org/api-guide/exceptions/

提交回复
热议问题