erpx_man (Gestão industrial)

2.0info: 2.16.0 Plano mestre de produção – MRP description: MRP x-senior-domain: Gestão industrial x-senior-domain-path: erpx_man x-senior-service-path: mrp contact: name: Senior X Platform url: https://dev.senior.com.br email: seniorx-dev@senior.com.brhost: api.senior.com.br /erpx_man/mrpsecurityDefinitions: bearerAuth: type: apiKey in: header name: Authorization – application/json – application/jsonparameters: clientId: name: client_id type: string in: header required: true description: Identificação da aplicação cadastrada no portal do desenvolvedor (api.xplatform.com.br)paths: /saveFile: post: description: Confirma a gravação do arquivo no serviço na versão em que ocorreu o upload ### Resources - res://senior.com.br/erpx_man/mrp/entities/importacaoArquivo – Processar x-senior-event: false deprecated: false tags: – Endpoints security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: type: object required: – fileName – version properties: targetObject: type: string description: TargetObject do arquivo necessário no blobService fileName: type: string description: Nome do anexo type: string description: Versão do anexo (obtida no retorno da primitiva getUrlUploadFile) responses: 200: description: Ok schema: type: object required: – result properties: result: type: string description: Resultado da operação (OK) default: description: Error response schema: #/definitions/genericError /getUrlUploadFile: post: description: Cria o local para armazenamento e busca URL para upload do anexo ### Resources - res://senior.com.br/erpx_man/mrp/entities/importacaoArquivo – Visualizar x-senior-event: false deprecated: false tags: – Endpoints security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: type: object required: – fileName properties: fileName: type: string description: Nome do arquivo responses: 200: description: Ok schema: type: object required: – targetObject – url – fileName – version properties: targetObject: type: string description: TargetObject do arquivo necessário no blobService url: type: string description: URL para upload do arquivo fileName: type: string description: Nome do arquivo, informado no input type: string description: Versão do arquivo criado default: description: Error response schema: #/definitions/genericError get: description: Cria o local para armazenamento e busca URL para upload do anexo ### Resources - res://senior.com.br/erpx_man/mrp/entities/importacaoArquivo – Visualizar x-senior-event: false deprecated: false tags: – Endpoints security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: type: object required: – fileName properties: fileName: type: string description: Nome do arquivo responses: 200: description: Ok schema: type: object required: – targetObject – url – fileName – version properties: targetObject: type: string description: TargetObject do arquivo necessário no blobService url: type: string description: URL para upload do arquivo fileName: type: string description: Nome do arquivo, informado no input type: string description: Versão do arquivo criado default: description: Error response schema: #/definitions/genericError /getUrlDownloadFile: post: description: Obtém a URL para download do anexo ### Resources - res://senior.com.br/erpx_man/mrp/entities/importacaoArquivo – Visualizar x-senior-event: false deprecated: false tags: – Endpoints security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: type: object required: – fileName – version properties: targetObject: type: string description: TargetObject do arquivo necessario no blobService fileName: type: string description: Nome do anexo type: string description: Versão do arquivo responses: 200: description: Ok schema: type: object required: – url properties: url: type: string description: URL para download do arquivo default: description: Error response schema: #/definitions/genericError get: description: Obtém a URL para download do anexo ### Resources - res://senior.com.br/erpx_man/mrp/entities/importacaoArquivo – Visualizar x-senior-event: false deprecated: false tags: – Endpoints security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: type: object required: – fileName – version properties: targetObject: type: string description: TargetObject do arquivo necessario no blobService fileName: type: string description: Nome do anexo type: string description: Versão do arquivo responses: 200: description: Ok schema: type: object required: – url properties: url: type: string description: URL para download do arquivo default: description: Error response schema: #/definitions/genericErrordefinitions: 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