File: //proc/thread-self/root/home/arjun/projects/buyercall/buyercall/blueprints/channels/urls.py
from buyercall.blueprints.channels.endpoints import *
channels_api.add_url_rule("/", view_func=get_channels)
channels_api.add_url_rule("/", view_func=create_channels, methods=['POST'])
channels_api.add_url_rule("/meta", view_func=get_channel_type_count)
channels_api.add_url_rule("/<uuid:cid>", view_func=get_channel_by_id)
channels_api.add_url_rule("/<uuid:cid>", view_func=update_channel, methods=['POST', 'PUT'])
channels_api.add_url_rule("/types", view_func=ChannelTypeApi.as_view('list_channel_types'), methods=['GET', 'POST'])
channels_api.add_url_rule("/types/<uuid:channel_type_id>",
view_func=ChannelTypeApi.as_view('channel_type_detail'), methods=['GET', 'PUT'])
channels_api.add_url_rule("/type/<string:channel_type>", view_func=get_channels_by_type, methods=['GET'])
channels_api.add_url_rule("/email/checkisvalid/<string:email_prefix>", view_func=is_email_valid, methods=['GET'])