
Evaluados API documentation version 1.0
https://us-central1-e-valuados-v2.cloudfunctions.net/webApi/api/v1/
/users
get user information by uid
get /users/{uid}
get user information by uid
URI Parameters
- uid: required(string)
Body
Media type: application/json
Type: application/json
HTTP status code 200
Body
Media type: application/json
Type:
{
"uid": "0070CtK7JeT77adC3M4PEaYmsPo2",
"email": "user@test.com",
"emailVerified": false,
"displayName": "Henry Vallenilla",
"disabled": false,
"metadata": {
"lastSignInTime": "Fri, 21 Aug 2020 20:21:23 GMT",
"creationTime": "Fri, 21 Aug 2020 20:21:23 GMT"
},
"passwordHash": "UkVEQUNURUQ=",
"tokensValidAfterTime": "Fri, 21 Aug 2020 20:21:23 GMT",
"providerData": [
{
"uid": "user@test.com",
"displayName": "Henry Vallenilla",
"email": "user@test.com",
"providerId": "password"
}
]
}
/root
/stories
/surveys
get /surveys
HTTP status code 200
Body
Media type: application/json
Type:
{
"-MAShGeu5DFiwrFMrugU": {
"assignature": "-LGj_SNhJojmogrGM8jQ",
"assignature:": "-LGj_SNhJojmogrGM8jQ",
"date_from": "06/21/2020",
"date_to": "07/09/2020",
"description": "A continuación responde las siguientes preguntas, tu participación nos ayuda a seguir creciendo.",
"id": "-MAShGeu5DFiwrFMrugU",
"name": "Ayúdanos con esta encuesta"
},
"-MAaFmRm2klYQxy0EN5c": {
"assignature": "-M9-EOPW7CCLahnGjxir",
"assignature:": "-M9-EOPW7CCLahnGjxir",
"date_from": "06/16/2020",
"date_to": "06/19/2020",
"description": "Queremos saber más de vos para mejorar, solo 3 preguntas nos va a ayudar mucho",
"id": "-MAaFmRm2klYQxy0EN5c",
"name": "Encuesta Evaluados"
}
}
/subjects
Get the information about one subject by uid
get /subjects/{uid}
Get the information about one subject by uid
URI Parameters
- uid: required(string)
HTTP status code 200
Body
Media type: application/json
Type:
{
"cantidad_alumnos": "26",
"codigo": "probando-test-2",
"codigo_plan_estudio": "Para testing dev",
"created_at": 1595364552,
"date_from": "07/22/2020",
"date_to": "08/09/2020",
"name": "Testing CODE",
"profile_type_user": 1,
"root": 0,
"status": "1",
"teaching": 0,
"time": "",
"user": 1,
"year": ""
}
Given the id of a subject, its questionnaires are obtained
Given the id of a subject, its the environment, questionnaires actives and inactives
get /subjects/{uid}/environment
Given the id of a subject, its the environment, questionnaires actives and inactives
URI Parameters
- uid: required(string)
HTTP status code 200
Body
Media type: application/json
Type:
{
"id": "-MCn7n-_33OF6wE7ysgp",
"cantidad_alumnos": "26",
"codigo": "probando-test-2",
"codigo_plan_estudio": "Para testing dev",
"created_at": 1595364552,
"date_from": "07/22/2020",
"date_to": "08/09/2020",
"name": "Testing CODE",
"profile_type_user": 1,
"root": 0,
"status": "1",
"teaching": 0,
"time": "",
"user": 1,
"year": "",
"questionnaires": {
"actives": [
],
"inactives": [
{
"id": "-MCn7nPlG6-sWNYwKCkE",
"created_at": {
"date": "2020-07-21 20:49:13.548139",
"timezone": "UTC",
"timezone_type": 3
},
"descripcion": "Nos ponemos a prueba, vamos a ver cuánto sabemos sobre el Coronavirus",
"desde": "03/19/2020",
"hasta": "08/31/2020",
"materia": "-MCn7n-_33OF6wE7ysgp",
"name": " CORONAVIRUS",
"reviews": {
"dislikes": {
"count": 1
},
"likes": {
"count": 12,
"users": [
"NDBFmLFxs1USbyPzmaEMeaP9f6B3",
"bvGVLCgdW1T6Okdoy1XQf0DZOLJ3"
]
}
},
"statistic": {
"answers": {
"corrects": 0,
"emptys": 0,
"incorrects": 0
},
"score": 0
},
"status": 1,
"time": 120,
"time_activation": "00:00",
"time_close": "00:00",
"time_desactivation": "23:59"
}
]
}
}
HTTP status code 404
Body
Media type: application/json
Type: any
Example:
{"message": "Subject not found"}
Get the user information by UID
get /subjects/user/{uid}
Get the user information by UID
URI Parameters
- uid: required(string)
HTTP status code 200
Body
Media type: application/json
Type:
{
"uid": "0070CtK7JeT77adC3M4PEaYmsPo2",
"email": "exmaple@gmail.com",
"emailVerified": false,
"displayName": "user example",
"disabled": false,
"metadata": {
"lastSignInTime": "Fri, 21 Aug 2020 20:21:23 GMT",
"creationTime": "Fri, 21 Aug 2020 20:21:23 GMT"
},
"tokensValidAfterTime": "Fri, 21 Aug 2020 20:21:23 GMT",
"providerData": [
{
"uid": "examplecarlisssh65@gmail.com",
"displayName": "Example user",
"email": "example@gmail.com",
"providerId": "password"
}
]
}
DEVELOPING
/questionnaires
Get all questionnaires
get /questionnaires
Get all questionnaires
HTTP status code 200
Body
Media type: application/json
Type:
{
"-L1St77Pi8ao6NdRtp-Z": {
"descripcion": " Lorem Ipsum es simplemente el texto de relleno de las imprentas. ",
"desde": "07/01/2018",
"hasta": "07/22/2018",
"materia": "-L1SbVV4TUfU2nIncH-K",
"name": "Inicios Realidad Virtual 2017",
"status": 1
},
"-L5xrrmFtzEqczn5G2oz": {
"descripcion": " Test evaluados 21 hasta 28 febrero ",
"desde": "07/01/2018",
"hasta": "07/28/2018",
"materia": "-L1SbaniRbzRF6GoeAYg",
"name": "Cuestionario 1",
"numero": "2",
"status": 1,
"tema": "Test",
"time": "35"
},
"-LG_ylYI_hJVGnA9V6NY": {
"descripcion": " Pureba ",
"desde": "07/01/2018",
"hasta": "07/12/2018",
"materia": "-LG_yKzSjCIpkz3DWnaE",
"name": "Numero",
"numero": "1",
"status": 1,
"tema": "4.0",
"time": "40"
}
}
Get questionnaire by ID
get /questionnaires/{uid}
Get questionnaire by ID
URI Parameters
- uid: required(string)
HTTP status code 200
Body
Media type: application/json
Type:
{
"descripcion": " Test evaluados 21 hasta 28 febrero ",
"desde": "07/01/2018",
"hasta": "07/28/2018",
"materia": "-L1SbaniRbzRF6GoeAYg",
"name": "Cuestionario 1",
"numero": "2",
"status": 1,
"tema": "Test",
"time": "35"
}
Get the questionnaire activity
get /questionnaires/{uid}/activity
Get the questionnaire activity
URI Parameters
- uid: required(string)
HTTP status code 200
Body
Media type: application/json
Type:
{
"questionnaire": {
"descripcion": " Test evaluados 21 hasta 28 febrero ",
"desde": "07/01/2018",
"hasta": "07/28/2018",
"materia": "-L1SbaniRbzRF6GoeAYg",
"name": "Cuestionario 1",
"numero": "2",
"status": 1,
"tema": "Test",
"time": "35",
"average": 16.665
},
"statistic": {
"7G042mCRMDWUnJVYkCYDAlfUWhx2": {
"name": "Henry Daniel Vallenilla",
"photo": null,
"time_spent": null,
"what_responded": null,
"answers": {
"-LGWRl5XqHdUxj4Chx_S": 0,
"-LGWRlMNq5yvmo0Z1mSp": 0,
"-LGWRloh6_WjBvWoZ0H6": 0,
"-LGWRmaxeeLVXFF82Kj9": 0,
"-LGWRmrdlQJoq5sIgB4g": 1,
"-LGWRn5IS5CIr1nVfKvk": 0,
"-LGWRn_yc0R-B8U5blU6": 0,
"-LGWRpHkYLlvK3UlOxmv": 0,
"-LGWRpY4dHTMbAmOrl9Z": 0
},
"promedio": "11.11",
"total": 1,
"promedio_materia": 11.11,
"class_text": "disapproved",
"class_tag": "label label-danger",
"class_chart": "danger",
"chart_color": "#dd4b39"
},
"SJw0vej4SYfIY7ZXdDhZK5fc6Fs2": {
"name": "Henry",
"photo": null,
"time_spent": null,
"what_responded": null,
"answers": {
"-LGWRl5XqHdUxj4Chx_S": 0,
"-LGWRlMNq5yvmo0Z1mSp": 0,
"-LGWRloh6_WjBvWoZ0H6": 1,
"-LGWRmaxeeLVXFF82Kj9": 0,
"-LGWRmrdlQJoq5sIgB4g": 0,
"-LGWRn5IS5CIr1nVfKvk": 0,
"-LGWRn_yc0R-B8U5blU6": 0,
"-LGWRpHkYLlvK3UlOxmv": 1,
"-LGWRpY4dHTMbAmOrl9Z": 0
},
"promedio": "22.22",
"total": 1,
"promedio_materia": 22.22,
"class_text": "disapproved",
"class_tag": "label label-danger",
"class_chart": "danger",
"chart_color": "#dd4b39"
}
}
}
Get the questionnaires of a subject
get /questionnaires/subject/{subjects_id}
Get the questionnaires of a subject
URI Parameters
- subjects_id: required(string)
HTTP status code 200
Body
Media type: application/json
Type:
[
{
"id": "-L5xrrmFtzEqczn5G2oz",
"descripcion": " Test evaluados 21 hasta 28 febrero ",
"desde": "07/01/2018",
"hasta": "07/28/2018",
"materia": "-L1SbaniRbzRF6GoeAYg",
"name": "Cuestionario 1",
"numero": "2",
"status": 1,
"tema": "Test",
"time": "35",
"performance": {
"total": 2,
"score": "16.66"
}
}
]
/results
Show the results of a questionnaire
get /results/questionnaire/{questionnaire_id}
Show the results of a questionnaire
URI Parameters
- questionnaire_id: required(string)
HTTP status code 200
Body
Media type: application/json
Type:
{
{
"-LdcI4bFlXf36A3lmyoF": {
"answer": {
"answer": "Cuál va a ser mi estrategia para vincularme con alguna otra organización",
"correct": false,
"selected": true
},
"control": 0,
"materia": "-LGj_SNhJojmogrGM8jQ",
"position": 1,
"questionId": "-LcZd8hG9diL4QWV4kv9",
"questionnaireId": "-LcZd8Trp9fGBcebvo0_",
"response_status": 0,
"userId": "C6L67WEgtfa2R1Rvcp3BFz1EZwQ2"
},
"-LdcIAlHAc9bjvaR5Qbt": {
"answer": {
"answer": "Actividades claves",
"correct": false,
"selected": true
},
"control": 0,
"materia": "-LGj_SNhJojmogrGM8jQ",
"position": 6,
"questionId": "-LcZd8nD_NwriiD00Ply",
"questionnaireId": "-LcZd8Trp9fGBcebvo0_",
"response_status": 0,
"userId": "C6L67WEgtfa2R1Rvcp3BFz1EZwQ2"
}
}
Show the results by user
get /results/user/{user_id}
Show the results by user
URI Parameters
- user_id: required(string)
HTTP status code 200
Body
Media type: application/json
Type:
{
{
"-LdcI4bFlXf36A3lmyoF": {
"answer": {
"answer": "Cuál va a ser mi estrategia para vincularme con alguna otra organización",
"correct": false,
"selected": true
},
"control": 0,
"materia": "-LGj_SNhJojmogrGM8jQ",
"position": 1,
"questionId": "-LcZd8hG9diL4QWV4kv9",
"questionnaireId": "-LcZd8Trp9fGBcebvo0_",
"response_status": 0,
"userId": "C6L67WEgtfa2R1Rvcp3BFz1EZwQ2"
},
"-LdcIAlHAc9bjvaR5Qbt": {
"answer": {
"answer": "Actividades claves",
"correct": false,
"selected": true
},
"control": 0,
"materia": "-LGj_SNhJojmogrGM8jQ",
"position": 6,
"questionId": "-LcZd8nD_NwriiD00Ply",
"questionnaireId": "-LcZd8Trp9fGBcebvo0_",
"response_status": 0,
"userId": "C6L67WEgtfa2R1Rvcp3BFz1EZwQ2"
},
"-LdcIGeCOzfp_lMc6CQA": {
"answer": {
"answer": "Supone un nuevo enfoque que se está adoptando en todo el mundo para cambiar la forma en que las startups crean y lanzan sus productos.",
"correct": false,
"selected": true
},
"control": 0,
"materia": "-LGj_SNhJojmogrGM8jQ",
"position": 3,
"questionId": "-LcZd8u2cYvc9lHaO3yb",
"questionnaireId": "-LcZd8Trp9fGBcebvo0_",
"response_status": 0,
"userId": "C6L67WEgtfa2R1Rvcp3BFz1EZwQ2"
},
"-LdcIKk9F0XWvLGYTGao": {
"answer": {
"answer": "Una herramienta para usar con inversores únicamente.",
"correct": false,
"selected": true
},
"control": 0,
"materia": "-LGj_SNhJojmogrGM8jQ",
"position": 0,
"questionId": "-LcZd9-5jRs3n3thcmIz",
"questionnaireId": "-LcZd8Trp9fGBcebvo0_",
"response_status": 0,
"userId": "C6L67WEgtfa2R1Rvcp3BFz1EZwQ2"
},
"-LdcINHYNZGZi0IqQ9Ef": {
"answer": {
"answer": "¿Qué beneficios trae tu producto servicio? ¿Qué es lo que hace único comparado con el de la competencia?",
"correct": true,
"selected": true
},
"control": 0,
"materia": "-LGj_SNhJojmogrGM8jQ",
"position": 0,
"questionId": "-LcZd95EFWdYBc5hiTWP",
"questionnaireId": "-LcZd8Trp9fGBcebvo0_",
"response_status": 1,
"userId": "C6L67WEgtfa2R1Rvcp3BFz1EZwQ2"
}
}
/student-statistics/{questionnaire_id}
Get the questionnaire statistic by id
get /student-statistics/{questionnaire_id}
Get the questionnaire statistic by id
URI Parameters
- questionnaire_id: required(string)
HTTP status code 200
Body
Media type: application/json
Type:
{
"0BRwkZXAW4hM3yPo9TB6qzacrBr1": {
"nombreEstudiante": "Milagros Frias",
"promedio": "33.33",
"respuestas": {
"-LcZd8hG9diL4QWV4kv9": 0,
"-LcZd8nD_NwriiD00Ply": 1,
"-LcZd8u2cYvc9lHaO3yb": 1,
"-LcZd9-5jRs3n3thcmIz": 0,
"-LcZd95EFWdYBc5hiTWP": 0,
"-LcZdASAy3Z49J3gNoNg": 0
},
"totalPreguntas": 6
},
"0RwmCzqrU8MCsXXwFXkjJxT09Mt1": {
"nombreEstudiante": "Evaluados Soporte",
"promedio": "66.67",
"respuestas": {
"-LcZd8hG9diL4QWV4kv9": 1,
"-LcZd8nD_NwriiD00Ply": 0,
"-LcZd8u2cYvc9lHaO3yb": 1,
"-LcZd9-5jRs3n3thcmIz": 1,
"-LcZd95EFWdYBc5hiTWP": 0,
"-LcZdASAy3Z49J3gNoNg": 1
},
"totalPreguntas": 6
},
"0SwC335nLPfJ8BUZuT5lKj5oUYJ3": {
"nombreEstudiante": "vida y dibujo",
"promedio": "0.00",
"respuestas": {
"-LcZd8hG9diL4QWV4kv9": 0
},
"totalPreguntas": 6
}
}
/questions/questionnaire/{questionnaire_id}
Get the all questions of a questionnaire, given the id
get /questions/questionnaire/{questionnaire_id}
Get the all questions of a questionnaire, given the id
URI Parameters
- questionnaire_id: required(string)
HTTP status code 200
Body
Media type: application/json
Type:
{
"-LcZd8hG9diL4QWV4kv9": {
"answers": [
{
"answer": "A cuantos clientes tengo que llegar",
"correct": false,
"selected": false
},
{
"answer": "Cuál va a ser mi estrategia para vincularme con alguna otra organización",
"correct": false,
"selected": false
},
{
"answer": "Cómo voy a cobrar mi propuesta de valor",
"correct": true,
"selected": false
},
{
"answer": "Cuánto dinero me hace falta para proyectarme",
"correct": false,
"selected": false
}
],
"created_at": {
"date": "2019-04-16 01:35:28.000000",
"timezone": "America/New_York",
"timezone_type": 3
},
"justification": "El bloque de fuentes de ingreso, tiene como objetivo identificar que aportación monetaria hace cada grupo/cliente y de donde vienen las entradas (ventas, comisiones, licencias, publicidad, fee mensual, entre otras).",
"questionaire": "-LcZd8Trp9fGBcebvo0_",
"title": "En el bloque de fuentes de ingreso, voy describir",
"updated_at": {
"message": "This value is not a valid datetime."
}
}
}