Versiones comparadas

Clave

  • Se ha añadido esta línea.
  • Se ha eliminado esta línea.
  • El formato se ha cambiado.

Reestructuración de la información de la planta en recursos de infraestructura

Tras incluir el concepto de edificio entre las ubicaciones y las plantas, se hace necesario cambiar la estructura en la consulta, creación y modificación de recursos de infraestructura.

Guía detallada

Se requiere la adaptación para extraer los campos nuevos en la consulta de información y enviarlos (modificados o sin modificar) en la llamada a la creación y modificación.

El campo ubicacionFisica.planta dejará de utilizarse y se sustituirá por la estructura ubicacionFisica.edificio.planta.nombre.

También será necesario crear y editar recursos de infraestructura añadiendo el edificio a la planta y asegurando que ambos son compatibles entre sí, y a su vez, con la ubicación seleccionada para el recurso.


Info

Métodos REST afectados:

Obtener recursos de infraestructura (listado y detalle)

Expandir
titleInformación adicional...


HTML
<div style="margin: 0 0 15px;margin-top: 0px;margin-right: 0px;margin-bottom: 15px;margin-left: 0px;border: 1px solid #000;border-radius: 4px;-webkit-box-shadow: 0 0 3px rgba(0,0,0,.19);box-shadow: 0 0 3px
HTML
<div style="margin: 0 0 15px;margin-top: 0px;margin-right: 0px;margin-bottom: 15px;margin-left: 0px;border: 1px solid #000;border-radius: 4px;-webkit-box-shadow: 0 0 3px rgba(0,0,0,.19);box-shadow: 0 0 3px rgba(0,0,0,.19);border-color: #61affe;background: rgba(97,175,254,.1);"> <div style="border-color: #61affe;display: flex;-webkit-box-align: center;align-items: center;padding: 5px;"> <span style="background: #61affe;font-size: 14px;font-weight: 700;min-width: 80px;padding: 6px 15px;text-align: center;border-radius: 3px;text-shadow: 0 1px 0
 rgba(0,0,0,.
1
19);
font
border-
family
color: 
sans-serif
#61affe;
color
background: 
#fff
rgba(97,175,254,.1);"
>GET</span>
>
<span
<div style="
font
border-
size
color: 
16px
#61affe;display: 
-webkit-box;display: -ms-flexbox;display:
flex;-webkit-box-
flex
align: 
0
center;align-
ms-flex
items: 
0 3 auto;flex: 0 3 auto;-webkit-box-align: center;-ms-flex-align: center;align-items: center;word-break: break-all;padding: 0 10px
center;padding: 5px;">
<span style="background: #61affe;font-size: 14px;font-weight: 700;min-width: 80px;padding: 6px 15px;text-align: center;border-radius: 3px;text-shadow: 0 1px 0 rgba(0,0,0,.1);font-family: 
monospace;font-weight: 600
sans-serif;color: 
#3b4151
#fff;"
>/cgescms/recursos/infraestructura</span> <div
>GET</span>
<span style="font-size: 
13px
16px;display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-flex: 
1
0;-ms-flex: 
1
0 3 auto;flex: 0 3 
1;font-family: sans-serif;color: #3b4151;">Listado de recursos de infraestructura</div> </div> </div> <div style="margin: 0 0 15px;margin-top: 0px;margin-right: 0px;margin-bottom: 15px;margin-left: 0px;border: 1px solid #000;border-radius: 4px
auto;-webkit-box-align: center;-ms-flex-align: center;align-items: center;word-break: break-all;padding: 0 10px;font-family: monospace;font-weight: 600;color: #3b4151;">/cgescms/recursos/infraestructura</span>
<div style="font-size: 13px;-webkit-box-
shadow
flex: 
0 0 3px rgba(0,0,0,.19);box-shadow: 0 0 3px rgba(0,0,0,.19);border-color: #49cc90;background: rgba(73,204,144,.1);">
1;-ms-flex: 1;flex: 1;font-family: sans-serif;color: #3b4151;">Listado de recursos de infraestructura</div>
</div>
</div>
<div style="
border-color
margin: 
#49cc90;display: flex;-webkit-box-align: center;align-items: center;padding: 5px;"> <span style="background: #49cc90;font-size: 14px;font-weight: 700;min-width: 80px;padding: 6px 15px;text-align: center;border-radius: 3px;text-shadow: 0 1px 0
0 0 15px;margin-top: 0px;margin-right: 0px;margin-bottom: 15px;margin-left: 0px;border: 1px solid #000;border-radius: 4px;-webkit-box-shadow: 0 0 3px rgba(0,0,0,.19);box-shadow: 0 0 3px rgba(0,0,0,.
1
19);
font
border-
family
color: 
sans-serif
#61affe;
color
background: 
#fff;">POST</span> <span
rgba(97,175,254,.1);">
<div style="
font
border-
size
color: 
16px
#61affe;display: flex;-webkit-box
;display: -ms-flexbox;display
-align: 
flex
center;align-
webkit-box-flex
items: 
0;-ms-flex: 0 3 auto;flex: 0 3 auto;-webkit-box-align: center;-ms-flex
center;padding: 5px;">
<span style="background: #61affe;font-size: 14px;font-weight: 700;min-width: 80px;padding: 6px 15px;text-align: center;
align
border-
items
radius: 
center
3px;
word
text-
break
shadow:
break-all;padding:
 0 1px 0 
