'Return plugin data by name'

@etag
@api.response(BadRequest)
@api.response(200, model=plugin_schema)
@api.doc(parser=plugin_parser, params={u'plugin_name': u'Name    of    the    plugin    to    return'})
def get(self, plugin_name, session=None):

    args = plugin_parser.parse_args()
    try:
        plugin = get_plugin_by_name(plugin_name, issued_by=u'plugins    API')
    except DependencyError as e:
        raise BadRequest(e.message)
    p = plugin_to_dict(plugin)
    if args[u'include_schema']:
        p[u'schema'] = plugin.schema
    return jsonify(p)
