Obtener formularios - getForms
POST https://api.service24gps.com/api/v1/onapp/getForms
Obtiene el listado de todos los formularios creados por el cliente, y la estructura almacenada.
Ver parámetros de solicitud:
Parámetros | Descripción | Ejemplo |
token | Token generado por el método auth. | eyJ0eXAi5225V1QiLCJhbGciOiJIUz7829.eyJ1aWQiOiJPR1ZrTlRVMk5URTNObU0wTXpNM013PT0iLCJ0eXBlIjoiTWc9PSIsImRhdGV0aW1lIjoiMjAyMjA0MjcxNjU0MTkiLCJleHBpcmUiOjIxNjAwLCJjbGllbnRlIjoiTkRFNE9UYz0iLCJkaXN0cmlidWlkb3IiOiJOREU0T1RZPSJ9.TvJclXkRKzKmoDgjeOuZCZOYix4HhTXy4_5lSMRgTMU |
Solicitud de ejemplo:
curl --location --request POST 'https://api.service24gps.com/api/v1/onapp/getforms' \
--header 'Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiJPR1ZrTlRVMk5URTNObU0wTXpNM013PT0iLCJ0eXBlIjoiTWc9PSIsImRhdGV0aW1lIjoiMjAyMjA0MjgwNzEwMTMiLCJleHBpcmUiOjIxNjAwLCJjbGllbnRlIjoiTkRFNE9UYz0iLCJkaXN0cmlidWlkb3IiOiJOREU0T1RZPSJ9.l26c6-zqG8SLukYakCPX8DMZnDpWm0ATzmPCtfggk4o'
Respuesta de ejemplo:
{
"status": "200",
"data": {
"v2": [
{
"id": "852",
"nombre": "Cuestionario prueba 2",
"header": {
"imagen1": "https://newspace1.nyc3.digitaloceanspaces.com/DynamicForms/formato/41897/p2000220405.jpg",
"imagen2": "https://newspace1.nyc3.digitaloceanspaces.com/DynamicForms/formato/41897/p200120405.jpg",
"nombre": "Cuestionario prueba 2",
"showFolio": "1"
},
"generales": {
"1": {
"texto": "test1",
"respuesta": "13",
"alineacion": "1",
"orden": "1",
"opciones": {
"1": {
"nombre": " test1 "
},
"2": {
"nombre": " test2 "
}
}
}
},
"2": {
"texto": "test2",
"respuesta": "14",
"alineacion": "1",
"orden": "1",
"opciones": {
"1": {
"nombre": " test "
},
"2": {
"nombre": " test "
},
}
}
}
},
"categorias": {
"1": {
"texto": "validacion",
"respuesta": "16",
"alineacion": "1",
"orden": "1"
},
"2": {
"texto": "fecha inicio",
"respuesta": "6",
"alineacion": "1",
"orden": "1"
}
},
"footes": null,
"vigencia": "-1",
"metadatos": {
"idFormato": "852",
"imei": "ed55625c43373",
"url": "https://qa.service24gps.com:443/DynamicForms/ChangeElementStatus/AnswerForms/ContestarFormato?token=88396386fba25",
"noFinalizar": 1,
"vigencia": "2022-04-04",
"contador": 3
},
"token": "88378963ba25",
"status": "1"
}
],
"v3": [
{
"assignedid": "71192",
"idform": "863",
"duration": "-1",
"version": "3",
"name": "Formulario prueba",
"form": [
{
"type": "header",
"subtype": "h1",
"label": "Prueba formulario titulo"
},
{
"type": "text",
"required": false,
"label": "Campo de Texto",
"className": "form-control",
"name": "text-1649348824011",
"value": "Prueba de texto formulario",
"subtype": "text"
},
{
"type": "customDatetime",
"subtype": "datetime-local",
"required": false,
"label": "Fecha / Hora",
"name": "customDatetime-1649349101208",
"value": "2022-04-07T11:31"
},
{
"type": "starRating",
"required": false,
"label": "Calificación",
"name": "starRating-1649349115836"
},
{
"type": "jSignature",
"required": false,
"label": "Firma",
"description": "firma de enterado",
"name": "jSignature-1649349139232"
},
{
"type": "multimedia",
"subtype": "image",
"required": false,
"label": "Multimedia",
"name": "multimedia-1649429241021"
}
],
"answered": "0",
"date": "2022-04-08",
"hour": "07:57:13",
"onlyOnce": false
}
]
},
"extra": []
}