10px
rgba(0,0,0,.1);font-family: 
monospace;font-weight: 600
sans-serif;color: 
#3b4151
#fff;"
>/cgescms/recursos/infraestructura</
>GET</span>
<div
<span style="font-size
: 13px
: 16px;display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-flex: 
1
0;-ms-flex: 0 3 
1
auto;flex: 0 3 
1
auto;
font-family: sans-serif;color: #3b4151;">Crear recurso de infraestructura</div> </div> </div> <div style="margin: 0 0 15px;margin-top: 0px;margin-right: 0px;margin-bottom: 15px;margin-left: 0px;border: 1px solid #000;border-radius: 4px
-webkit-box-align: center;-ms-flex-align: center;align-items: center;word-break: break-all;padding: 0 10px;font-family: monospace;font-weight: 600;color: #3b4151;">/cgescms/recursos/infraestructura/{uuidRecurso}</span>
<div style="font-size: 13px;-webkit-box-
shadow
flex: 
0 0 3px rgba(0,0,0,.19);box-shadow: 0 0 3px rgba(0,0,0,.19);border-color: #61affe;background: rgba(97,175,254,.1);"> <div style="border-color: #61affe;display: flex;-webkit-box-align: center;align-items: center;padding: 5px;"> <span style="background: #61affe;font-size: 14px;font-weight: 700;min-width: 80px;padding: 6px 15px;text-align: center;border-radius: 3px;text-shadow: 0 1px 0 rgba(0,0,0,.1);font-family: sans-serif;color: #fff;">GET</span> <span style="font-size: 16px;display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-flex: 0;-ms-flex: 0 3 auto;flex: 0 3 auto;-webkit-box-align: center;-ms-flex-align: center;align-items: center;word-break: break-all;padding: 0 10px;font-family: monospace;font-weight: 600;color: #3b4151;">/cgescms/recursos/infraestructura/{uuidRecurso}</span> <div style="font-size: 13px;-webkit-box-flex: 1;-ms-flex: 1;flex: 1;font-family: sans-serif;color: #3b4151;">Obtener recurso de infraestructura</div> </div> </div> <div style="margin: 0 0 15px;margin-top: 0px;margin-right: 0px;margin-bottom: 15px;margin-left: 0px;border: 1px solid #000;border-radius: 4px;-webkit-box-shadow: 0 0 3px rgba(0,0,0,.19);box-shadow: 0 0 3px rgba(0,0,0,.19);border-color: #fca130;background: rgba(252,161,48,.1);"> <div style="border-color: #fca130;display: flex;-webkit-box-align: center;align-items: center;padding: 5px;"> <span style="background: #fca130;font-size: 14px;font-weight: 700;min-width: 80px;padding: 6px 15px;text-align: center;border-radius: 3px;text-shadow: 0 1px 0 rgba(0,0,0,.1);font-family: sans-serif;color: #fff;">PUT</span> <span style="font-size: 16px;display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-flex: 0;-ms-flex: 0 3 auto;flex: 0 3 auto;-webkit-box-align: center;-ms-flex-align: center;align-items: center;word-break: break-all;padding: 0 10px;font-family: monospace;font-weight: 600;color: #3b4151;">/cgescms/recursos/infraestructura/{uuidRecurso}</span> <div style="font-size: 13px;-webkit-box-flex: 1;-ms-flex: 1;flex: 1;font-family: sans-serif;color: #3b4151;">Modificar recurso de infraestructura</div> </div> </div>

