text: # -*- encoding: utf-8 -*-
  
  from . import version, uuid_models
  
  default_data_endpoints_config = [
  
    ### - - - - - - - - - - - - - - - ###
    ### CONFIG CIS 
  
      ### - - - - - - - - - - - - - - - ###
      ### USER MANAGEMENT
      ### - - - - - - - - - - - - - - - ###
  
        ### AUTH ROOT URLS
        { "field"          : "app_data_API_root_auth",
          "data_type"      : "user",
          "endpoint_type"  : "auth_root",
          "content"        : u"apiviz default API endpoint for user authentication (root urls)",
          "auth_activated" : True,
          "root_url"       : {
            ### needs a local instance of toktok if not changed
            "default"         : "http://localhost:4100/api",            # toktok instance on local machine
            "default_docker"  : "http://host.docker.internal:4100/api", # toktok instance on local machine + docker
            ### on server ...
            "server"          : "http://localhost:4100/api",            # toktok instance on server
            "server_docker"   : "http://host.docker.internal:4100/api", # toktok instance on server + docker
            "distant_preprod" : "https://preprod.toktok-auth.com/api",
            "distant_prod"    : "https://toktok-auth.com/api"
          },
          "args_options"   : [
          ],
          "request_header_auth_options" : [
            { "header_field" : u"Accept",        "header_value" : "application/json", "is_var" : False, "app_var_name" : None,    "header_value_prefix" : None },
            { "header_field" : u"Content-type",  "header_value" : "application/json", "is_var" : False, "app_var_name" : None,    "header_value_prefix" : None },
            { "header_field" : u"Authorization", "header_value" : None,               "is_var" : True,  "app_var_name" : "token", "header_value_prefix" : None },
          ],
          "app_version"    : version,
          "method"         : "GET",
          "help"           : u"define the endpoints for authentication",
          "apiviz_front_uuid" : uuid_models["uuid_apcis"],
          "is_default"     : True
        },
  
        ### CONFIRM JWT
        { "field"         : "app_data_API_user_auth",
          "data_type"     : "user",
          "endpoint_type" : "confirm_jwt",
          "content"       : u"apiviz default API endpoint for user authentication (confirm acces)",
          "root_url"      : "/auth/tokens/confirm_access",
          "args_options"  : [
            { "app_arg" : "authToken", "arg" : "token", "optional" : False, "in" : ["url","header"], "default" : "", "type" : "str" },
          ],
          "resp_fields" : {
            "access_token"  : { "path" : "tokens/access_token" },
            "refresh_token" : { "path" : "tokens/refresh_token" },
            "msg"           : { "path" : "msg" },
            "user_role"     : { "path" : "data/auth/role" },
            "user_id"       : { "path" : "data/_id" },
            "user_name"     : { "path" : "data/infos/name" },
            "user_surname"  : { "path" : "data/infos/surname" },
            "user_pseudo"   : { "path" : "data/infos/pseudo"  },
            "user_email"    : { "path" : "data/infos/email" },
          },
          "roles" : { 
            ### defining roles in frontend
            "admin"     : { "resp_role" : "admin",     "help" : "can access all backoffice (lox level access)" },
            "staff"     : { "resp_role" : "staff",     "help" : "can access backoffice (high level access)" },
            "registred" : { "resp_role" : "registred", "help" : "registred user" },
            "guest"     : { "resp_role" : "guest",     "help" : "logged but not registred" },
            "anonymous" : { "resp_role" : "anonymous", "help" : "logged as anonymous" },
          },
          "app_version"   : version,
          "method"        : "GET",
          "help"          : u"define the endpoint for a JWT check",
          "apiviz_front_uuid" : uuid_models["uuid_apcis"],
          "is_default"    : True
        },
  
        ### NEW ACCESS JWT
        { "field"         : "app_data_API_user_new_access_token",
          "data_type"     : "user",
          "endpoint_type" : "new_access_token",
          "content"       : u"apiviz default API endpoint for user authentication (new acces token) : needs a valid refresh token as token ",
          "root_url"      : "/auth/tokens/new_access_token",
          "args_options"  : [
            { "app_arg" : "authToken", "arg" : "token", "optional" : False, "in" : ["url","header"], "default" : "", "type" : "str" },
          ],
          "resp_fields" : {
          },
          "app_version"   : version,
          "method"        : "GET",
          "help"          : u"define the endpoint for a new access JWT ",
          "apiviz_front_uuid" : uuid_models["uuid_apcis"],
          "is_default"    : True
        },
  
        ### REGISTER
        { "field"         : "app_data_API_user_register",
          "data_type"     : "user",
          "endpoint_type" : "register",
          "content"       : u"apiviz default API endpoint for registering a new user",
          "root_url"      : "/usr/register",
          "args_options"  : [
            { "app_arg" : "name",      "arg" : "name",      "optional" : False, "in" : ["payload"], "default" : "", "type" : "str" },
            { "app_arg" : "surname",   "arg" : "surname",   "optional" : False, "in" : ["payload"], "default" : "", "type" : "str" },
            { "app_arg" : "email",     "arg" : "email",     "optional" : False, "in" : ["payload"], "default" : "", "type" : "str" },
            { "app_arg" : "password",  "arg" : "pwd",       "optional" : False, "in" : ["payload"], "default" : "", "type" : "str" },
            { "app_arg" : "agreement", "arg" : "agreement", "optional" : False, "in" : ["payload"], "default" : "", "type" : "str" },
            { "app_arg" : "locale",    "arg" : "lang",      "optional" : False, "in" : ["payload"], "default" : "", "type" : "str" },
            { "app_arg" : "u_data",    "arg" : "u_data",    "optional" : False, "in" : ["payload"], "default" : "", "type" : "str" },
          ],
          "resp_fields" : {
          },
          "app_version"   : version,
          "method"        : "POST",
          "help"          : u"define the endpoint for registering a new user",
          "apiviz_front_uuid" : uuid_models["uuid_apcis"],
          "needs_form"    : True,
          "is_default"    : True
        },
  
        ### LOGIN
        { "field"         : "app_data_API_user_login",
          "data_type"     : "user",
          "endpoint_type" : "login",
          "content"       : u"apiviz default API endpoint for login",
          "root_url"      : "/auth/login",
          "args_options"  : [
            { "app_arg" : "email",    "arg" : "email", "optional" : False, "in" : ["payload"], "default" : "", "type" : "str" },
            { "app_arg" : "password", "arg" : "pwd",   "optional" : False, "in" : ["payload"], "default" : "", "type" : "str" },
          ],
          "resp_fields" : {
          },
          "app_version"   : version,
          "method"        : "POST",
          "help"          : u"define the endpoint for login an user",
          "apiviz_front_uuid" : uuid_models["uuid_apcis"],
          "needs_form"    : True,
          "is_default"    : True
        },
  
        ### USER LIST
        { "field"         : "app_data_API_user_list",
          "data_type"     : "user",
          "endpoint_type" : "user_modif",
          "content"       : u"apiviz default API endpoint for users list",
          "root_url"      : "/usr/infos/list",
          "args_options"  : [
            { "app_arg" : "authToken",    "arg" : "token",    "optional" : False,  "in" : ["url","header"],  "default" : "", "type" : "str" },
            { "app_arg" : "pageUser",     "arg" : "page",     "optional" : True,   "in" : ["url"],           "default" : 1,  "type": "int" },
            { "app_arg" : "perPageUser",  "arg" : "per_page", "optional" : True,   "in" : ["url"],           "default" : 50, "type": "int" },
          ],
          "resp_fields" : {
          },
          "app_version"   : version,
          "method"        : "GET",
          "help"          : u"define the endpoint to get data for : an user ",
          "apiviz_front_uuid" : uuid_models["uuid_apcis"],
          "is_default"    : True
        },
  
        ### USER INFOS
        { "field"         : "app_data_API_user_infos",
          "data_type"     : "user",
          "endpoint_type" : "user_modif",
          "content"       : u"apiviz default API endpoint for user infos",
          "root_url"      : "/usr/infos/get_one",
          "args_options"  : [
            { "app_arg" : "authToken", "arg" : "token",  "optional" : False, "in" : ["url","header"],   "default" : "", "type" : "str" },
            { "app_arg" : "userID",    "arg" : "doc_id", "optional" : True,   "in" : ["url"],           "default" : "", "type" : "str"}
          ],
          "resp_fields" : {
          },
          "app_version"   : version,
          "method"        : "GET",
          "help"          : u"define the endpoint to get data for : an user ",
          "apiviz_front_uuid" : uuid_models["uuid_apcis"],
          "is_default"    : True
        },
  
        ### USER EDIT
        { "field"         : "app_data_API_user_edit",
          "data_type"     : "user",
          "endpoint_type" : "user_modif",
          "content"       : u"apiviz default API endpoint for editing an user",
          "root_url"      : "/auth/edit/",
          "args_options"  : [
            { "app_arg" : "authToken", "arg" : "token",  "optional" : False, "in" : ["url","header"],   "default" : "", "type" : "str" },
            { "app_arg" : "userID",    "arg" : "doc_id", "optional" : True,   "in" : ["url"],           "default" : "", "type" : "str"}
          ],
          "resp_fields" : {
          },
          "app_version"   : version,
          "method"        : "PUT",
          "help"          : u"define the endpoint to get data for : an user ",
          "needs_form"    : True,
          "apiviz_front_uuid" : uuid_models["uuid_apcis"],
          "is_default"    : True
        },
  
        ### USER DELETE
        { "field"         : "app_data_API_user_delete",
          "data_type"     : "user",
          "endpoint_type" : "user_modif",
          "content"       : u"apiviz default API endpoint for deleting an user",
          "root_url"      : "/auth/edit/",
          "args_options"  : [
            { "app_arg" : "authToken", "arg" : "token",  "optional" : False, "in" : ["url","header"],   "default" : "", "type" : "str" },
            { "app_arg" : "userID",    "arg" : "doc_id", "optional" : True,   "in" : ["url"],           "default" : "", "type" : "str"}
          ],
          "resp_fields" : {
          },
          "app_version"   : version,
          "method"        : "DELETE",
          "help"          : u"define the endpoint to get data for : an user ",
          "apiviz_front_uuid" : uuid_models["uuid_apcis"],
          "is_default"    : True
        },
  
        ### USER FORGOT PWD
        { "field"         : "app_data_API_forgot_pwd",
          "data_type"     : "user",
          "endpoint_type" : "user_modif",
          "content"       : u"apiviz default API endpoint for changing password",
          "root_url"      : "/auth/password/password_forgotten",
          "args_options"  : [
            { "app_arg" : "authToken", "arg" : "token",  "optional" : False, "in" : ["url","header"],   "default" : "", "type" : "str" },
          ],
          "resp_fields" : {
          },
          "app_version"   : version,
          "method"        : "GET",
          "help"          : u"define the endpoint to get data for : an user ",
          "needs_form"    : True,
          "apiviz_front_uuid" : uuid_models["uuid_apcis"],
          "is_default"    : True
        },
  
  
      ### - - - - - - - - - - - - - - - ###
      ### DATA ENDPOINTS
      ### - - - - - - - - - - - - - - - ###
  
        ### DATA FILTERS
        { "field"         : "cis_data_API_filters",
          "is_visible"    : True,
          "is_disabled"   : False,
          "data_type"     : "data",
          "endpoint_type" : "filters",
          "dataset_uri"   : "recherche",
          "available_views" : ['VIEW_LIST', 'VIEW_MAP'],
          "has_shuffle"  : False,
          "has_pagination" : False,
          "has_export" : False,
          "pagination_options" : {
            "per_page" : [ 5, 10, 25, 100 ],
          },
          "has_infinite_scroll" : True,
          "has_order_by" : False,
          "order_by_options" : {
            "order_by_list" : [],
          },
  
          "placeholder"   : [
            {"locale" : "en", "text" : "Enter the name of a place"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Tapez le nom d'un lieu" }
          ],
          "items_found"   : [
            {"locale" : "en", "text" : "projects found"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "projets trouvés" }
          ],
          "stats_text"   : [
            {"locale" : "en", "text" : "experimental"},{"locale" : "es", "text" : "experimental"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "expérimental" }
          ],
          "reset"   : [
            {"locale" : "en", "text" : "reset"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "effacer" }
          ],
  
          "content"       : u"apiviz default API endpoint for navbar filters",
          # "root_url"      : "https://solidata-api.co-demos.com/api/dso/infos/get_one/5c7f0438328ed72e431f338e",
          "root_url"      : "https://solidata-api.co-demos.com/api/dsi/infos/get_one/5d5fca92328ed71684ce1785",  ## V2
          "args_options"  : [
            {  "app_arg" : "dataToken",      "arg" : "token",             "optional" : True, "in" : ["url","header"],   "default" : "",   "type": "str" },
            {  "app_arg" : "filtersList",    "arg" : "get_filters",       "optional" : False, "in" : ["url"],           "default" : True, "type": "bool" }, # also working with dsi?
            {  "app_arg" : "filterChoices",  "arg" : "get_uniques",       "optional" : False, "in" : ["url"],           "default" : "tag", "type": "str" },
          ],
  
          "filter_options" : [
  
            {	"name"		: u"source__", # TODO 
              "id"      : "filter_3",
              "col_name" : "source",
              "dataType" : "text",
              "filter_title" : [{"locale" : "en", "text" : "Sources"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Sources" }],
              "choices"	: [
                # {"name" : u"AG2R La mondiale", "choice_title" : [{"locale" : "en", "text" : "Source"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "AG2R La mondiale" }]},
                # {"name" : u"Apriles",          "choice_title" : [{"locale" : "en", "text" : "Source"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Apriles" }]},
                # {"name" : u"Avise",            "choice_title" : [{"locale" : "en", "text" : "Source"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Avise" }]},
                # {"name" : u"Banque des territoires", "choice_title" : [{"locale" : "en", "text" : "Source"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Banque des territoires" }]},
                # {"name" : u"Bleu Blanc Zèbre",  "choice_title" : [{"locale" : "en", "text" : "Source"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Bleu Blanc Zèbre" }]},
                # {"name" : u"Bretagne Créative", "choice_title" : [{"locale" : "en", "text" : "Source"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Bretagne Créative" }]},
                # {"name" : u"Coorace",           "choice_title" : [{"locale" : "en", "text" : "Source"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Coorace" }]},
                {"name" : u"La Fondation La France s’Engage", "choice_title" : [{"locale" : "en", "text" : "Fondation la France s’engage"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Fondation la France s’engage" }]},
                # {"name" : u"Fondation Veolia",  "choice_title" : [{"locale" : "en", "text" : "Source"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Fondation Veolia" }]},
                # {"name" : u"Lab Innovation et Territoires", "choice_title" : [{"locale" : "en", "text" : "Source"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Lab Innovation et Territoires" }]},
                # {"name" : u"My Positive Impact",  "choice_title" : [{"locale" : "en", "text" : "Source"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "My Positive Impact" }]},
                # {"name" : u"Nov Impact",          "choice_title" : [{"locale" : "en", "text" : "Source"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Nov Impact" }]},
                # {"name" : u"Prix de l’innovation périurbaine", "choice_title" : [{"locale" : "en", "text" : "Source"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Prix de l’innovation périurbaine" }]},
                # {"name" : u"Réseau Rural",      "choice_title" : [{"locale" : "en", "text" : "Source"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Réseau Rural" }]},
                # {"name" : u"Ronalpia",          "choice_title" : [{"locale" : "en", "text" : "Source"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Ronalpia" }]},
                # {"name" : u"Semeoz",            "choice_title" : [{"locale" : "en", "text" : "Source"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Semeoz" }]},
                # {"name" : u"Solidarum",         "choice_title" : [{"locale" : "en", "text" : "Source"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Solidarum" }]},
                # {"name" : u"UNCCAS",            "choice_title" : [{"locale" : "en", "text" : "Source"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "UNCCAS" }]},
              ],
            },
            { "name"		: u"coding APCIS N1__", # TODO 
              "id"      : "filter_1",
              "col_name" : "coding APCIS N1",
              "dataType" : "text",
              "filter_title" : [{"locale" : "en", "text" : "Topics"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Thématiques" }],
              "choices"	: [
                # {"name" : u"CV", "choice_title" : [{"locale" : "en", "text" : "Source"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Cadre de vie" }]},
                # {"name" : u"DD", "choice_title" : [{"locale" : "en", "text" : "Source"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Développement durable" }]},
                # {"name" : u"DE", "choice_title" : [{"locale" : "en", "text" : "Source"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Développement économique" }]},
                # {"name" : u"HA", "choice_title" : [{"locale" : "en", "text" : "Source"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Habitat" }]},
                # {"name" : u"IN", "choice_title" : [{"locale" : "en", "text" : "Source"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Inclusion" }]},
                # {"name" : u"LS", "choice_title" : [{"locale" : "en", "text" : "Source"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Lien social" }]},
                # {"name" : u"SS", "choice_title" : [{"locale" : "en", "text" : "Source"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Santé et sport" }]},
                # {"name" : u"TR", "choice_title" : [{"locale" : "en", "text" : "Source"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Travail" }]},
                {"name" : u"EDU", "choice_title" : [{"locale" : "en", "text" : "Education and youth"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Education et jeunesse" }]},
                {"name" : u"EMP", "choice_title" : [{"locale" : "en", "text" : "Employment"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Emploi" }]},
                {"name" : u"ENV", "choice_title" : [{"locale" : "en", "text" : "Environment"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Environnement" }]},
                {"name" : u"SAN", "choice_title" : [{"locale" : "en", "text" : "Health"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Santé" }]},
                {"name" : u"SOL", "choice_title" : [{"locale" : "en", "text" : "Solidarity"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Solidarité" }]},
                {"name" : u"TER", "choice_title" : [{"locale" : "en", "text" : "Territories"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Territoires" }]},
                {"name" : u"ART", "choice_title" : [{"locale" : "en", "text" : "Arts and culture"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Arts et culture" }]},
                {"name" : u"COM", "choice_title" : [{"locale" : "en", "text" : "Communication"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Communication" }]},
                {"name" : u"CON", "choice_title" : [{"locale" : "en", "text" : "Consumption and services"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Consommation et services responsables" }]},
                {"name" : u"DEM", "choice_title" : [{"locale" : "en", "text" : "Democracy"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Démocratie" }]},
                {"name" : u"GOU", "choice_title" : [{"locale" : "en", "text" : "Governance"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Gouvernance" }]},
                {"name" : u"NUM", "choice_title" : [{"locale" : "en", "text" : "Digital"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Numérique" }]},
                {"name" : u"SPO", "choice_title" : [{"locale" : "en", "text" : "Sport"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Sport" }]},
                {"name" : u"TOU", "choice_title" : [{"locale" : "en", "text" : "Tourism"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Tourisme" }]},
                {"name" : u"FIN", "choice_title" : [{"locale" : "en", "text" : "Finance"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Financement" }]},
                {"name" : u"PAT", "choice_title" : [{"locale" : "en", "text" : "Heritage"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Patrimoine" }]},
                # {"name" : u"non", "fullname" : u"aucun"},
              ]
            },
            { "name"		: u"coding APCIS N2__", # TODO 
              "id"      : "filter_2",
              "col_name" : "coding APCIS N2",
              "dataType" : "text",
              "filter_title" : [{"locale" : "en", "text" : "Sub-topics"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Sous-thématiques" }],
              "choices"	: [
                # {"name" : u"ha", "choice_title" : [{"locale" : "en", "text" : "Source"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Handicap" }]},
                # {"name" : u"je", "choice_title" : [{"locale" : "en", "text" : "Source"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Jeunesse" }]},
                # {"name" : u"se", "choice_title" : [{"locale" : "en", "text" : "Source"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Seniors" }]},
                {"name" : u"EDC", "choice_title" : [{"locale" : "en", "text" : "Education et citoyenneté"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Education et citoyenneté" }]},
                {"name" : u"EGA", "choice_title" : [{"locale" : "en", "text" : "Enfance, jeunesse, famille"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Enfance, jeunesse, famille" }]},
                {"name" : u"INN", "choice_title" : [{"locale" : "en", "text" : "Egalité des chances"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Egalité des chances" }]},
                {"name" : u"ENF", "choice_title" : [{"locale" : "en", "text" : "Innovation pédagogique"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Innovation pédagogique" }]},
                {"name" : u"ACE", "choice_title" : [{"locale" : "en", "text" : "Accès à l'emploi"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Accès à l'emploi" }]},
                {"name" : u"FOR", "choice_title" : [{"locale" : "en", "text" : "Formation professionnelle"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Formation professionnelle" }]},
                {"name" : u"ORG", "choice_title" : [{"locale" : "en", "text" : "Organisation du travail"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Organisation du travail" }]},
                {"name" : u"ADA", "choice_title" : [{"locale" : "en", "text" : "Adaptation au changement climatique"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Adaptation au changement climatique" }]},
                {"name" : u"AGR", "choice_title" : [{"locale" : "en", "text" : "Agriculture durable"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Agriculture durable" }]},
                {"name" : u"ALI", "choice_title" : [{"locale" : "en", "text" : "Alimentation durable"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Alimentation durable" }]},
                {"name" : u"GES", "choice_title" : [{"locale" : "en", "text" : "Gestion des déchets"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Gestion des déchets" }]},
                {"name" : u"ENE", "choice_title" : [{"locale" : "en", "text" : "Energies"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Energies" }]},
                {"name" : u"PRN", "choice_title" : [{"locale" : "en", "text" : "Préservation des ressources naturelles"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Préservation des ressources naturelles" }]},
                {"name" : u"ACS", "choice_title" : [{"locale" : "en", "text" : "Accès à la santé"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Accès à la santé" }]},
                {"name" : u"AID", "choice_title" : [{"locale" : "en", "text" : "Aide à l'autonomie"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Aide à l'autonomie" }]},
                {"name" : u"BIE", "choice_title" : [{"locale" : "en", "text" : "Bien-être"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Bien-être" }]},
                {"name" : u"PRV", "choice_title" : [{"locale" : "en", "text" : "Prévention"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Prévention" }]},
                {"name" : u"EFH", "choice_title" : [{"locale" : "en", "text" : "Egalité Femmes-Hommes"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Egalité Femmes-Hommes" }]},
                {"name" : u"GRA", "choice_title" : [{"locale" : "en", "text" : "Grande précarité"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Grande précarité" }]},
                {"name" : u"HAN", "choice_title" : [{"locale" : "en", "text" : "Handicap"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Handicap" }]},
                {"name" : u"LIE", "choice_title" : [{"locale" : "en", "text" : "Lien social"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Lien social" }]},
                {"name" : u"LUT", "choice_title" : [{"locale" : "en", "text" : "Lutte contre les discriminations"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Lutte contre les discriminations" }]},
                {"name" : u"SEN", "choice_title" : [{"locale" : "en", "text" : "Seniors"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Seniors" }]},
                {"name" : u"AMH", "choice_title" : [{"locale" : "en", "text" : "Aménagement / Habitat"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Aménagement / Habitat" }]},
                {"name" : u"COO", "choice_title" : [{"locale" : "en", "text" : "Coopération territoriale"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Coopération territoriale" }]},
                {"name" : u"INI", "choice_title" : [{"locale" : "en", "text" : "Initiatives citoyennes"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Initiatives citoyennes" }]},
                {"name" : u"MOB", "choice_title" : [{"locale" : "en", "text" : "Mobilité"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Mobilité" }]},
                {"name" : u"ART", "choice_title" : [{"locale" : "en", "text" : "Arts et culture"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Arts et culture" }]},
                {"name" : u"COM", "choice_title" : [{"locale" : "en", "text" : "Communication"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Communication" }]},
                {"name" : u"CON", "choice_title" : [{"locale" : "en", "text" : "Consommation et services responsables"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Consommation et services responsables" }]},
                {"name" : u"DEM", "choice_title" : [{"locale" : "en", "text" : "Démocratie"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Démocratie" }]},
                {"name" : u"GOU", "choice_title" : [{"locale" : "en", "text" : "Gouvernance"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Gouvernance" }]},
                {"name" : u"NUM", "choice_title" : [{"locale" : "en", "text" : "Numérique"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Numérique" }]},
                {"name" : u"SPO", "choice_title" : [{"locale" : "en", "text" : "Sport"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Sport" }]},
                {"name" : u"TOU", "choice_title" : [{"locale" : "en", "text" : "Tourisme"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Tourisme" }]},
                {"name" : u"FIN", "choice_title" : [{"locale" : "en", "text" : "Financement"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Financement" }]},
                {"name" : u"PAT", "choice_title" : [{"locale" : "en", "text" : "Patrimoine"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Patrimoine" }]},
              ]
            },
            # {	"name"		: u"département__", # TODO 
            #   "id"      : "filter_4",
            #   "col_name" : "département",
            #   "dataType" : "text",
            #   "filter_title" : [{"locale" : "en", "text" : "Source"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Départements" }],
            #   "choices"	: [
            #     {"name" : u"75", "choice_title" : [{"locale" : "en", "text" : "Source"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Paris" }]},
            #   ],
            # },
            {	"name"		: u"region-CODE__", # TODO 
              "id"      : "filter_5",
              "col_name" : "region-CODE",
              "dataType" : "text",
              "filter_title" : [{"locale" : "en", "text" : "Regions"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Régions" }],
              "choices"	: [
                {"name" : u"84R", "choice_title" : [{"locale" : "en", "text" : "Auvergne-Rhône-Alpes"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Auvergne-Rhône-Alpes" }]},
                {"name" : u"27R", "choice_title" : [{"locale" : "en", "text" : "Bourgogne-Franche-Comté"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Bourgogne-Franche-Comté" }]},
                {"name" : u"53R", "choice_title" : [{"locale" : "en", "text" : "Bretagne"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Bretagne" }]},
                {"name" : u"24R", "choice_title" : [{"locale" : "en", "text" : "Centre-Val de Loire"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Centre-Val de Loire" }]},
                {"name" : u"32R", "choice_title" : [{"locale" : "en", "text" : "Hauts-de-France"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Hauts-de-France" }]},
                {"name" : u"11R", "choice_title" : [{"locale" : "en", "text" : "Ile de France"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Ile de France" }]},
                {"name" : u"52R", "choice_title" : [{"locale" : "en", "text" : "Pays-de-la-Loire"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Pays-de-la-Loire" }]},
                {"name" : u"93R", "choice_title" : [{"locale" : "en", "text" : "Provence-Alpes-Côte-d'Azur"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Provence-Alpes-Côte-d'Azur" }]},
  
                # {"name" : u"", "choice_title" : [{"locale" : "en", "text" : "Occitanie"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Occitanie" }]},
                # {"name" : u"", "choice_title" : [{"locale" : "en", "text" : "Nouvelle-Aquitaine"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Nouvelle-Aquitaine" }]},
                # {"name" : u"", "choice_title" : [{"locale" : "en", "text" : "Grand-Est"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Grand-Est" }]},
              ],
            },
            {	"name"		: u"type de contenu__", # TODO 
              "id"      : "filter_6",
              "col_name" : "type de contenu",
              "dataType" : "text",
              "filter_title" : [{"locale" : "en", "text" : "Content type"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Types de contenu" }],
              "choices"	: [
                {"name" : u"TPRO", "choice_title" : [{"locale" : "en", "text" : "Project"},{"locale" : "es", "text" : "pendiente"},{"locale" : "tr", "text" : "yapılmamış"},{"locale" : "de", "text" : "ungemacht"}, {"locale" : "fr", "text" : "Projet" }]},
              ],
            },
          ],
          "app_version"    : version,
          "method"        : "GET",
          "help"          : u"define the endpoint to get data for : filters in search navbar",
          "apiviz_front_uuid" : uuid_models["uuid_apcis"],
          "is_default"    : True
        },
  
        ### DATA LIST
        { "field"         : "cis_data_API_list",
          "is_visible"    : True,
          "is_disabled"   : False,
          "data_type"     : "data",
          "endpoint_type" : "list",
          "dataset_uri"   : "recherche",
          "content"       : u"apiviz default API endpoint for list results",
          # "root_url"      : "https://solidata-api.co-demos.com/api/dsi/infos/get_one/5c7f0438328ed72e431f338e",
          "root_url"      : "https://solidata-api.co-demos.com/api/dso/infos/get_one/5d5fca92328ed71684ce1785", ## V2
          "args_options"  : [
            {  "app_arg" : "dataToken",  "arg" : "token",            "optional" : True, "in" : ["url","header"],  "default" : "", "type": "str" },
            {  "app_arg" : "page",       "arg" : "page",             "optional" : True, "in" : ["url"],           "default" : 1,  "type": "int" },
            {  "app_arg" : "perPage",    "arg" : "per_page",         "optional" : True, "in" : ["url"],           "default" : 300, "type": "int" },
            {  "app_arg" : "query",      "arg" : "search_for",       "optional" : True, "in" : ["url"],           "default" : "", "type": "str" },
            {  "app_arg" : "filters",    "arg" : "search_filters",   "optional" : True, "in" : ["url"],           "default" : "", "type": "str" },
            {  "app_arg" : "shuffleSeed","arg" : "shuffle_seed",     "optional" : True, "in" : ["url"],           "default" : 205 , "type": "int" },
          ],
          "resp_fields" : {
            "projects" : { "resp_format" : "list", "path" : "data/data_raw/f_data" },
            "total" :    { "resp_format" : "int",  "path" : "data/data_raw/f_data_count" },
          },
          "app_version"    : version,
          "method"        : "GET",
          "help"          : u"define the endpoint to get data for : a view list",
          "apiviz_front_uuid" : uuid_models["uuid_apcis"],
          "is_default"    : True
        },
  
        ### DATA DETAIL
        { "field"         : "cis_data_API_detail",
          "is_visible"    : True,
          "is_disabled"   : False,
          "data_type"     : "data",
          "endpoint_type" : "detail",
          "dataset_uri"   : "recherche",
          "content"       : u"apiviz default API endpoint for detailled results",
          # "root_url"      : "https://solidata-api.co-demos.com/api/dsi/infos/get_one/5c7f0438328ed72e431f338e",
          "root_url"      : "https://solidata-api.co-demos.com/api/dso/infos/get_one/5d5fca92328ed71684ce1785", ## V2
          "args_options"  : [
            {  "app_arg" : "dataToken",  "arg" : "token",     "optional" : True,  "in" : ["url","header"],   "default" : "", "type": "str" },
            {  "app_arg" : "itemId",     "arg" : "item_id",   "optional" : False, "in" : ["url"],           "default" : "", "type": "str" },
          ],
          "resp_fields" : {
            "projects" : { "resp_format" : "list", "path" : "data/data_raw/f_data" },
            "total"    : { "resp_format" : "int",  "path" : "data/data_raw/f_data_count" },
          },
          "app_version"    : version,
          "method"        : "GET",
          "help"          : u"define the endpoint to get data for : a detailled data",
          "apiviz_front_uuid" : uuid_models["uuid_apcis"],
          "is_default"    : True
        },
  
        ### DATA STATS
        { "field"         : "cis_data_API_stats",
          "is_visible"    : True,
          "is_disabled"   : False,
          "data_type"     : "data",
          "endpoint_type" : "stat",
          "dataset_uri"   : "recherche",
          "content"       : u"apiviz default API endpoint for stats results",
  
          # "root_url"      : "https://solidata-api.co-demos.com/api/dsi/infos/get_one/5c7f0438328ed72e431f338e",
          # "root_url"      : "https://solidata-api.co-demos.com/api/dso/infos/get_one_sstats/5c89636d328ed70609be03ab",
          "root_url"      : "https://solidata-api.co-demos.com/api/dso/infos/get_one_stats/5d5fca92328ed71684ce1785", ## V2
  
          "args_options"  : [
            {  "app_arg" : "dataToken", "arg" : "token",          "optional" : True, "in" : ["url","header"], "default" : "", "type": "str" },
            {  "app_arg" : "query",     "arg" : "search_for",     "optional" : True, "in" : ["url"],          "default" : "", "type": "str" },
            {  "app_arg" : "filters",   "arg" : "search_filters", "optional" : True, "in" : ["url"],          "default" : "", "type": "str" },
          ],
          
          "payload_options" : {
  
            # "payload_format" : "list",
  
            "payload_queries" : [
              { 
                "serie_id" : "apcis-stat-bar-horiz",
                "agg_fields" : [
                  { 
                    "agg_field" : "source",
                    "agg_sum_type" : "count_items", 
                    "agg_needs_unwind" : False,
                    "agg_unwind_separator" : "-"
                  },
                  { 
                    "agg_field" : "coding APCIS N1",
                    "agg_sum_type" : "count_items",
                    "agg_needs_unwind" : True,
                    "agg_unwind_separator" : "-" 
                  }  
                ]
              },
              { 
                "serie_id" : "apcis-stat-donut",
                "agg_fields" : [
                  { 
                    "agg_field" : "source",
                    "agg_sum_type" : "count_items", 
                    "agg_needs_unwind" : False,
                    "agg_unwind_separator" : "-"
                  }
                ]
              },
            ],
          },
          "resp_fields" : {
            "stats"      : { "resp_format" : "dict", "path" : "series" },
            # "projects"   : { "resp_format" : "dict", "path" : "data" },
            # "dimensions" : { 
            #   "quantity"    : { "resp_format" : "int", "path" : "data/count", "label" : "" },
            #   "dimension_A" : { "resp_format" : "str", "path" : "data/_id",   "label" : "" },
            #   "dimension_B" : { "resp_format" : "str", "path" : "data/count", "label" : "" },
            # },
            # "total"      : { "resp_format" : "int",  "path" : "/" },
          },
  
          "app_version"    : version,
          "method"        : "POST",
          "help"          : u"define the endpoint to get data for : a stat about the dataset",
          "apiviz_front_uuid" : uuid_models["uuid_apcis"],
          "is_default"    : True
        },
  
        ### DATA MAP
        { "field"         : "cis_data_API_map",
          "is_visible"    : True,
          "is_disabled"   : False,
          "data_type"     : "data",
          "endpoint_type" : "map",
          "dataset_uri"   : "recherche",
  
          # "map_options"   : {
            
          #   ### TO ADAPT TO MAPBOX-GL-JS OPTIONS
          #   "url"              : "https://{s}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}{r}.png",
          #   "attribution"      : '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors &copy; <a href="https://carto.com/attributions">CARTO</a>',
          #   "subdomains"       : 'abcd',
          #   "center"           : [46.2276, 2.2137],
          #   "currentCenter"    : [46.2276, 2.2137],
          #   "zoom"             : 5,
          #   "maxZoom"          : 18,
          #   "minZoom"          : 2,
          #   "useMarkerCluster" : True,
          #   "pinIconUrl"       : "/static/icons/icon_pin_plein_violet.svg",
          #   "pinIconSize"      : { "highlighted" : [46, 46], "normal" : [29, 29]}
          
          # },
  
          "content"       : u"apiviz default API endpoint for map results",
          # "root_url"      : "https://solidata-api.co-demos.com/api/dsi/infos/get_one/5c7f0438328ed72e431f338e",
          "root_url"      : "https://solidata-api.co-demos.com/api/dso/infos/get_one/5d5fca92328ed71684ce1785", ## V2
          "args_options"  : [
            {  "app_arg" : "dataToken",  "arg" : "token",            "optional" : True, "in" : ["url","header"], "default" : "",   "type": "str" },
  
            {  "app_arg" : "forMap",     "arg" : "map_list",         "optional" : False, "in" : ["url"],         "default" : True, "type": "bool" },
            # {  "app_arg" : "asLatLng", "arg" : "as_latlng",        "optional" : False, "in" : ["url"],         "default" : True, "type": "bool" },
            {  "app_arg" : "onlyGeocoded", "arg" : "only_geocoded",  "optional" : False, "in" : ["url"],         "default" : True, "type": "bool" },
  
            # {  "app_arg" : "page",       "arg" : "page_n",           "optional" : True, "in" : ["url"],          "default" : 1,    "type": "int" },
            # {  "app_arg" : "perPage",    "arg" : "per_page", "optional" : True, "in" : ["url"],          "default" : 100,  "type": "int" },
            {  "app_arg" : "query",      "arg" : "search_for",       "optional" : True, "in" : ["url"],          "default" : "",   "type": "str" },
            {  "app_arg" : "filters",    "arg" : "search_filters",   "optional" : True, "in" : ["url"],          "default" : "",   "type": "str" },
            # {  "app_arg" : "itemId",     "arg" : "item_id",          "optional" : True, "in" : ["url"],          "default" : "",   "type": "str" },
  
          ],
          "resp_fields" : {
            "projects" : { "resp_format" : "list", "path" : "data/data_raw/f_data" },
            "total" :    { "resp_format" : "int",  "path" : "data/data_raw/f_data_count" },
          },
          "app_version"    : version,
          "method"        : "GET",
          "help"          : u"define the endpoint to get data for : map results",
          "apiviz_front_uuid" : uuid_models["uuid_apcis"],
          "is_default"    : True
        },
  
        ### DATA EXPORT
        { "field"         : "cis_data_API_export",
          "is_visible"    : True,
          "is_disabled"   : False,
          "data_type"     : "data",
          "endpoint_type" : "export",
          "dataset_uri"   : "recherche",
          "content"       : u"apiviz default API endpoint for export results",
          "root_url"      : "https://solidata-api.co-demos.com/api/dso/exports/as_csv/5d5fca92328ed71684ce1785", ## V2
          "args_options"  : [
            {  "app_arg" : "dataToken",  "arg" : "token",            "optional" : True, "in" : ["url","header"],  "default" : "", "type": "str" },
            # {  "app_arg" : "page",       "arg" : "page_n",           "optional" : True, "in" : ["url"],           "default" : 1,  "type": "int" },
            # {  "app_arg" : "perPage",    "arg" : "per_page",         "optional" : True, "in" : ["url"],           "default" : 300, "type": "int" },
            # {  "app_arg" : "query",      "arg" : "search_for",       "optional" : True, "in" : ["url"],           "default" : "", "type": "str" },
            # {  "app_arg" : "filters",    "arg" : "search_filters",   "optional" : True, "in" : ["url"],           "default" : "", "type": "str" },
            # {  "app_arg" : "shuffleSeed","arg" : "shuffle_seed",     "optional" : True, "in" : ["url"],           "default" : 205 , "type": "int" },
          ],
          "resp_fields" : {
            # "projects" : { "resp_format" : "list", "path" : "data/data_raw/f_data" },
            # "total" :    { "resp_format" : "int",  "path" : "data/data_raw/f_data_count" },
          },
          "app_version"    : version,
          "method"        : "GET",
          "help"          : u"define the endpoint to get data for : export dataset as csv",
          "apiviz_front_uuid" : uuid_models["uuid_apcis"],
          "is_default"    : True
        },
  
  ]
  