-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Full integration with external API #108
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@an2508374, please confirm, that create inquiry with external api, while sending the request for offers returns offers from the frontend side.
...els.Infrastructure/SwiftParcel.Services.Parcels.Infrastructure/Mongo/Documents/Extensions.cs
Show resolved
Hide resolved
...tParcel.Services.Orders.Application/SwiftParcel.Services.Orders.Application/DTO/ParcelDto.cs
Show resolved
Hide resolved
I deleted objects with wrong structure and provided a change. Please let me know if you encounter any issues now. |
Thank you @eggwhat for this checks. What do you think, it will be better when user would not be allowed to enter data out of this ranges and always will get offer from two apis, or not to check it and then in the worst case user will get only an offer from our company? If the first case is better option, I will update validation during creating inquiry on the frontend side. |
I think the first option is our go-to. I will update our backend validation to always have valid values also for MiniCurrier service. |
Also i will add validation for pickup and delivery date, because for MiniCurrier the inquiry has to have pickupDate > current time and deliveryDate > pickupDate |
I also found an issue in MiniCurrier Api. Inquiry can have some dimensions equal 8 meters but when all dimensions are equal 8 meters there is error 500. So i will have to make validation <8 |
Full integration with external API
Features:
Api guideline will be published soon in a new issue.