﻿{"swagger":"2.0","info":{"version":"v1","title":"CotizadorCorporativo"},"host":"web.servientrega.com:8058/CotizadorCorporativo","schemes":["http"],"paths":{"/api/autenticacion/login":{"post":{"tags":["Autenticacion"],"summary":"Inicio de sesión","operationId":"Autenticacion_Login","consumes":["application/json","text/json","application/x-www-form-urlencoded"],"produces":["application/json","text/json"],"parameters":[{"name":"objUser","in":"body","description":"Objeto usuario","required":true,"schema":{"$ref":"#/definitions/User"}}],"responses":{"200":{"description":"OK","schema":{"type":"object"}}}}},"/api/Cotizacion":{"post":{"tags":["Cotizacion"],"summary":"Cotizar Envío","operationId":"Cotizacion_Cotizar","consumes":["application/json","text/json","application/x-www-form-urlencoded"],"produces":["application/json","text/json"],"parameters":[{"name":"objEnvio","in":"body","description":"Objeto envio","required":true,"schema":{"$ref":"#/definitions/Envio"}}],"responses":{"200":{"description":"OK","schema":{"type":"object"}}}}}},"definitions":{"User":{"type":"object","properties":{"login":{"type":"string"},"password":{"type":"string"},"codFacturacion":{"type":"string"}}},"Envio":{"type":"object","properties":{"IdProducto":{"format":"int32","type":"integer"},"NumeroPiezas":{"format":"int32","type":"integer"},"Piezas":{"type":"array","items":{"$ref":"#/definitions/Pieza"}},"ValorDeclarado":{"format":"double","type":"number"},"IdDaneCiudadOrigen":{"type":"string"},"IdDaneCiudadDestino":{"type":"string"},"EnvioConCobro":{"type":"boolean"},"FormaPago":{"format":"int32","type":"integer"},"TiempoEntrega":{"format":"int32","type":"integer"},"MedioTransporte":{"format":"int32","type":"integer"},"NumRecaudo":{"format":"double","type":"number"}}},"Pieza":{"type":"object","properties":{"Peso":{"format":"double","type":"number"},"Largo":{"format":"double","type":"number"},"Ancho":{"format":"double","type":"number"},"Alto":{"format":"double","type":"number"}}}}}