Created
December 24, 2018 00:07
-
-
Save thechaudharysab/a652ea6a067135db34f3a9ba294282e7 to your computer and use it in GitHub Desktop.
Adding the resource to our API and specify its route
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
api.add_resource(User, "/user/<string:name>") #<string:name> indicates that it is a variable part in the route which accepts any name. | |
app.run(debug=True, port=5001) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment