<?php

//
//  Database configuration
//

//
//  URI raíz de la aplicación
//

define('SCRIPTS_DIR', '/edas3/restapi/v1'); 

// Path root of Directory files in File System or Disc
define('FILES_DIR', 'C:/Apache24/htdocs/edas3/files'); 
define('FILES_ROOT', 'C:/Apache24/htdocs/edas3'); 

// In Server Linux
// define('FILES_DIR', '/home/u637977917/public_html/edas3/files'); 
// define('FILES_ROOT', '/home/u637977917/public_html/edas3'); 
 

//referencia generado con MD5(uniqueid(<some_string>, true))
define('API_KEY','3d524a53c110e4c22463b10ed32cef9d');

/**
 * API Response HTTP CODE
 * Used as reference for API REST Response Header
 *
 */
/*
200 	OK
201 	Created
304 	Not Modified
400 	Bad Request
401 	Unauthorized
403 	Forbidden
404 	Not Found
422 	Unprocessable Entity
500 	Internal Server Error
*/

// Error messages to facilitate their translation

$errorMessages = array(
    "001" => "Usuario identificado correctamente!",
    "002" => "Error al identificación de usuario. Por favor intenta nuevamente.",
    "003" => "Required field(s) or attribute(s) {1} is missing or empty",
    "004" => "Email address is not valid",
    "005" => "Acceso denegado. Token inválido",
    "006" => "Falta token de autorización",
    "007" => "Token Expirado. Token inválido",
    "008" => "{1} directory does not exist",
    "009" => "Directory {1} has no access",
    "010" => "document {1} not found in current directory",
    "011" => "Dcoument {1} not access",
    "012" => "The work directory has not been set",
    "013" => "The attribute action is incorrect or the ID is not a number",
    "014" => "Document {1} Deleted.",
    "015" => "One or more of the types of the variables are not correct",
    "016" => "New Code {1} already exists in this directory",
    "017" => "Document {1} Updated.",
    "018" => "Directory {1} has been eliminated",
    "019" => "In the document {1}, the file {2} has not been found",
    "020" => "In the document {1}, the file {2} already exists",
    "021" => "In the document {1}, the file {2} has been inserted",
    "022" => "change",
    "023" => "change",
    "024" => "change",
    "025" => "change",
    "026" => "change"

);

?>