-
Notifications
You must be signed in to change notification settings - Fork 21
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
Fix some endpoints by upgrading them to v2, fix all the tests #41
base: master
Are you sure you want to change the base?
Conversation
Hi, can you please review the PR? |
Hi @tsolakoua @minjikarin @anthonyroux |
@@ -61,7 +61,7 @@ public FlightOffer[] get(Params _params) | |||
{ | |||
try | |||
{ | |||
Response response = client.get("/v1/shopping/flight-offers", _params); | |||
Response response = client.get("/v2/shopping/flight-offers", _params); |
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.
The actual and correct API call of the Flight Offers Search API is at this class. It seems at the file FlightOffers.cs it hasn't been removed from the past.
@@ -13,7 +13,10 @@ public class TravelRestrictionsTest | |||
public void Get_Restrictions() | |||
{ | |||
var amadeus = GetAmadeusBuild(); | |||
DiseaseAreaReport response = amadeus.dutyOfCare.diseases.covid19AreaReport.get(Params.with("countryCode", "US")); | |||
DiseaseAreaReport response = amadeus.dutyOfCare.diseases.covid19AreaReport.get(Params |
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.
The Travel Restrictions API has been recently completely decommissioned, so there is no need to update this anymore.
Kudos, SonarCloud Quality Gate passed! |
Ran all the tests, all are passing now