# -*- coding: utf-8 -*-

"""
Some endpoints implementation
"""

from __future__ import absolute_import

import rethinkdb as r
from rethinkdb.net import DefaultCursorEmpty
from flask_security import auth_token_required, roles_required
from flask_restful import reqparse
from confs import config
from ..services.rethink import schema_and_tables, BaseRethinkResource
from ..services.uploader import Uploader
from .. import decorators as deck
from commons import htmlcodes as hcodes
from commons.logs import get_logger

logger = get_logger(__name__)

#####################################
# Main resource
model = 'datavalues'
mylabel, mytemplate, myschema = schema_and_tables(model)


class RethinkDataValues(BaseRethinkResource):
    """ Data values """

    schema = myschema