Guía detallada

Se requiere la adaptación para extraer los campos nuevos en la consulta de información y enviarlos (modificados o sin modificar) en la llamada a la creación y modificación.

El campo ubicacionFisica.planta dejará de utilizarse y se sustituirá por la estructura ubicacionFisica.edificio.planta.id

1;-ms-flex: 1;flex: 1;font-family: sans-serif;color: #3b4151;">Obtener recurso de infraestructura</div>
</div>
</div>


Atributos obsoletosAtributos que sustituyen


Bloque de código
themeConfluence
firstline1
"recursos": [{
	"ubicacionFisica": {
		"planta": "string"
	}
}]



Bloque de código
themeConfluence
firstline1
"recursos": [{
        "ubicacionFisica": {
            "edificio": {
                "id": 0,
                "nombre": "string",
                "planta": {
                    "id": 0,
                    "nombre": "string"
                }
            }
        }
    }
]




Creaciones y ediciones de recursos de infraestructura

Expandir
titleInformación adicional...


HTML
<div style="margin: 0 0 15px;margin-top: 0px;margin-right: 0px;margin-bottom: 15px;margin-left: 0px;border: 1px solid #000;border-radius: 4px;-webkit-box-shadow: 0 0 3px rgba(0,0,0,.19);box-shadow: 0 0 3px rgba(0,0,0,.19);border-color: #49cc90;background: rgba(73,204,144,.1);">
<div style="border-color: #49cc90;display: flex;-webkit-box-align: center;align-items: center;padding: 5px;">
<span style="background: #49cc90;font-size: 14px;font-weight: 700;min-width: 80px;padding: 6px 15px;text-align: center;border-radius: 3px;text-shadow: 0 1px 0 rgba(0,0,0,.1);font-family: sans-serif;color: #fff;">POST</span>
<span style="font-size: 16px;display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-flex: 0;-ms-flex: 0 3 auto;flex: 0 3 auto;-webkit-box-align: center;-ms-flex-align: center;align-items: center;word-break: break-all;padding: 0 10px;font-family: monospace;font-weight: 600;color: #3b4151;">/cgescms/recursos/infraestructura</span>
<div style="font-size: 13px;-webkit-box-flex: 1;-ms-flex: 1;flex: 1;font-family: sans-serif;color: #3b4151;">Crear recurso de infraestructura</div>
</div>
</div>
<div style="margin: 0 0 15px;margin-top: 0px;margin-right: 0px;margin-bottom: 15px;margin-left: 0px;border: 1px solid #000;border-radius: 4px;-webkit-box-shadow: 0 0 3px rgba(0,0,0,.19);box-shadow: 0 0 3px rgba(0,0,0,.19);border-color: #fca130;background: rgba(252,161,48,.1);">
<div style="border-color: #fca130;display: flex;-webkit-box-align: center;align-items: center;padding: 5px;">
<span style="background: #fca130;font-size: 14px;font-weight: 700;min-width: 80px;padding: 6px 15px;text-align: center;border-radius: 3px;text-shadow: 0 1px 0 rgba(0,0,0,.1);font-family: sans-serif;color: #fff;">PUT</span>
<span style="font-size: 16px;display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-flex: 0;-ms-flex: 0 3 auto;flex: 0 3 auto;-webkit-box-align: center;-ms-flex-align: center;align-items: center;word-break: break-all;padding: 0 10px;font-family: monospace;font-weight: 600;color: #3b4151;">/cgescms/recursos/infraestructura/{uuidRecurso}</span>
<div style="font-size: 13px;-webkit-box-flex: 1;-ms-flex: 1;flex: 1;font-family: sans-serif;color: #3b4151;">Modificar recurso de infraestructura</div>
</div>
</div>


