Método | URL | Parámetros | Respuesta | Descripción |
---|
POST | /sgiapitasks/cron | SgiApiCronTaskInput
{
"description": "Prueba CRON",
"serviceType": "USR",
"relativeUrl": "/config/time-zone",
"httpMethod": "GET",
"cronExpression": "0/10 * * * * ?"
}
| SgiApiCronTaskOutput
{
"description": "Prueba CRON",
"serviceType": "USR",
"relativeUrl": "/config/time-zone",
"httpMethod": "GET",
"cronExpression": "0/10 * * * * ?",
"id": 7,
"disabled": false
}
| Crea una tarea programada repetitiva de invocación a API REST de SGI |
POST | /sgiapitasks/instant | SgiApiInstantTaskInput
{
"description": "Prueba Instant",
"serviceType": "USR",
"relativeUrl": "/config/time-zone",
"httpMethod": "GET",
"instant": "2021-11-04T07:19:00Z"
}
| SgiApiInstantTaskOutput
{
"description": "Prueba Instant",
"serviceType": "USR",
"relativeUrl": "/config/time-zone",
"httpMethod": "GET",
"instant": "2021-11-04T07:19:00Z",
"id": 8,
"disabled": false
}
| Crea una tarea programada para un instante determinado de invocación a API REST de SGI |
PUT | /sgiapitasks/cron/{id} | SgiApiCronTaskInput
{
"description": "Prueba CRON mod",
"serviceType": "USR",
"relativeUrl": "/config/time-zone",
"httpMethod": "GET",
"cronExpression": "0 0 0 * * ?"
}
| SgiApiCronTaskOutput
{
"description": "Prueba CRON mod",
"serviceType": "USR",
"relativeUrl": "/config/time-zone",
"httpMethod": "GET",
"cronExpression": "0 0 0 * * ?",
"id": 7,
"disabled": false
}
| Actualiza una tarea programada repetitiva de invocación a API REST de SGI |
PUT | /sgiapitasks/instant/{id} | SgiApiInstantTaskInput
{
"description": "Prueba Instant mod",
"serviceType": "USR",
"relativeUrl": "/config/time-zone",
"httpMethod": "GET",
"instant": "2022-03-01T16:00:00Z"
}
| SgiApiInstantTaskOutput
{
"description": "Prueba Instant mod",
"serviceType": "USR",
"relativeUrl": "/config/time-zone",
"httpMethod": "GET",
"instant": "2022-03-01T16:00:00Z",
"id": 8,
"disabled": false
}
| Actualiza una tarea programada para un instante determinado de invocación a API REST de SGI |
DELETE | /sgiapitasks/{id} |
|
| Elimina una tarea programada (repetitiva o para un instante determinado) de invocación a API REST de SGI |
GET | /sgiapitasks/{id} |
| SgiApiCronTaskOutput ó SgiApiInstantTaskOutput según el tipo de tarea
{
"description": "Paso a archivado por inactividad",
"serviceType": "ETI",
"relativeUrl": "/memorias/inactivo/archivar",
"httpMethod": "PATCH",
"cronExpression": "0 30 0 * * ?",
"id": 3,
"disabled": false
}
{
"description": "Prueba Instant",
"serviceType": "USR",
"relativeUrl": "/config/time-zone",
"httpMethod": "GET",
"instant": "2021-11-04T07:19:00Z",
"id": 8,
"disabled": false
}
| Recupera una tarea (repetitiva o para un instante determinado) de invocación a API REST de SGI |
GET | /sgiapitasks | q + s | Lista[SgiApiCronTaskOutput ó SgiApiInstantTaskOutput]
[
{
"description": "Paso a archivado por no presentar de nuevo el informe",
"serviceType": "ETI",
"relativeUrl": "/memorias/no-presentado/archivar",
"httpMethod": "PATCH",
"cronExpression": "0 15 0 * * ?",
"id": 2,
"disabled": false
},
{
"description": "Paso a archivado por inactividad",
"serviceType": "ETI",
"relativeUrl": "/memorias/inactivo/archivar",
"httpMethod": "PATCH",
"cronExpression": "0 30 0 * * ?",
"id": 3,
"disabled": false
},
{
"description": "Comunicado de inicio de período de presentación de justificación de gastos",
"serviceType": "CSP",
"relativeUrl": "/comunicados/inicio-presentacion-justificacion-gastos",
"httpMethod": "GET",
"cronExpression": "0/10 * * * * ?",
"id": 6,
"disabled": false
},
{
"description": "Prueba CRON",
"serviceType": "USR",
"relativeUrl": "/config/time-zone",
"httpMethod": "GET",
"instant": "2021-11-04T07:19:00Z",
"id": 7,
"disabled": false
},
{
"description": "Prueba CRON",
"serviceType": "USR",
"relativeUrl": "/config/time-zone",
"httpMethod": "GET",
"instant": "2022-03-01T16:00:00Z",
"id": 8,
"disabled": false
}
]
| Busca/Lista tareas programadas (repetitivas o para un instante determinado) de invocación a API REST de SGI |
GET | /sgiapitasks/cron | q + s | Lista[SgiApiCronTaskOutput]
[
{
"description": "Paso a archivado por no presentar de nuevo el informe",
"serviceType": "ETI",
"relativeUrl": "/memorias/no-presentado/archivar",
"httpMethod": "PATCH",
"cronExpression": "0 15 0 * * ?",
"id": 2,
"disabled": false
},
{
"description": "Paso a archivado por inactividad",
"serviceType": "ETI",
"relativeUrl": "/memorias/inactivo/archivar",
"httpMethod": "PATCH",
"cronExpression": "0 30 0 * * ?",
"id": 3,
"disabled": false
},
{
"description": "Comunicado de inicio de período de presentación de justificación de gastos",
"serviceType": "CSP",
"relativeUrl": "/comunicados/inicio-presentacion-justificacion-gastos",
"httpMethod": "GET",
"cronExpression": "0/10 * * * * ?",
"id": 6,
"disabled": false
}
]
| Busca/Lista tareas programadas repetitivas de invocación a API REST de SGI |
GET | /sgiapitasks/instant | q + s | Lista[SgiApiInstantTaskOutput]
[
{
"description": "Prueba CRON",
"serviceType": "USR",
"relativeUrl": "/config/time-zone",
"httpMethod": "GET",
"instant": "2021-11-04T07:19:00Z",
"id": 7,
"disabled": false
},
{
"description": "Prueba CRON",
"serviceType": "USR",
"relativeUrl": "/config/time-zone",
"httpMethod": "GET",
"instant": "2022-03-01T16:00:00Z",
"id": 8,
"disabled": false
}
]
| Busca/Lista tareas programadas para un instante determinado de invocación a API REST de SGI |