Objetivo

Determinar os serviços que serão consumidos pelo aplicativo Minhas Ordens de Serviço

GET / rest / meutecnico / getAttendant


Request


{
    "attendant": {
        "codtec": "D0MG0020000036",
        "nomtec": "LUIZ GABRIEL GOMES DE JESUS   "
    }
}

Exemplo: ...rest/meutecnico/getAttendant?cAttendant=gabriel&cPswd=12


GET / rest / meutecnico/ getSchedule


Request


{
    "schedule": [
        {
            "horaIni": "08:00",
            "horaFim": "10:00",
            "numOS": "000018",
            "filialOS": "D MG 01",
            "cliente": "RS SERVIÇOS",
            "endereco": {
                "logradouro": "R. CATÃO, 732",
                "bairro": "VILA ROMANA",
                "cidade": "SAO PAULO",
                "uf": "SP",
                "cep": "05049000",
                "contato": "Diego",
                "email": "[email protected]",
                "tel": "011 - 3803-8853"
            },
            "statusOs": "Encerrada",
            "enviado": "true",
            "tipoOs": "TROCA",
            "itensOs": [
                {
                    "numeroItem": "01",
                    "produto": "FLD0101",
                    "ID": "5G019088HNB55B4DF",
                    "atendido": "true",
                    "dataAgend": "02/09/2020",
                    "solicitaPeca": "false",
                    "PecaBaixada": "false",
                    "apontamento": {
                        "produtos": [],
                        "fotos": [],
                        "requisicao": "",
                        "laudo": ""
                    }
                }
            ],
            "dtIniVisita": "20201006",
            "hrIniVisita": "16:57",
            "dtIniChegada": "20201006",
            "hrIniChegada": "16:57",
            "compartilhado": "false"
        },
        {
            "horaIni": "10:05",
            "horaFim": "12:00",
            "numOS": "000019",
            "filialOS": "D MG 01",
            "cliente": "EMPÓRIO ROSA - ZONA CEREALISTA",
            "endereco": {
                "logradouro": "R. SANTA ROSA, 68",
                "bairro": "BRAS",
                "cidade": "SAO PAULO",
                "uf": "SP",
                "cep": "03007000",
                "contato": "Rosa",
                "email": "[email protected]",
                "tel": "011 - 3315-0662"
            },
            "statusOs": "Em Atendimento",
            "enviado": "true",
            "tipoOs": "SEM SINAL",
            "itensOs": [
                {
                    "numeroItem": "01",
                    "produto": "FLD0102",
                    "ID": "OIK776665592313213GB",
                    "atendido": "false",
                    "dataAgend": "02/09/2020",
                    "solicitaPeca": "false",
                    "PecaBaixada": "false",
                    "apontamento": {
                        "produtos": [],
                        "fotos": [],
                        "requisicao": "",
                        "laudo": ""
                    }
                }
            ],
            "dtIniVisita": "20201007",
            "hrIniVisita": "23:00",
            "dtIniChegada": "20201014",
            "hrIniChegada": "11:05",
            "compartilhado": "false"
        },
        {
            "horaIni": "14:00",
            "horaFim": "15:00",
            "numOS": "000020",
            "filialOS": "D MG 01",
            "cliente": "EMPRESA CISPER",
            "endereco": {
                "logradouro": "AV. OLAVO EGÍDIO DE SOUZA ARANHA, 2270",
                "bairro": "ERMELINO MATARAZZO",
                "cidade": "SAO PAULO",
                "uf": "SP",
                "cep": "03822900",
                "contato": "Olavo",
                "email": "[email protected]",
                "tel": "011 - 2542-8000"
            },
            "statusOs": "Em Transito",
            "enviado": "true",
            "tipoOs": "TROCA",
            "itensOs": [
                {
                    "numeroItem": "01",
                    "produto": "FLD0101",
                    "ID": "JHNN6655232GFVA312",
                    "atendido": "false",
                    "dataAgend": "02/09/2020",
                    "solicitaPeca": "false",
                    "PecaBaixada": "false",
                    "apontamento": {
                        "produtos": [],
                        "fotos": [],
                        "requisicao": "",
                        "laudo": ""
                    }
                }
            ],
            "dtIniVisita": "20201023",
            "hrIniVisita": "20:16",
            "dtIniChegada": "",
            "hrIniChegada": "",
            "compartilhado": "false"
        },
        {
            "horaIni": "15:15",
            "horaFim": "17:00",
            "numOS": "000021",
            "filialOS": "D MG 01",
            "cliente": "HOSPITAL SANTA MARCELINA",
            "endereco": {
                "logradouro": "R. SANTA MARCELINA, 177",
                "bairro": "VILA CARMOSINA",
                "cidade": "SAO PAULO",
                "uf": "SP",
                "cep": "08270070",
                "contato": "Marcelo",
                "email": "[email protected]",
                "tel": "011 - 2070-6000"
            },
            "statusOs": "Encerrada",
            "enviado": "true",
            "tipoOs": "ELEVADOR TRAVADO",
            "itensOs": [
                {
                    "numeroItem": "01",
                    "produto": "FLD0103",
                    "ID": "66YYHHBDS3423423R",
                    "atendido": "true",
                    "dataAgend": "02/09/2020",
                    "solicitaPeca": "false",
                    "PecaBaixada": "false",
                    "apontamento": {
                        "produtos": [],
                        "fotos": [],
                        "requisicao": "",
                        "laudo": ""
                    }
                }
            ],
            "dtIniVisita": "20201103",
            "hrIniVisita": "11:29",
            "dtIniChegada": "20201103",
            "hrIniChegada": "11:30",
            "compartilhado": "false"
        }
    ],
    "count": 4
}

