Roteirização e Monitoramento (tmsentregas)

motoristas

288 views 07/11/2018 18/03/2021 integrador 0

2.0info: 1.12.5 motoristas description: Serviço de motoristas RMS x-senior-domain: tmsentregas x-senior-domain-path: tmsentregas x-senior-service-path: motoristas contact: name: Senior X Platform url: http://dev.senior.com.br email: seniorx-dev@senior.com.brhost: platform.senior.com.br /t/senior.com.br/bridge/1.0/rest/tmsentregassecurityDefinitions: APIKeyHeader: type: apiKey in: header name: Authorizationsecurity: – APIKeyHeader: [] – application/json – application/jsonpaths: /motoristas/queries/buscaMotoristas: post: description: Pesquisa de Motoristas tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object properties: nrCNPJFilial: type: string description: Código identificador da empresa codigo: type: integer format: int64 description: Código identificador. Caso informado valor menor ou igual a zero, busca todos. dsNome: type: string description: Nome do motorista nrCpf: type: string description: Número CPF do motorista listCod: type: array items: type: integer format: int64 description: Lista de códigos cdUsuario: type: string description: id do usuário na plataforma nrPlaca: type: string description: Verifica qual é o motorista da placa informada. responses: 200: description: Ok schema: type: object required: – listaResultado – ok – dsErro properties: listaResultado: type: array items: type: object allOf: – #/definitions/MCEMOTRec minimum: 1 description: ok: type: boolean description: dsErro: type: string description: default: description: Error response schema: #/definitions/genericError get: description: Pesquisa de Motoristas tags: – Queries x-senior-visibility: PRIVATE parameters: – name: nrCNPJFilial description: Código identificador da empresa in: query type: string – name: codigo description: Código identificador. Caso informado valor menor ou igual a zero, busca todos. in: query type: integer format: int64 – name: dsNome description: Nome do motorista in: query type: string – name: nrCpf description: Número CPF do motorista in: query type: string – name: listCod description: Lista de códigos in: query type: array items: type: integer format: int64 – name: cdUsuario description: id do usuário na plataforma in: query type: string – name: nrPlaca description: Verifica qual é o motorista da placa informada. in: query type: string responses: 200: description: Ok schema: type: object required: – listaResultado – ok – dsErro properties: listaResultado: type: array items: type: object allOf: – #/definitions/MCEMOTRec minimum: 1 description: ok: type: boolean description: dsErro: type: string description: default: description: Error response schema: #/definitions/genericError /motoristas/queries/obtemMotorista: post: description: tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – cdUsuario properties: cdUsuario: type: string description: responses: 200: description: Ok schema: type: object required: – ok – dsErro – motorista properties: ok: type: boolean description: dsErro: type: string description: motorista: type: object allOf: – #/definitions/MCEMOTRec description: default: description: Error response schema: #/definitions/genericError get: description: tags: – Queries x-senior-visibility: PRIVATE parameters: – name: cdUsuario description: in: query required: true type: string responses: 200: description: Ok schema: type: object required: – ok – dsErro – motorista properties: ok: type: boolean description: dsErro: type: string description: motorista: type: object allOf: – #/definitions/MCEMOTRec description: default: description: Error response schema: #/definitions/genericError /motoristas/queries/buscaUsuariosSugeridosMotorista: post: description: tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object properties: dsNome: type: string description: Nome do motorista, utilizado para gerar as sugestões. nrCpf: type: string description: CPF do motorista. dsUsuario: type: string description: Valor informado manualmente pelo usuário. responses: 200: description: Ok schema: type: object required: – ok – dsErro – senhaUsuario properties: ok: type: boolean description: dsErro: type: string description: senhaUsuario: type: string description: listaResultado: type: array items: type: object allOf: – #/definitions/usuarioSugeridoMotoristaRec description: default: description: Error response schema: #/definitions/genericError get: description: tags: – Queries x-senior-visibility: PRIVATE parameters: – name: dsNome description: Nome do motorista, utilizado para gerar as sugestões. in: query type: string – name: nrCpf description: CPF do motorista. in: query type: string – name: dsUsuario description: Valor informado manualmente pelo usuário. in: query type: string responses: 200: description: Ok schema: type: object required: – ok – dsErro – senhaUsuario properties: ok: type: boolean description: dsErro: type: string description: senhaUsuario: type: string description: listaResultado: type: array items: type: object allOf: – #/definitions/usuarioSugeridoMotoristaRec description: default: description: Error response schema: #/definitions/genericError /motoristas/queries/getMetadata: post: description: Default getMetadata query. Every service must handle this command and return metadata in the format requested. tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object properties: metadataFormat: type: string description: responses: 200: description: Ok schema: type: object required: – metadata properties: metadata: type: string description: default: description: Error response schema: #/definitions/genericError get: description: Default getMetadata query. Every service must handle this command and return metadata in the format requested. tags: – Queries x-senior-visibility: PRIVATE parameters: – name: metadataFormat description: in: query type: string responses: 200: description: Ok schema: type: object required: – metadata properties: metadata: type: string description: default: description: Error response schema: #/definitions/genericError /motoristas/queries/getDependencies: post: description: Returns a list with all dependencies from this service, along with their respective versions tags: – Queries x-senior-visibility: PUBLIC responses: 200: description: Ok schema: type: object required: – dependencies properties: dependencies: type: array items: type: object allOf: – #/definitions/dependency minimum: 1 description: List with this service dependencies default: description: Error response schema: #/definitions/genericError get: description: Returns a list with all dependencies from this service, along with their respective versions tags: – Queries x-senior-visibility: PUBLIC responses: 200: description: Ok schema: type: object required: – dependencies properties: dependencies: type: array items: type: object allOf: – #/definitions/dependency minimum: 1 description: List with this service dependencies default: description: Error response schema: #/definitions/genericError /motoristas/actions/insereMotorista: post: description: Cadastro de Motorista tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – nrCNPJFilial – dsNome – nrCnh – nrCpf properties: nrCNPJFilial: type: string description: Código identificador da empresa dsNome: type: string description: Nome do motorista nrCnh: type: string description: Número CNH do motorista nrCpf: type: string description: Número CPF do motorista nrRg: type: string description: Número RG do motorista cdUsuario: type: string description: Usuário correspodente ao motorista cdIdentDisp: type: integer format: int64 description: nrTelefone: type: string description: dsNomeUsuario: type: string description: Nome do usuário na plataforma dsSenhaUsuario: type: string description: Senha do usuário na plataforma responses: 200: description: Ok schema: type: object required: – ok – cdMotorista – dsErro properties: ok: type: boolean description: Bolean indicando se a operação teve sucesso cdMotorista: type: integer format: int64 description: dsErro: type: string description: default: description: Error response schema: #/definitions/genericError /motoristas/actions/alteraMotorista: post: description: Edição de Motorista tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – nrCNPJFilial – cdMotorista – dsNome – nrCnh – nrCpf properties: nrCNPJFilial: type: string description: Código identificador da empresa cdMotorista: type: integer format: int64 description: Código identificador dsNome: type: string description: Nome do motorista nrCnh: type: string description: Número CNH do motorista nrCpf: type: string description: Número CPF do motorista nrRg: type: string description: Número RG do motorista cdUsuario: type: string description: Usuário correspodente ao motorista cdIdentDisp: type: integer format: int64 description: nrTelefone: type: string description: dsNomeUsuario: type: string description: Nome do usuário na plataforma responses: 200: description: Ok schema: type: object required: – ok – dsErro properties: ok: type: boolean description: Bolean indicando se a operação teve sucesso dsErro: type: string description: default: description: Error response schema: #/definitions/genericError /motoristas/actions/deletaMotorista: post: description: Exclusão de Motorista tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – codigo properties: codigo: type: integer format: int64 description: Código identificador responses: 200: description: Ok schema: type: object required: – ok – dsErro properties: ok: type: boolean description: Bolean indicando se a operação teve sucesso dsErro: type: string description: default: description: Error response schema: #/definitions/genericError definitions: statusUsuarioSugeridoMotorista: description: type: string enum: – NOVO – SUGERIDO – DISPONIVEL_PARA_VINCULAR – VINCULADO_COM_ESTE_MOTORISTA – VINCULADO_COM_OUTRO_MOTORISTA userNotificationKind: description: User notification kind. type: string enum: – Operational – Management – News userNotificationPriority: description: User notification priority. type: string enum: – Error – Alert – None eventEmailFormat: description: Format of the email type: string enum: – HTML – PLAIN_TEXT MCEMOTRec: description: Representa as informações do motorista type: object properties: nrCNPJFilial: type: string description: Filial do motorista cdMotorista: type: integer format: int64 description: Código do mototista dsNome: type: string description: Nome do motorista nrCnh: type: string description: CNH do motorista nrCpf: type: string description: CPF do motorista nrRg: type: string description: RG do motorista cdUsuario: type: string description: ID do usuário da plataforma dispositivo: type: object allOf: – #/definitions/recDispositivo description: Dispositivo correspondente usuarioPlataforma: type: string description: Nome do usuário da plataforma recDispositivo: description: type: object required: – cdIdentDisp properties: cdIdentDisp: type: integer format: int64 description: nrTelefone: type: string description: usuarioSugeridoMotoristaRec: description: type: object required: – nome – idUsuario – status properties: nome: type: string description: Nome sugerido idUsuario: type: string description: Id do usuário na plataforma status: type: string allOf: – #/definitions/statusUsuarioSugeridoMotorista description: Status da sugestão notifyUserEventPayload: description: Represents a regular user event notification payload discriminator: _discriminator type: object required: – notificationKind – notificationPriority – notificationSubject – notificationContent – sourceDomain – sourceService – destinationUser – _discriminator properties: notificationClass: type: string description: Class of notification notificationOrigin: type: string description: Origin of notification. Free text. Optional. notificationKind: type: string allOf: – #/definitions/userNotificationKind description: Notification kind. notificationPriority: type: string allOf: – #/definitions/userNotificationPriority description: Notification priority. notificationSubject: type: string description: Notification subject. notificationContent: type: string description: Notification content. sourceDomain: type: string description: Domain that generates the notification. sourceService: type: string description: Service that generates the notification. destinationUser: type: string description: Username of the destination user. link: type: string description: Notification link _discriminator: type: string description: emailNotifyUserEventPayload: description: Represents an email notification payload allOf: – #/definitions/notifyUserEventPayload – type: object required: – from properties: from: type: string description: Email sender address sendTo: type: array items: type: string description: Additional recipients to send the email to format: type: string allOf: – #/definitions/eventEmailFormat description: Email format pushNotifyUserEventPayload: description: Represents a push notification payload allOf: – #/definitions/notifyUserEventPayload – type: object required: – applicationId properties: applicationId: type: string description: Apple/Google application id blobReference: description: Default blob reference type. Every service defines its own. type: object required: – targetObjectId properties: domainName: type: string description: The domain the blob belongs to. serviceName: type: string description: The service the blob belongs to. targetObjectId: type: string description: The basic id of the blob. targetCopyId: type: string description: The id of the blob copy. basicErrorPayload: description: Default error payload type. Every service defines its own. type: object properties: message: type: string description: The user-facing error message, if any. errorCode: type: string description: The program-accessible (and service-specific) error code. dependency: description: Represents a service dependency type: object required: – domain – service – version properties: domain: type: string description: Domain of the dependency service service: type: string description: Name of the dependency service type: string description: Version of the dependency service genericError: properties: message: type: string description: Messaging describing the error. reason: type: string description: A symbolic code identifying the category of the reason of the error. enum: – BAD_REQUEST – UNAUTHORIZED – PAYMENT_REQUIRED – FORBIDDEN – OBJECT_NOT_FOUND – REQUEST_TIMEOUT – GONE – UNPROCESSABLE – INTERNAL_ERROR – NOT_IMPLEMENTED – SERVICE_UNAVAILABLE – INSUFFICIENT_STORAGE

Este artigo foi útil para você?

Leave A Comment