Flask, Python, Web Development, Rest Api, Articles.
@ns_conf.route("/") class ConferenceList(Resource): def get(self): """ returns a list of conferences """ def post(self): """ Adds a new conference to the list """ @ns_conf.route("/<int:id>") class Conference(Resource): def get(self, id): """ Displays a conference's details """ def put(self, id):