Roman Bykovskiy

@romanesko (0)
How to make Rest Api in Python
posted to Learn by badvillain01

@badvillain01 right after "Here a simple example of flask-restful"

How to make Rest Api in Python
posted to Learn by badvillain01

there is a mistake in the first code example of the flask-restful:

class Test(Resource):
  def get(self):
    return "Example with Flask-Restful"

#creating api endpoint
api.add_resource(Facts, '/api/restful')

should be

api.add_resource(Test, '/api/restful')