else: return "Operation not available"if __name__ == "__main__": app.run(debug=True)
Testing it in Postman:
Ensure that you have selected “Content-type” as “application/json”, else you will keep getting the following error: “Content-Type was not ‘application/json’”
The input request and output are displayed in Postman screenshot below.