Este endpoint obtiene un equipo específico de usuarios.
HTTP Request
GET https://admin.cmmshere.com/api/v1/usersTeams/<ID>
Parámetros de la URL
Parámetro | Descripción |
---|---|
ID | El ID del equipo de usuarios del cual se obtendrá información |
Ejemplo de petición
curl --location 'https://admin.cmmshere.com/api/v1/usersTeams/1' \
--header 'Authorization: Bearer 804|fCkDcz43egLAubMzPinRCIVUIjPUsGkvbVJ864IP' \
--header 'Cookie: XSRF-TOKEN=eyJpdiI6InRXVlVUWFhUalJ6bVBneWx2Ukowbmc9PSIsInZhbHVlIjoiUGpxM0U4THl0L3VHR0RBU2ViKzFZUjhmRFFnT3NlYjBsVzRWVXFZU3dXOURiY3NKOWZtKzVHUUZLczhuNVV2Zklkcks1eFRoMDdWTnd1WmVMUTZ6dUZqdGxTUUNRc0g5WjM4d2tvVTk4amNjTWtkTmV2NmFEb0lVeGU3cm9OTVgiLCJtYWMiOiI2ZGY1OTViNDBiODgyZTAzODRhYTBhMzllOGQ2YzIzZTg1M2M1N2Y1NDMwYmIzNzliZmQ0N2Q0Nzg1Y2E2NWYwIn0%3D; laravel_session=eyJpdiI6Ijh3QXNBU1ZpSzJkRUEreVRzdGhiL2c9PSIsInZhbHVlIjoiSzBxZnMxbm9FNFUxT2daSmNBQi84Yk4wSytDbUtoTVZmMEF2VTFCZ3EzYUllRnIyQ1VoVEg2UlI1ZU5adG1uNjFCN001b0pwOUFJcWpwZTRCNE9kYnFnNEpSRjl6VWhVYlBTT2ZlRGFUaVFlZlNsbUtkMk0yaXVjMWJ2MFlmOTIiLCJtYWMiOiI5M2RmMTEwOTk2ZGRiY2QxMmI1MTZmNWQ5ZDE0MDMxZjQwYzI5MzFhM2QwYzc3OGJiMzVjNzdhNzdkNTE3ZjM3In0%3D'
La petición de arriba devuelve un JSON estructurado de la siguiente manera
{
"success": true,
"code": 200,
"result": {
"id": 1,
"user_id": 30,
"cod": "TE000001",
"title": "Instalación",
"description": "trabajo de instalación",
"created_at": "2021-07-20T20:38:50.000000Z",
"usuarios": [
{
"id": 35,
"username": "Cecilia.Cruickshank",
"name": "Cecilia",
"lastName": "Cruickshank Price",
"status": 1,
"position": "Técnico",
"birthDate": "1995-08-13",
"address": null,
"phone": "+1.520.767.4850",
"cellphone": "+14426901507",
"docNumber": "9904751",
"created_at": "2021-07-07T16:08:34.000000Z",
"pivot": {
"teams_id": 1,
"user_id": 35,
"responsable": "1"
}
},
{
"id": 34,
"username": "Adrienne.Larson",
"name": "Adrienne",
"lastName": "Larson Hayes",
"status": 1,
"position": "Técnico",
"birthDate": "1986-12-12",
"address": null,
"phone": "323-623-8882",
"cellphone": "305.548.1503",
"docNumber": "6750343",
"created_at": "2021-07-07T16:06:29.000000Z",
"pivot": {
"teams_id": 1,
"user_id": 34,
"responsable": "0"
}
}
]
}
}