GET api/Gmao/DameDatosOperario?OperarioId={OperarioId}
Devuelve los datos de un Operario o trabajador de Elecnor. Aunque se llama Operario se refiere a cualquier persona que trabaja en Elecnor. Hay que pasar por Header el parámetro TokenAuth.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
OperarioId |
Es un GUID del Operario del que queremos obtener los datos |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
Si todo va bien, devuelve los datos del vehículo. Si hay un fallo con la autorización (TokenAuth) devuelve una respuesta de Error 401. Si no lo encuentra devuelve una respuesta de Error 404
OperarioApiName | Description | Type | Additional information |
---|---|---|---|
OperarioId | globally unique identifier |
None. |
|
codCentroTrabajo | string |
String length: inclusive between 0 and 3 |
|
nombre | string |
String length: inclusive between 0 and 50 |
|
apellidos | string |
String length: inclusive between 0 and 50 |
|
string |
String length: inclusive between 0 and 50 |
||
codTipoUsuario | string |
String length: inclusive between 0 and 20 |
|
OperarioIdJefeObra | globally unique identifier |
None. |
|
fechaBaja | date |
None. |
|
nif | string |
String length: inclusive between 0 and 10 |
Response Formats
application/json, text/json
{ "OperarioId": "2e0176f5-5c74-44da-85f4-26e0a573a534", "codCentroTrabajo": "sample string 2", "nombre": "sample string 3", "apellidos": "sample string 4", "email": "sample string 5", "codTipoUsuario": "sample string 6", "OperarioIdJefeObra": "1a01ce96-bc78-4686-b1a4-99a9c3d6cc50", "fechaBaja": "2025-04-25T15:59:22.4810157Z", "nif": "sample string 9" }
text/html
{"OperarioId":"2e0176f5-5c74-44da-85f4-26e0a573a534","codCentroTrabajo":"sample string 2","nombre":"sample string 3","apellidos":"sample string 4","email":"sample string 5","codTipoUsuario":"sample string 6","OperarioIdJefeObra":"1a01ce96-bc78-4686-b1a4-99a9c3d6cc50","fechaBaja":"2025-04-25T15:59:22.4810157Z","nif":"sample string 9"}
application/xml, text/xml
<OperarioApi xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ElecniaLogicaC"> <OperarioId>2e0176f5-5c74-44da-85f4-26e0a573a534</OperarioId> <OperarioIdJefeObra>1a01ce96-bc78-4686-b1a4-99a9c3d6cc50</OperarioIdJefeObra> <apellidos>sample string 4</apellidos> <codCentroTrabajo>sample string 2</codCentroTrabajo> <codTipoUsuario>sample string 6</codTipoUsuario> <email>sample string 5</email> <fechaBaja>2025-04-25T12:59:22.4810157-03:00</fechaBaja> <nif>sample string 9</nif> <nombre>sample string 3</nombre> </OperarioApi>