Sort the code snippets to get a working program.
Intro to RESTful Flask
Semi-working program
Report a typo
Put the items in the correct order
app = Flask('main')
api = Api(app)api.add_resource(HelloRock, '/raid')class HelloRock(Resource):
def get(self):
return {'We Will': ''Rock You '}app.run()from flask import Flask
from flask_restful import Api, Resource ___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.