Atributos obsoletosAtributos que sustituyen


Bloque de código
themeConfluence
firstline1
"recursos": [{
	"ubicacionFisica": {
		"planta": "string"
	}
}]



Bloque de código
themeConfluence
firstline1
"recursos": [{
        "ubicacionFisica": {
            "edificio": {
                "id": 0,
                "planta": {
                    "id": 0
                }
            }
        }
    }
]



Para más información respecto al uso de métodos de la API, ver la definición .


Quedan también obsoletos los siguientes métodos en favor de las nuevas consultas de recursos de infraestructura:


HTML
<div style="margin: 0 0 15px;margin-top: 0px;margin-right: 0px;margin-bottom: 15px;margin-left: 0px;border: 1px solid #000;border-radius: 4px;-webkit-box-shadow: 0 0 3px rgba(0,0,0,.19);box-shadow: 0 0 3px rgba(0,0,0,.19);border-color: #ebebeb;background: rgba(235,235,235,.1);">
<div style="border-color: #ebebeb;display: flex;-webkit-box-align: center;align-items: center;padding: 5px;">
<span style="background: #ebebeb;font-size: 14px;font-weight: 700;min-width: 80px;padding: 6px 15px;text-align: center;border-radius: 3px;text-shadow: 0 1px 0 rgba(0,0,0,.1);font-family: sans-serif;color: #fff;">PUT</span>
<span style="font-size: 16px;display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-flex: 0;-ms-flex: 0 3 auto;flex: 0 3 auto;-webkit-box-align: center;-ms-flex-align: center;align-items: center;word-break: break-all;padding: 0 10px;font-family: monospace;font-weight: 600;color: rgb(59,65,81);text-decoration-line:line-through;">/cges/tablas/recursos/</span>
<div style="font-size: 13px;-webkit-box-flex: 1;-ms-flex: 1;flex: 1;font-family: sans-serif;color: #3b4151;">Listado de recursos</div>
</div>
</div>
<div style="margin: 0 0 15px;margin-top: 0px;margin-right: 0px;margin-bottom: 15px;margin-left: 0px;border: 1px solid #000;border-radius: 4px;-webkit-box-shadow: 0 0 3px
Info

Métodos REST afectados:

Obtener recursos de infraestructura (listado y detalle)

