def listall_topics(): prepareResponse = PrepareResponse() topicConsumer = TopicConsumer() topicConsumer.listAllTopics(prepareResponse) response = app.response_class(response=prepareResponse.getResponseMsg(), status=prepareResponse.getResponseCode(), mimetype='application/json') return response
def topic_details(topic): topic == request.view_args['topic'] prepareResponse = PrepareResponse() topicConsumer = TopicConsumer() topicConsumer.getTopicDetails(prepareResponse, topic) response = app.response_class(response=prepareResponse.getResponseMsg(), status=prepareResponse.getResponseCode(), mimetype='application/json') return response