text: """
  Author: David Crook
  Copyright: Microsoft Corporation 2019
  """
  
  from flask import Blueprint, render_template
  import webapp.providers.classified_widget as widgets_provider
  from webapp.providers.connections import get_db_cxn
  import json
  
  widgets = Blueprint("widgets", __name__)
  
  @widgets.route("/api/v1/widgets/badwidgets", methods=["GET"])
  def badwidgets():
      cnxn = get_db_cxn()
      badwidgets = widgets_provider.get_bad_widgets(cnxn, to_json=True)
      return badwidgets
  
  @widgets.route("/api/v1/widgets/goodwidgets", methods=["GET"])
  def goodwidgets():
      raise NotImplementedError()
  
  @widgets.route("/api/v1/widgets/page/good", methods=["POST"])
  def page_good():
      raise NotImplementedError()
  
  @widgets.route("/api/v1/widgets/page/bad", methods=["POST"])
  def page_bad():
      raise NotImplementedError()
  
  @widgets.route("/api/v1/widgets/50", methods=["GET"])
  def fifty_widgets():
      cnxn = get_db_cxn()
      widgets = widgets_provider.get_50_widgets(cnxn, to_json=True)
      return widgets
  
  @widgets.route("/api/v1/widgets/specificwidget", methods=["POST"])
  def widget():
      raise NotImplementedError()
  
  @widgets.route("/api/v1/widgets/counts", methods=["GET"])
  def counts():
      cnxn = get_db_cxn()
      return widgets_provider.get_counts(cnxn)