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:

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)

Expandir
titleInformación adicional...


HTML
<div style
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
#61affe;background: rgba(
235
97,
235
175,
235
254,.1);">
<div style="border-color: 
#ebebeb
#61affe;display: flex;-webkit-box-align: center;align-items: center;padding: 5px;">
<span style="background: 
#ebebeb
#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: 
rgb(59,65,81);text-decoration-line:line-through
#3b4151;">/
cges/tablas
cgescms/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<
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: 
#ebebeb
#61affe;background: rgba(
235
97,
235
175,
235
254,.1);">
<div style="border-color: 
#ebebeb
#61affe;display: flex;-webkit-box-align: center;align-items: center;padding: 5px;">
<span style="background: 
#ebebeb
#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: 
rgb(59,65,81);text-decoration-line:line-through;">/cges/tablas/recursos/
#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;"
>Detalle
>Obtener recurso de 
recurso<
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

"recursos": [{ "ubicacionFisica": { "edificio": { "id": 0, "nombre": "string", "planta": { "id": 0,


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
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</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</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,.191);borderfont-colorfamily: #61affesans-serif;backgroundcolor: rgba(97,175,254,.1)#fff;">>POST</span>
<div<span style="borderfont-colorsize: #61affe16px;display: flex;-webkit-box-align;display: -ms-flexbox;display: center;align-itemsflex;-webkit-box-flex: 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>
<span0;-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: 16px13px;display: -webkit-box;display-flex: 1;-ms-flexbox;displayflex: 1;flex: flex1;font-webkit-box-flexfamily: sans-serif;color: 0;-ms-flex: 0 3 auto;flex#3b4151;">Crear recurso de infraestructura</div>
</div>
</div>
<div style="margin: 0 30 auto15px;margin-webkit-box-aligntop: center0px;margin-ms-flex-alignright: center0px;alignmargin-itemsbottom: center15px;wordmargin-breakleft: break-all0px;paddingborder: 1px 0solid 10px#000;fontborder-familyradius: 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>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": {
Atributos obsoletosAtributos que sustituyen
Bloque de código
themeConfluence
firstline1
"recursos": [{
	"ubicacionFisica": {
		"planta": "string"
	}
}]
Bloque de código
themeConfluence
firstline1
            "
nombre
edificio": 
"string"
{
                
} }
"id": 0,
          
}
    
} ]

Creaciones y ediciones de recursos de infraestructura

Expandir
titleInformación adicional...
  "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:

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

...