Expandir
titleInformación adicional...
Atributos obsoletosAtributos que sustituyen
Bloque de código
themeConfluence
firstline1
"recursos": [{
	"ubicacionFisica": {
		"planta": "string"
	}
}]
Bloque de código
themeConfluence
firstline1
Respuesta temporal durante el periodo de adaptaciónRespuesta definitiva tras el periodo de adaptación
Bloque de código
themeConfluence
firstline1
{
	"total": 0,
	"solicitudes": [{
			"idSolicitud": "string",
			"fechas": {
				"fechaApertura": "2019-05-28T10:35:32.988Z",
				"fechaUltModificacion": "2019-05-28T10:35:32.988Z",
				"fechaUltAsignacion": "2019-05-28T10:35:32.988Z"
			},
			"usuarioAfectado": {
				"usuarioAfectado": "string",
				"links": [{
						"rel": "string",
						"href": "string"
					}
				]
			},
			"usuarioAsignado": {
				"usuarioAsignado": "string",
				"fechaUltAsignacion": "2019-05-28T10:35:32.988Z",
				"links": [{
						"rel": "string",
						"href": "string"
					}
				]
			},
			"ubicacionSolicitud": {
				"ubicacionSolicitud": "string",
				"links": [{
						"rel": "string",
						"href": "string"
					}
				]
			},
			"recurso": {
				"uuidRecurso": "string",
				"recurso": "string",
				"tipoRecurso": "string",
				"numeroSerie": "string",
				"codigoSAS": "string",
				"codigoAplicacion": "string",
				"links": [{
						"rel": "string",
						"href": "string"
					}
				]
			},
			"descripcion": "string",
			"asunto": "string",
			"estado": "string",
			"impacto": "string",
			"refJira": "string",
			"prioridad": "string",
			"etiquetas": [{
					"id": 0,
					"nombre": "string"
				}
			],
			"catalogoServicio": {
				"uuid": "string",
				"nombre": "string",
				"categoriaServicio": {
					"uuid": "string",
					"nombre": "string"
				}
			},
			"tipificacion": "string",
			"reclamaciones": "string",
			"idProblema": "string"
		}
	]
}

Bloque de código
themeConfluence
firstline1
{
	"total": 0,
	"solicitudes": [{
			"idSolicitud": "string",
			"fechas": {
				"fechaApertura": "2019-05-28T10:35:32.988Z",
				"fechaUltModificacion": "2019-05-28T10:35:32.988Z",
				"fechaUltAsignacion": "2019-05-28T10:35:32.988Z"
			},
			"usuarioAfectado": {
				"usuarioAfectado": "string",
				"links": [{
						"rel": "string",
						"href": "string"
					}
				]
			},
			"usuarioAsignado": {
				"usuarioAsignado": "string",
				"links": [{
						"rel": "string",
						"href": "string"
					}
				]
			},
			"ubicacionSolicitud": {
				"ubicacionSolicitud": "string",
				"links": [{
						"rel": "string",
						"href": "string"
					}
				]
			},
			"recurso": {
				"uuidRecurso": "string",
				"recurso": "string",
				"tipoRecurso": "string",
				"numeroSerie": "string",
				"codigoSAS": "string",
				"codigoAplicacion": "string",
				"links": [{
						"rel": "string",
						"href": "string"
					}
				]
			},
			"descripcion": "string",
			"asunto": "string",
			"estado": "string",
			"impacto": "string",
			"refJira": "string",
			"prioridad": "string",
			"etiquetas": [{
					"id": 0,
					"nombre": "string"
				}
			],
			"catalogoServicio": {
				"uuid": "string",
				"nombre": "string",
				"categoriaServicio": {
					"uuid": "string",
					"nombre": "string"
				}
			},
			"tipificacion": "string",
			"reclamaciones": "string",
			"idProblema": "string"
		}
	]
}