Exemplo: ...rest/meutecnico/getSchedule?cAttendant=D0MG0020000036&cDate=20200902


GET / rest / checkings / getAppointments

Response


{
    "appointments": [
        {
            "data": "20180420",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "hrini": "08:00",
                    "hrfim": "12:00"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "hrini": "13:12",
                    "hrfim": "18:00"
                }
            ]
        },
        {
            "data": "20180423",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "hrini": "08:00",
                    "hrfim": "12:00"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "hrini": "13:12",
                    "hrfim": "18:00"
                }
            ]
        },
        {
            "data": "20180424",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "hrini": "08:00",
                    "hrfim": "12:00"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "hrini": "13:12",
                    "hrfim": "18:00"
                }
            ]
        },
        {
            "data": "20180425",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "hrini": "08:00",
                    "hrfim": "12:00"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "hrini": "13:12",
                    "hrfim": "18:00"
                }
            ]
        },
        {
            "data": "20180426",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "hrini": "08:00",
                    "hrfim": "12:00"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "hrini": "13:12",
                    "hrfim": "18:00"
                }
            ]
        }
    ],
    "count": 10
}

Exemplo: ... rest/CHECKINGS/getAppointments?cAttendant=matheus&cBeginDate=2018042&cEndDate=20180426


GET / rest / checkings / getAppointmentsbyScale

Response


{
    "appointments": [
        {
            "data": "20180426",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1",
                    "executed": "2"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "12:00",
                    "inout": "2",
                    "executed": "2"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "13:12",
                    "inout": "1",
                    "executed": "2"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "18:00",
                    "inout": "2",
                    "executed": "2"
                }
            ]
        },
        {
            "data": "20180425",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1",
                    "executed": "2"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "12:00",
                    "inout": "2",
                    "executed": "2"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "13:12",
                    "inout": "1",
                    "executed": "2"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "18:00",
                    "inout": "2",
                    "executed": "2"
                }
            ]
        },
        {
            "data": "20180424",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1",
                    "executed": "2"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "12:00",
                    "inout": "2",
                    "executed": "2"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "13:12",
                    "inout": "1",
                    "executed": "2"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "18:00",
                    "inout": "2",
                    "executed": "2"
                }
            ]
        },
        {
            "data": "20180423",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1",
                    "executed": "2"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "12:00",
                    "inout": "2",
                    "executed": "2"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "13:12",
                    "inout": "1",
                    "executed": "2"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "18:00",
                    "inout": "2",
                    "executed": "2"
                }
            ]
        },
        {
            "data": "20180420",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1",
                    "executed": "2"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "12:00",
                    "inout": "2",
                    "executed": "2"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "13:12",
                    "inout": "1",
                    "executed": "2"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "18:00",
                    "inout": "2",
                    "executed": "2"
                }
            ]
        }
    ],
    "count": 20
}

Exemplo: ... /rest/CHECKINGS/getAppointmentsByScale?cAttendant=matheus&cBeginDate=2018042&cEndDate=20180426



GET / rest / checkings / getStationsbyDay

Response


{
    "stations": [
        {
            "id": "00000040",
            "requiredPhoto": "1",
            "station": "TOTVS MATRIZ"
        }
    ],
    "count": 1
}

