tms

oficina

12 views 29/07/2019 integrador 0

2.0info: 1.0.19 oficina x-senior-domain: tms x-senior-domain-path: tms x-senior-service-path: oficina 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/tmssecurityDefinitions: APIKeyHeader: type: apiKey in: header name: Authorizationsecurity: – APIKeyHeader: [] – application/json – application/jsonpaths: /oficina/queries/buscaFilial: post: description: tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object properties: cdEmpresa: type: integer format: int64 description: dsEmpresa: type: string description: responses: 200: description: Ok schema: type: object required: – ok – listaFiliais properties: ok: type: boolean description: dsErro: type: string description: listaFiliais: type: array items: type: object allOf: #/definitions/FilialRec minimum: 1 description: default: description: Error response schema: #/definitions/genericError get: description: tags: – Queries x-senior-visibility: PRIVATE parameters: – name: cdEmpresa description: in: query type: integer format: int64 – name: dsEmpresa description: in: query type: string responses: 200: description: Ok schema: type: object required: – ok – listaFiliais properties: ok: type: boolean description: dsErro: type: string description: listaFiliais: type: array items: type: object allOf: #/definitions/FilialRec minimum: 1 description: default: description: Error response schema: #/definitions/genericError /oficina/queries/buscaPendencias: post: description: tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object properties: cdPendencia: type: string description: cdVeiculo: type: integer format: int64 description: dsPendencia: type: string description: qtTempoPrevisto: type: string description: inPrioridade: type: integer format: int64 description: cdEmpresa: type: integer format: int64 description: dsMovimentacao: type: string description: cdSetores: type: string description: responses: 200: description: Ok schema: type: object required: – ok – listaPendencias properties: ok: type: boolean description: dsErro: type: string description: listaPendencias: type: array items: type: object allOf: #/definitions/PendenciaRec minimum: 1 description: default: description: Error response schema: #/definitions/genericError get: description: tags: – Queries x-senior-visibility: PRIVATE parameters: – name: cdPendencia description: in: query type: string – name: cdVeiculo description: in: query type: integer format: int64 – name: dsPendencia description: in: query type: string – name: qtTempoPrevisto description: in: query type: string – name: inPrioridade description: in: query type: integer format: int64 – name: cdEmpresa description: in: query type: integer format: int64 – name: dsMovimentacao description: in: query type: string – name: cdSetores description: in: query type: string responses: 200: description: Ok schema: type: object required: – ok – listaPendencias properties: ok: type: boolean description: dsErro: type: string description: listaPendencias: type: array items: type: object allOf: #/definitions/PendenciaRec minimum: 1 description: default: description: Error response schema: #/definitions/genericError /oficina/queries/buscaRevisoes: post: description: tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object properties: idRevisao: type: integer format: int64 description: cdVeiculo: type: integer format: int64 description: nrPlaca: type: string description: dsRevisao: type: string description: cdEmpresa: type: integer format: int64 description: cdSetores: type: string description: responses: 200: description: Ok schema: type: object required: – ok – listaRevisoes properties: ok: type: boolean description: dsErro: type: string description: listaRevisoes: type: array items: type: object allOf: #/definitions/RevisaoRec minimum: 1 description: default: description: Error response schema: #/definitions/genericError get: description: tags: – Queries x-senior-visibility: PRIVATE parameters: – name: idRevisao description: in: query type: integer format: int64 – name: cdVeiculo description: in: query type: integer format: int64 – name: nrPlaca description: in: query type: string – name: dsRevisao description: in: query type: string – name: cdEmpresa description: in: query type: integer format: int64 – name: cdSetores description: in: query type: string responses: 200: description: Ok schema: type: object required: – ok – listaRevisoes properties: ok: type: boolean description: dsErro: type: string description: listaRevisoes: type: array items: type: object allOf: #/definitions/RevisaoRec minimum: 1 description: default: description: Error response schema: #/definitions/genericError /oficina/queries/buscaManutencoes: post: description: tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object properties: cdManutencao: type: string description: cdEmpresa: type: integer format: int64 description: dsManutencao: type: string description: cdVeiculo: type: integer format: int64 description: nrPlaca: type: string description: cdSetores: type: string description: responses: 200: description: Ok schema: type: object required: – ok – listaManutencoes properties: ok: type: boolean description: dsErro: type: string description: listaManutencoes: type: array items: type: object allOf: #/definitions/ManutencaoRec minimum: 1 description: default: description: Error response schema: #/definitions/genericError get: description: tags: – Queries x-senior-visibility: PRIVATE parameters: – name: cdManutencao description: in: query type: string – name: cdEmpresa description: in: query type: integer format: int64 – name: dsManutencao description: in: query type: string – name: cdVeiculo description: in: query type: integer format: int64 – name: nrPlaca description: in: query type: string – name: cdSetores description: in: query type: string responses: 200: description: Ok schema: type: object required: – ok – listaManutencoes properties: ok: type: boolean description: dsErro: type: string description: listaManutencoes: type: array items: type: object allOf: #/definitions/ManutencaoRec minimum: 1 description: default: description: Error response schema: #/definitions/genericError /oficina/queries/buscaCentroCusto: post: description: tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object properties: cdCentroCusto: type: integer format: int64 description: dsCentroCusto: type: string description: responses: 200: description: Ok schema: type: object required: – ok – listaCentroCusto properties: ok: type: boolean description: dsErro: type: string description: listaCentroCusto: type: array items: type: object allOf: #/definitions/CentroCustoRec minimum: 1 description: default: description: Error response schema: #/definitions/genericError get: description: tags: – Queries x-senior-visibility: PRIVATE parameters: – name: cdCentroCusto description: in: query type: integer format: int64 – name: dsCentroCusto description: in: query type: string responses: 200: description: Ok schema: type: object required: – ok – listaCentroCusto properties: ok: type: boolean description: dsErro: type: string description: listaCentroCusto: type: array items: type: object allOf: #/definitions/CentroCustoRec minimum: 1 description: default: description: Error response schema: #/definitions/genericError /oficina/queries/buscaSetor: post: description: tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object properties: cdSetor: type: integer format: int64 description: dsSetor: type: string description: responses: 200: description: Ok schema: type: object required: – ok – listaSetores properties: ok: type: boolean description: dsErro: type: string description: listaSetores: type: array items: type: object allOf: #/definitions/RsalvaSetor minimum: 1 description: default: description: Error response schema: #/definitions/genericError get: description: tags: – Queries x-senior-visibility: PRIVATE parameters: – name: cdSetor description: in: query type: integer format: int64 – name: dsSetor description: in: query type: string responses: 200: description: Ok schema: type: object required: – ok – listaSetores properties: ok: type: boolean description: dsErro: type: string description: listaSetores: type: array items: type: object allOf: #/definitions/RsalvaSetor minimum: 1 description: default: description: Error response schema: #/definitions/genericError /oficina/queries/visaoGeral: post: description: tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object properties: cdEmpresa: type: integer format: int64 description: maxCentroCusto: type: integer format: int64 description: responses: 200: description: Ok schema: type: object required: – ok – visao properties: ok: type: boolean description: dsErro: type: string description: visao: type: object allOf: #/definitions/VisaoGeralRec description: default: description: Error response schema: #/definitions/genericError get: description: tags: – Queries x-senior-visibility: PRIVATE parameters: – name: cdEmpresa description: in: query type: integer format: int64 – name: maxCentroCusto description: in: query type: integer format: int64 responses: 200: description: Ok schema: type: object required: – ok – visao properties: ok: type: boolean description: dsErro: type: string description: visao: type: object allOf: #/definitions/VisaoGeralRec description: default: description: Error response schema: #/definitions/genericError /oficina/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 /oficina/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 /oficina/actions/salvaVeiculos: post: description: tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – veiculos properties: veiculos: type: array items: type: object allOf: #/definitions/VeiculoRec minimum: 1 description: responses: 200: description: Ok schema: type: object required: – ok – listaRetornos properties: ok: type: boolean description: dsErro: type: string description: listaRetornos: type: array items: type: object allOf: #/definitions/RetornoSalvaListaRec minimum: 1 description: default: description: Error response schema: #/definitions/genericError /oficina/actions/salvaPendencia: post: description: tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – listaPendencias properties: listaPendencias: type: array items: type: object allOf: #/definitions/PendenciaRec minimum: 1 description: responses: 200: description: Ok schema: type: object required: – ok – listaPendencias properties: ok: type: boolean description: dsErro: type: string description: listaPendencias: type: array items: type: object allOf: #/definitions/PendenciaRec minimum: 1 description: default: description: Error response schema: #/definitions/genericError /oficina/actions/salvaFilial: post: description: tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – cdEmpresa – dsEmpresa properties: cdEmpresa: type: integer format: int64 description: dsEmpresa: type: string description: responses: 200: description: Ok schema: type: object required: – ok properties: ok: type: boolean description: dsErro: type: string description: default: description: Error response schema: #/definitions/genericError /oficina/actions/salvaRevisao: post: description: tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – revisoes properties: revisoes: type: array items: type: object allOf: #/definitions/RevisaoRec minimum: 1 description: responses: 200: description: Ok schema: type: object required: – ok – listaRevisoes properties: ok: type: boolean description: dsErro: type: string description: listaRevisoes: type: array items: type: object allOf: #/definitions/RevisaoRec minimum: 1 description: default: description: Error response schema: #/definitions/genericError /oficina/actions/salvaManutencao: post: description: tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – manutencoes properties: manutencoes: type: array items: type: object allOf: #/definitions/RrsalvaManut minimum: 1 description: responses: 200: description: Ok schema: type: object required: – ok properties: ok: type: boolean description: dsErro: type: string description: default: description: Error response schema: #/definitions/genericError /oficina/actions/salvaCentroCusto: post: description: tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – listaCentroCusto properties: listaCentroCusto: type: array items: type: object allOf: #/definitions/RrsalvaCentroCusto minimum: 1 description: responses: 200: description: Ok schema: type: object required: – ok properties: ok: type: boolean description: dsErro: type: string description: default: description: Error response schema: #/definitions/genericError /oficina/actions/salvaSetor: post: description: tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – listaSetor properties: listaSetor: type: array items: type: object allOf: #/definitions/RsalvaSetor minimum: 1 description: responses: 200: description: Ok schema: type: object required: – ok properties: ok: type: boolean description: dsErro: type: string description: default: description: Error response schema: #/definitions/genericError /oficina/actions/removeSetor: post: description: tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – listaSetor properties: listaSetor: type: array items: type: object allOf: #/definitions/RremoveSetor minimum: 1 description: responses: 200: description: Ok schema: type: object required: – ok properties: ok: type: boolean description: dsErro: type: string description: default: description: Error response schema: #/definitions/genericError /oficina/actions/removePendencia: post: description: tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – listaPendencias properties: listaPendencias: type: array items: type: object allOf: #/definitions/RremovePendencia minimum: 1 description: responses: 200: description: Ok schema: type: object required: – ok properties: ok: type: boolean description: dsErro: type: string description: default: description: Error response schema: #/definitions/genericError /oficina/actions/removeManutencao: post: description: tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – listaManutencoes properties: listaManutencoes: type: array items: type: object allOf: #/definitions/RremoveManutencao minimum: 1 description: responses: 200: description: Ok schema: type: object required: – ok properties: ok: type: boolean description: dsErro: type: string description: default: description: Error response schema: #/definitions/genericError /oficina/actions/removeRevisao: post: description: tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – revisoes properties: revisoes: type: array items: type: object allOf: #/definitions/RremoveRevisao minimum: 1 description: responses: 200: description: Ok schema: type: object required: – ok properties: ok: type: boolean description: dsErro: type: string description: default: description: Error response schema: #/definitions/genericError /oficina/actions/removeCentroCusto: post: description: tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – listCentroCusto properties: listCentroCusto: type: array items: type: object allOf: #/definitions/RremoveCentroCusto minimum: 1 description: responses: 200: description: Ok schema: type: object required: – ok properties: ok: type: boolean description: dsErro: type: string description: default: description: Error response schema: #/definitions/genericError definitions: TipoMovimentoVeiculo: description: type: string enum: – ENTRADA – SAIDA TipoStatusOficina: description: type: string enum: – DISPONIVEIS – PENDENCIAS – REVISOES – MANUTENCOES TipoStatus: description: type: string enum: – GARAGEM – RODANDO TipoStatusManutencao: description: type: string enum: – Planejada – Executando – Pausada – Finalizada 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 Rerros: description: type: object required: – ok – dsErro properties: ok: type: boolean description: dsErro: type: string description: RremoveRevisao: description: type: object properties: cdRevisao: type: string description: RremoveCentroCusto: description: type: object properties: cdCentroCusto: type: integer format: int64 description: RremoveSetor: description: type: object properties: cdSetor: type: integer format: int64 description: RsalvaSetor: description: type: object required: – cdSetor properties: cdSetor: type: integer format: int64 description: dsSetor: type: string description: RrsalvaManut: description: type: object properties: cdManutencao: type: string description: dsManutencao: type: string description: qtTempoPrevisto: type: number format: double description: qtTempoRealizado: type: number format: double description: nrOS: type: integer format: int64 description: dtAberturaOS: type: string description: cdVeiculo: type: integer format: int64 description: cdEmpresa: type: integer format: int64 description: cdPlanoServico: type: integer format: int64 description: inStatus: type: string allOf: – #/definitions/TipoStatusManutencao description: dtInicio: type: string description: cdSetor: type: integer format: int64 description: RrsalvaCentroCusto: description: type: object properties: cdCentroCusto: type: integer format: int64 description: dsCentroCusto: type: string description: inExibePainelOfi: type: integer format: int64 description: RremoveManutencao: description: type: object required: – cdManutencao properties: cdManutencao: type: string description: RremovePendencia: description: type: object required: – cdPendenciaPk properties: cdPendenciaPk: type: string description: VeiculoRec: description: type: object required: – nrPlaca properties: cdVeiculo: type: integer format: int64 description: nrPlaca: type: string description: dsStatusOficina: type: string description: dsStatus: type: string description: cdEmpresa: type: integer format: int64 description: dsMovimentacao: type: string description: hrMovimentacao: type: string description: nrHodometro: type: number format: double description: cdCentroCusto: type: integer format: int64 description: dsCentroCusto: type: string description: RetornoSalvaListaRec: description: type: object required: – nrPlaca properties: nrPlaca: type: string description: cdVeiculo: type: integer format: int64 description: FilialRec: description: type: object required: – cdEmpresa – dsEmpresa properties: cdEmpresa: type: integer format: int64 description: dsEmpresa: type: string description: PendenciaRec: description: type: object properties: cdPendenciapk: type: string description: cdPendencia: type: integer format: int64 description: cdEmpresa: type: integer format: int64 description: cdVeiculo: type: integer format: int64 description: nrPlaca: type: string description: dsPendencia: type: string description: qtTempoPrevisto: type: string description: inPrioridade: type: integer format: int64 description: inNotificacao: type: integer format: int64 description: dsMovimentacao: type: string description: hrMovimentacao: type: string description: dtAberturaPen: type: string description: qtDias: type: number format: double description: cdSetor: type: integer format: int64 description: RevisaoRec: description: type: object properties: cdRevisao: type: string description: cdVeiculo: type: integer format: int64 description: dtPrevisao: type: string description: nrPlaca: type: string description: dsRevisao: type: string description: qtTempoPrevisto: type: string description: nrHodometro: type: number format: double description: qtKmAviso: type: integer format: int64 description: nrDias: type: integer format: int64 description: inCondicao: type: integer format: int64 description: nrHodHor: type: number format: double description: hrMovimentacao: type: string description: dsMovimentacao: type: string description: kmDiferenca: type: number format: double description: cdEmpresa: type: integer format: int64 description: cdSetor: type: integer format: int64 description: ManutencaoRec: description: type: object properties: cdManutencao: type: string description: dsManutencao: type: string description: qtTempoPrevisto: type: number format: double description: qtTempoRealizado: type: number format: double description: nrOS: type: integer format: int64 description: dtAberturaOS: type: string description: cdVeiculo: type: integer format: int64 description: nrPlaca: type: string description: cdEmpresa: type: integer format: int64 description: cdPlanoServico: type: integer format: int64 description: qtDiferenca: type: number format: double description: inStatus: type: string description: dtPrevisao: type: string description: dtInicio: type: string description: CentroCustoRec: description: type: object properties: cdCentroCusto: type: integer format: int64 description: dsCentroCusto: type: string description: inExibePainelOfi: type: integer format: int64 description: rodando: type: integer format: int64 description: garagem: type: integer format: int64 description: total: type: integer format: int64 description: VisaoRec: description: type: object required: – centrocusto properties: rodando: type: integer format: int64 description: garagem: type: integer format: int64 description: centrocusto: type: array items: type: object allOf: #/definitions/CentroCustoRec minimum: 1 description: VisaoGeralRec: description: type: object required: – disponiveis – pendencias – revisoes – manutencoes properties: disponiveis: type: object allOf: #/definitions/VisaoRec description: pendencias: type: object allOf: #/definitions/VisaoRec description: revisoes: type: object allOf: #/definitions/VisaoRec description: manutencoes: type: object allOf: #/definitions/VisaoRec description: notifyUserEventPayload: description: Represents a regular user event notification payload discriminator: _discriminator type: object required: – notificationKind – notificationPriority – notificationSubject – notificationContent – sourceDomain – sourceService – destinationUser – _discriminator properties: 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