Expandir
titleInformación adicional...
HTML<div style="margin: 0 0 15px;margin-top: 0px;margin-right: 0px;margin-bottom: 15px;margin-left: 0px;border: 1px solid #000;border-radius: 4px;-webkit-box-shadow: 0 0 3px rgba(0,0,0,.19);box-shadow: 0 0 3px rgba(0,0,0,.19);border-color: #61affe;background: rgba(97,175,254,.1);"> <div style="border-color: #61affe;display: flex;-webkit-box-align: center;align-items: center;padding: 5px;"> <span style="background: #61affe;font-size: 14px;font-weight: 700;min-width: 80px;padding: 6px 15px;text-align: center;border-radius: 3px;text-shadow: 0 1px 0
 rgba(0,0,0,.
1
19);
font
box-
family: sans-serif;color: #fff;">GET</span> <span
shadow: 0 0 3px rgba(0,0,0,.19);border-color: #ebebeb;background: rgba(235,235,235,.1);">
<div style="
font
border-
size
color: 
16px
#ebebeb;display: 
-webkit-box;display: -ms-flexbox;display:
flex;-webkit-box-
flex
align: 
0
center;align-
ms-flex
items: 
0 3 auto;flex: 0 3 auto;-webkit-box-align: center;-ms-flex-align: center;align-items: center;word-break: break-all;padding: 0 10px;font-family: monospace;font-weight: 600;color: #3b4151;">/cgescms/recursos/infraestructura/puestostrabajo/{uuidRecurso}</span> <div
center;padding: 5px;">
<span style="background: #ebebeb;font-size: 14px;font-weight: 700;min-width: 80px;padding: 6px 15px;text-align: center;border-radius: 3px;text-shadow: 0 1px 0 rgba(0,0,0,.1);font-family: sans-serif;color: #fff;">PUT</span>
<span style="font-size: 
13px
16px;display: -webkit-box
-flex
;display: 
1;
-ms-
flex
flexbox;display: 
1;flex
flex;-webkit-box-flex: 
1
0;
font
-
family: sans-serif;color: #3b4151;">Obtener información extendida de un recurso de puesto de trabajo</div> </div> </div>

Obtener los nuevos campos en la consulta: subred y fechas.fechaBios

Actualiza información de un puesto de trabajo

Expandir
titleInformación adicional...
HTML
<div style="margin: 0 0 15px;margin-top: 0px;margin-right: 0px;margin-bottom: 15px;margin-left: 0px;border: 1px solid #000;border-radius: 4px;-webkit-box-shadow: 0 0 3px rgba(0,0,0,.19);box-shadow: 0 0 3px rgba(0,0,0,.19);border-color: #fca130;background: rgba(252,161,48,.1);">
<div style="border-color: #fca130;display: flex;-webkit-box-align: center;align-items: center;padding: 5px;">
<span style="background: #fca130;font-size: 14px;font-weight: 700;min-width: 80px;padding: 6px 15px;text-align: center;border-radius: 3px;text-shadow: 0 1px 0 rgba(0,0,0,.1);font-family: sans-serif;color: #fff;">PUT</span>
<span style="font-size: 16px;display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-flex: 0;-ms-flex: 0 3 auto;flex: 0 3 auto;-webkit-box-align: center;-ms-flex-align: center;align-items: center;word-break: break-all;padding: 0 10px;font-family: monospace;font-weight: 600;color: #3b4151;">/cgescms/recursos/infraestructura/puestostrabajo/{uuidRecurso}</span>
<div style="font-size: 13px;-webkit-box-flex: 1;-ms-flex: 1;flex: 1;font-family: sans-serif;color: #3b4151;">Actualiza información de un puesto de trabajo</div>
</div>
</div>
Durante el periodo de adaptaciónTras el periodo de adaptación

Se permitirá el envío de información a través de la v1.0 y de la v2.0 simultáneamente. 

La v1.0 no modificará los atributos afectados, mientras que la v2.0 sí.

Se descontinuará la funcionalidad de la v1.0 y sólo quedará en funcionamiento la v2.0.

Para más información respecto al uso de métodos de la API, ver la definición.
ms-flex: 0 3 auto;flex: 0 3 auto;-webkit-box-align: center;-ms-flex-align: center;align-items: center;word-break: break-all;padding: 0 10px;font-family: monospace;font-weight: 600;color: rgb(59,65,81);text-decoration-line:line-through;">/cges/tablas/recursos/{uuidRecurso}</span>
<div style="font-size: 13px;-webkit-box-flex: 1;-ms-flex: 1;flex: 1;font-family: sans-serif;color: #3b4151;">Detalle de recurso</div>
</div>
</div>

Artículos Relacionados

Jira
serverJIRA
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverIdaea3f5ce-c977-3088-89fe-07be16229731
keySERVCGES-927

...