Detalles de la petición:
-
URI: api/v8.6/ci/{id}?isGuId={isGuId}
-
Tipo: GET
-
Encabezados requeridos:
- Content-Type: application/json
- Authorization: TOKEN
La estructura URI de la petición se implementa de la siguiente forma:
- Si es por CI: api/v8.6/ci/IdCI?isGuId=False
- Si es por GuID: api/v8.6/ci/GuID?isGuId=True
Parámetros:
Nombre | Tipo de dato | Obligatorio | Descripción |
---|---|---|---|
Id | Texto | Si | Id del CI o GuID que se va a consultar |
IsGuId | Booleano | Si | En caso que el Id que se envíe sea GuId el valor será “true”, si corresponde al Id de un CI entonces será “false” |
Respuesta:
Como respuesta retornara un objeto json, con la siguiente información:
{
"AcceptDate": null,
"AdditionalField": [
{
"Alias": "ADD_STR_1",
"Caption": "Prueba característica en 80",
"Id": 92,
"IdLookField": 0,
"Mandatory": false,
"Order": 0,
"Type": 1,
"Value": "Caracteristica en 80",
"ValueLookField": null,
"Visible": false
},
{
"Alias": "ADD_STR_2",
"Caption": "Home",
"Id": 213,
"IdLookField": 0,
"Mandatory": false,
"Order": 0,
"Type": 1,
"Value": "prueba additional home",
"ValueLookField": null,
"Visible": false
},
{
"Alias": "ADD_STR_3",
"Caption": "Aranda",
"Id": 217,
"IdLookField": 0,
"Mandatory": false,
"Order": 0,
"Type": 6,
"Value": null,
"ValueLookField": null,
"Visible": false
},
],
"Address": null,
"ApplicationName": null,
"AssetTag": null,
"AuthorId": 2017,
"BackgroundCurrentStatus": "255.255.255",
"BarCode": null,
"Brand": "Nueva marca prueba 2",
"BrandId": "71",
"Building": null,
"BuildingId": null,
"CategoryId": 9,
"CheckOutDate": null,
"CheckinDate": null,
"CiProfile": null,
"CiProfileId": null,
"CiTotal": 0,
"City": "Panama Prueba crear 6",
"CityId": null,
"Company": "Disc Guadalajara",
"CompanyId": null,
"CostCenter": null,
"CostCenterId": "5495",
"Country": "Mexico",
"CountryId": null,
"CurrentStatus": "Estado Prueba 2",
"CurrentStatusId": 718,
"Department": "Development",
"DepartmentId": null,
"DepartmentNumber": null,
"DepartmentNumberId": null,
"DepreciationMethod": null,
"Description": "Prueba catalogo crear centro costo id",
"Floor": null,
"FloorId": null,
"ForegroundCurrentStatus": "0.0.0",
"Foreign": false,
"GroupId": -1,
"GuId": "Guid_154_iyuhd_03052016_1652",
"Id": 5238,
"ImageFileName": null,
"Impact": null,
"LicenseNumber": null,
"Manufacturer": "Prueba Manufacturer",
"ManufacturerId": 929,
"MapFilename": null,
"Model": "GXP1200",
"ModelId": "12",
"Name": "AddCi_03052016_1652",
"Price": null,
"ProfileId": 0,
"ProgrammedDate": null,
"ProgrammedStatus": "Estado Programado Prueba",
"ProgrammedStatusId": 717,
"ProjectId": null,
"Provider": "Company Prueba 2",
"ProviderId": 929,
"RFID": null,
"ReponsibleDate": null,
"ResidualValue": null,
"ResponsibleId": null,
"Serial": null,
"Site": null,
"SiteId": null,
"Size": null,
"StateId": 718,
"Type": null,
"Unit": null,
"UnitId": 1,
"UsefulLife": null,
"UserIdModifier": null
}
Mensajes de error:
Código | Estado HTTP | Mensaje de error |
---|---|---|
400 | BadRequest | InvalidCiId |
404 | NotFound | NotFoundCiId |
500 | InternalServerError | FailureGetDetailCi |