Exemplo: .../rest/CHECKINGS/getStationsByDay?cAttendant=matheus&cDate=20180426


GET / rest / checkings / getHistoricCheckIns

Response


{
    "appointments": [
        {
            "data": "20180417",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1"
                }
            ]
        },
        {
            "data": "20180416",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "12:00",
                    "inout": "2"
                }
            ]
        },
        {
            "data": "20180413",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1"
                }
            ]
        },
        {
            "data": "20180411",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1"
                }
            ]
        },
        {
            "data": "20180406",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "12:00",
                    "inout": "2"
                }
            ]
        },
        {
            "data": "20180404",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1"
                }
            ]
        },
        {
            "data": "20180223",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1"
                }
            ]
        },
        {
            "data": "20180219",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "12:00",
                    "inout": "2"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "13:12",
                    "inout": "1"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "18:00",
                    "inout": "2"
                }
            ]
        },
        {
            "data": "20180215",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1"
                }
            ]
        },
        {
            "data": "20180214",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "12:00",
                    "inout": "2"
                }
            ]
        },
        {
            "data": "20180212",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1"
                }
            ]
        },
        {
            "data": "20180206",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1"
                }
            ]
        },
        {
            "data": "20180205",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "12:00",
                    "inout": "2"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "13:12",
                    "inout": "1"
                }
            ]
        },
        {
            "data": "20180124",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1"
                }
            ]
        },
        {
            "data": "20180123",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "12:00",
                    "inout": "2"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "13:12",
                    "inout": "1"
                }
            ]
        },
        {
            "data": "20180122",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "13:12",
                    "inout": "1"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "18:00",
                    "inout": "2"
                }
            ]
        },
        {
            "data": "20180119",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "12:00",
                    "inout": "2"
                }
            ]
        },
        {
            "data": "20180115",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "12:00",
                    "inout": "2"
                }
            ]
        },
        {
            "data": "20180111",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1"
                }
            ]
        },
        {
            "data": "20180105",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "12:00",
                    "inout": "2"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "13:12",
                    "inout": "1"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "18:00",
                    "inout": "2"
                }
            ]
        },
        {
            "data": "20180104",
            "stations": [
                {
                    "station": "POSTO - RUA VERGUEIRO, 2577 - VILA MARIANA",
                    "schedule": "08:00",
                    "inout": "1"
                },
                {
                    "station": "POSTO - RUA VERGUEIRO, 2577 - VILA MARIANA",
                    "schedule": "12:00",
                    "inout": "2"
                },
                {
                    "station": "POSTO - RUA VERGUEIRO, 2577 - VILA MARIANA",
                    "schedule": "13:12",
                    "inout": "1"
                },
                {
                    "station": "POSTO - RUA VERGUEIRO, 2577 - VILA MARIANA",
                    "schedule": "18:00",
                    "inout": "2"
                }
            ]
        },
        {
            "data": "20180103",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "12:00",
                    "inout": "2"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "13:12",
                    "inout": "1"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "18:00",
                    "inout": "2"
                }
            ]
        }
    ],
    "count": 45
}


Exemplo: ... rest/CHECKINGS/getHistoricCheckIns?cAttendant=matheus&cBeginDate=2018042&cEndDate=20180426


GET / rest / checkings / getSchedules

Response


{
    "schedules": [
        {
            "schedule": "08:00",
            "code": "000000005902"
        },
        {
            "schedule": "13:12",
            "code": "000000005903"
        }
    ],
    "count": 2
}

Exemplo: .../rest/CHECKINGS/getSchedules?cAttendant=matheus&cDate=20180426&cIdStation=00000040&cInOut=1


GET / rest / checkings / getCheckin

Response


{
    "checkin": [
        {
            "idschedule": "000000005902",
            "inout": "1",
            "schedule": "08:00"
        }
    ],
    "count": 1
}

Exemplo: ... /rest/CHECKINGS/getCheckIn?cAttendant=matheus&cDate=20180426&cIdStation=00000040


PUT / rest / checkings / putCheckin

Request


{
                "cIdSchedule": "00000040",
                "cInOut": "1",
                "cComments": "Check-in",
                "nLatitude": -23.5094222,
                "nLongitude": -46.6463977,
                "cRealTime": "08:00",
                "oSelfie": {"image": "imagem", "path": "path"},  
                "aImages": [{"image": "imagem", "path": "path"}]
}

Exemplo: ... rest/putCheckIn/