Versiones comparadas

Clave

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

...

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.


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: #61affe#ebebeb;background: rgba(97235,175235,254235,.1);">
<div style="border-color: #61affe#ebebeb;display: flex;-webkit-box-align: center;align-items: center;padding: 5px;">
<span style="background: #61affe#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;">GET<>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: #3b4151rgb(59,65,81);text-decoration-line:line-through;">/cges/cgescmstablas/recursos/infraestructura<</span>
<div style="font-size: 13px;-webkit-box-flex: 1;-ms-flex: 1;flex: 1;font-family: sans-serif;color: #3b4151;">Listado de recursos de infraestructura<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 rgba(0,0,0,.19);box-shadow: 0 0 3px rgba(0,0,0,.19);border-color: #49cc90#ebebeb;background: rgba(73235,204235,144235,.1);">
<div style="border-color: #49cc90#ebebeb;display: flex;-webkit-box-align: center;align-items: center;padding: 5px;">
<span style="background: #49cc90#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;">POST<>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: #3b4151rgb(59,65,81);text-decoration-line:line-through;">/cges/cgescmstablas/recursos/infraestructura<{uuidRecurso}</span>
<div style="font-size: 13px;-webkit-box-flex: 1;-ms-flex: 1;flex: 1;font-family: sans-serif;color: #3b4151;">Crear>Detalle recurso de infraestructura<recurso</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

Info

Métodos REST afectados:

Obtener recursos de infraestructura (listado y detalle) y consulta de tabla maestra de recursos.

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);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}<
infraestructura</span>
<div style="font-size: 13px;-webkit-box-flex: 1;-ms-flex: 1;flex: 1;font-family: sans-serif;color: #3b4151;"
>Obtener
>Listado de 
recurso
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;-webkit-box-shadow: 0 0 3px rgba(0,0,0,.19);box-shadow: 0 0 3px rgba(0,0,0,.19);border-color: 
#fca130
#61affe;background: rgba(
252
97,
161
175,
48
254,.1);">
<div style="border-color: 
#fca130
#61affe;display: flex;-webkit-box-align: center;align-items: center;padding: 5px;">
<span style="background: 
#fca130
#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;"
>PUT<
>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;"
>Modificar
>Obtener 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

Info

Métodos REST afectados:

Obtener recursos de infraestructura (listado y detalle) y consulta de tabla maestra de recursos.
Expandir
titleInformación adicional...


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 .

...