Example #1
0
def get_schema(source_name, stream_name):
  source = DataAccess.parse({ 'source': source_name })
  schema = source.get_schema(stream_name)
  response_dict = {
    'schema': schema['schema'],
    'status': 'OK',
  }
  return jsonify(response_dict)
Example #2
0
def get_streams(source_name):
  source = DataAccess.parse({ 'source': source_name })
  streams = source.get_streams()
  response_dict = {
    'streams': streams,
    'status': 'OK',
  }
  return jsonify(response_dict)