diff --git a/src/main/java/org/teknichrono/mgp/business/RiderService.java b/src/main/java/org/teknichrono/mgp/business/RiderService.java new file mode 100644 index 0000000..9273951 --- /dev/null +++ b/src/main/java/org/teknichrono/mgp/business/RiderService.java @@ -0,0 +1,22 @@ +package org.teknichrono.mgp.business; + +import org.eclipse.microprofile.rest.client.inject.RestClient; +import org.teknichrono.mgp.client.RidersClient; +import org.teknichrono.mgp.model.rider.RiderDetails; + +import javax.enterprise.context.ApplicationScoped; +import javax.inject.Inject; + +@ApplicationScoped +public class RiderService { + + @Inject + @RestClient + RidersClient riderClient; + + + public RiderDetails getRider(Integer legacyId) { + return riderClient.getRider(legacyId); + } + +} diff --git a/src/main/java/org/teknichrono/mgp/client/ResultsService.java b/src/main/java/org/teknichrono/mgp/client/ResultsClient.java similarity index 59% rename from src/main/java/org/teknichrono/mgp/client/ResultsService.java rename to src/main/java/org/teknichrono/mgp/client/ResultsClient.java index 673aa87..c6ac33a 100644 --- a/src/main/java/org/teknichrono/mgp/client/ResultsService.java +++ b/src/main/java/org/teknichrono/mgp/client/ResultsClient.java @@ -7,6 +7,7 @@ import org.teknichrono.mgp.model.result.Season; import org.teknichrono.mgp.model.result.Session; import org.teknichrono.mgp.model.result.SessionClassification; +import org.teknichrono.mgp.model.result.TestClassification; import javax.ws.rs.GET; import javax.ws.rs.Path; @@ -15,7 +16,7 @@ import java.util.List; @RegisterRestClient(configKey = "results-api") -public interface ResultsService { +public interface ResultsClient { @GET @Path("/seasons") @@ -25,19 +26,22 @@ public interface ResultsService { @Path("/seasons") List getSeasons(); - @GET @Path("/season/{season}/events") List getEventsOfSeason(@PathParam("season") String season); @GET - @Path("/season/db8dc197-c7b2-4c1b-b3a4-7dc723c087ed/events") - List getEventsTest(); + @Path("/season/{season}/events") + List getTestEventsOfSeason(@PathParam("season") String season, @QueryParam("test") boolean test); @GET @Path("/season/{season}/events") List getFinishedEventsOfSeason(@PathParam("season") String season, @QueryParam("finished") boolean finished); + @GET + @Path("/event/{event}") + Event getEvent(@PathParam("event") String event); + @GET @Path("/event/{event}/categories") List getCategoriesOfEvent(@PathParam("event") String event); @@ -54,9 +58,15 @@ public interface ResultsService { @Path("/session/{session}/classifications") SessionClassification getClassification(@PathParam("session") String session); -// $seasons_url = "https://www.motogp.com/api/results-front/be/results-api/seasons?test=1"; -// $events_url = "https://www.motogp.com/api/results-front/be/results-api/season/$season/events?finished=1"; -// $categories_url = "https://www.motogp.com/api/results-front/be/results-api/event/$event/categories"; -// $sessions_url = "https://www.motogp.com/api/results-front/be/results-api/event/$event/category/category/$category/sessions"; -// $results_url = "https://www.motogp.com/api/results-front/be/results-api/session/$sesion/classifications" + @GET + @Path("/session/{session}/test-classifications") + TestClassification getTestClassification(@PathParam("session") String session); + + +// $seasons_url = "http://localhost:8089/api/results-front/be/results-api/seasons?test=1"; +// $events_url = "http://localhost:8089/api/results-front/be/results-api/season/$season/events?finished=1"; +// $categories_url = "http://localhost:8089/api/results-front/be/results-api/event/$event/categories"; +// $sessions_url = "http://localhost:8089/api/results-front/be/results-api/event/$event/category/category/$category/sessions"; +// $results_url = "http://localhost:8089/api/results-front/be/results-api/session/$sesion/classifications" +// $results_url = "http://localhost:8089/api/results-front/be/results-api/session/$sesion/test-classifications" } \ No newline at end of file diff --git a/src/main/java/org/teknichrono/mgp/client/RidersService.java b/src/main/java/org/teknichrono/mgp/client/RidersClient.java similarity index 92% rename from src/main/java/org/teknichrono/mgp/client/RidersService.java rename to src/main/java/org/teknichrono/mgp/client/RidersClient.java index 5971433..dcd1e0e 100644 --- a/src/main/java/org/teknichrono/mgp/client/RidersService.java +++ b/src/main/java/org/teknichrono/mgp/client/RidersClient.java @@ -8,7 +8,7 @@ import javax.ws.rs.PathParam; @RegisterRestClient(configKey = "riders-api") -public interface RidersService { +public interface RidersClient { @GET @Path("/riders/{legacyId}") diff --git a/src/main/java/org/teknichrono/mgp/model/out/ClassificationDetails.java b/src/main/java/org/teknichrono/mgp/model/out/ClassificationDetails.java index 96cad48..b3692d7 100644 --- a/src/main/java/org/teknichrono/mgp/model/out/ClassificationDetails.java +++ b/src/main/java/org/teknichrono/mgp/model/out/ClassificationDetails.java @@ -1,12 +1,10 @@ package org.teknichrono.mgp.model.out; -import org.teknichrono.mgp.model.result.Classification; - -import java.util.List; +import org.teknichrono.mgp.model.result.RiderClassification; public interface ClassificationDetails { - void fill(Classification c, List ridersDetails); + void fill(RiderClassification c); } diff --git a/src/main/java/org/teknichrono/mgp/model/out/LapAnalysis.java b/src/main/java/org/teknichrono/mgp/model/out/LapAnalysis.java index 2efbe22..5c0d96a 100644 --- a/src/main/java/org/teknichrono/mgp/model/out/LapAnalysis.java +++ b/src/main/java/org/teknichrono/mgp/model/out/LapAnalysis.java @@ -74,8 +74,12 @@ public LapAnalysis() { } public LapAnalysis(LapAnalysis old) { - frontTyreLapNumber = old.frontTyreLapNumber + 1; - backTyreLapNumber = old.backTyreLapNumber + 1; + if (old.frontTyreLapNumber != null) { + frontTyreLapNumber = old.frontTyreLapNumber + 1; + } + if (old.backTyreLapNumber != null) { + backTyreLapNumber = old.backTyreLapNumber + 1; + } frontTyre = old.frontTyre; backTyre = old.backTyre; diff --git a/src/main/java/org/teknichrono/mgp/model/out/PracticeClassificationDetails.java b/src/main/java/org/teknichrono/mgp/model/out/PracticeClassificationDetails.java index 41cf6d8..f8ab924 100644 --- a/src/main/java/org/teknichrono/mgp/model/out/PracticeClassificationDetails.java +++ b/src/main/java/org/teknichrono/mgp/model/out/PracticeClassificationDetails.java @@ -2,10 +2,7 @@ import com.opencsv.bean.CsvBindByName; import com.opencsv.bean.CsvBindByPosition; -import org.teknichrono.mgp.model.result.Classification; -import org.teknichrono.mgp.model.rider.RiderSeason; - -import java.util.List; +import org.teknichrono.mgp.model.result.RiderClassification; public class PracticeClassificationDetails implements ClassificationDetails { @@ -57,23 +54,18 @@ public class PracticeClassificationDetails implements ClassificationDetails { @CsvBindByPosition(position = 11) public Float topSpeed; - public static PracticeClassificationDetails from(Classification c, List ridersDetails) { + public static PracticeClassificationDetails from(RiderClassification c) { PracticeClassificationDetails toReturn = new PracticeClassificationDetails(); - toReturn.fill(c, ridersDetails); + toReturn.fill(c); return toReturn; } - public void fill(Classification c, List ridersDetails) { + public void fill(RiderClassification c) { position = c.position; riderName = c.rider.full_name; - for (SessionRider details : ridersDetails) { - if (c.rider.full_name.equalsIgnoreCase(details.fullName())) { - RiderSeason season = details.season; - riderNumber = season.number; - team = season.sponsored_team; - constructor = season.team.constructor.name; - } - } + riderNumber = c.rider.number; + team = c.team.name; + constructor = c.constructor.name; gapToFirst = c.gap.first; gapToPrevious = c.gap.prev; totalLaps = c.total_laps; diff --git a/src/main/java/org/teknichrono/mgp/model/out/RaceClassificationDetails.java b/src/main/java/org/teknichrono/mgp/model/out/RaceClassificationDetails.java index dc8aa36..9b1296d 100644 --- a/src/main/java/org/teknichrono/mgp/model/out/RaceClassificationDetails.java +++ b/src/main/java/org/teknichrono/mgp/model/out/RaceClassificationDetails.java @@ -2,10 +2,7 @@ import com.opencsv.bean.CsvBindByName; import com.opencsv.bean.CsvBindByPosition; -import org.teknichrono.mgp.model.result.Classification; -import org.teknichrono.mgp.model.rider.RiderSeason; - -import java.util.List; +import org.teknichrono.mgp.model.result.RiderClassification; public class RaceClassificationDetails implements ClassificationDetails { @@ -54,23 +51,18 @@ public class RaceClassificationDetails implements ClassificationDetails { public Float averageSpeed; - public static RaceClassificationDetails from(Classification c, List ridersDetails) { + public static RaceClassificationDetails from(RiderClassification c) { RaceClassificationDetails toReturn = new RaceClassificationDetails(); - toReturn.fill(c, ridersDetails); + toReturn.fill(c); return toReturn; } - public void fill(Classification c, List ridersDetails) { + public void fill(RiderClassification c) { position = c.position; riderName = c.rider.full_name; - for (SessionRider details : ridersDetails) { - if (c.rider.full_name.equalsIgnoreCase(details.fullName())) { - RiderSeason season = details.season; - riderNumber = season.number; - team = season.sponsored_team; - constructor = season.team.constructor.name; - } - } + riderNumber = c.rider.number; + team = c.team.name; + constructor = c.constructor.name; gapToFirst = c.gap.first; totalLaps = c.total_laps; points = getPointsForPosition(c.position); diff --git a/src/main/java/org/teknichrono/mgp/model/out/SessionRider.java b/src/main/java/org/teknichrono/mgp/model/out/SessionRider.java index 01a7121..7dbc821 100644 --- a/src/main/java/org/teknichrono/mgp/model/out/SessionRider.java +++ b/src/main/java/org/teknichrono/mgp/model/out/SessionRider.java @@ -5,7 +5,6 @@ import org.teknichrono.mgp.model.rider.RiderBiography; import org.teknichrono.mgp.model.rider.RiderCountry; import org.teknichrono.mgp.model.rider.RiderDetails; -import org.teknichrono.mgp.model.rider.RiderSeason; public class SessionRider { @@ -23,7 +22,6 @@ public class SessionRider { public String birth_city; public String birth_date; public RiderAttributes physical_attributes; - public RiderSeason season; public RiderBiography biography; public Boolean legend; @@ -32,7 +30,7 @@ public class SessionRider { public Boolean published; - public void fill(Entry e, RiderDetails rider, int year) { + public void fill(Entry e, RiderDetails rider) { this.wildcard = e.wildcard; this.replacement = e.replacement; this.replaced = e.replaced; @@ -46,15 +44,10 @@ public void fill(Entry e, RiderDetails rider, int year) { this.birth_city = rider.birth_city; this.birth_date = rider.birth_date; this.physical_attributes = rider.physical_attributes; - this.season = rider.getSeasonOfYear(e.constructor.name, year); this.biography = rider.biography; this.legend = rider.legend; this.legacy_id = rider.legacy_id; this.merchandise_url = rider.merchandise_url; this.published = rider.published; } - - public String fullName() { - return name + " " + surname; - } } diff --git a/src/main/java/org/teknichrono/mgp/model/result/Classification.java b/src/main/java/org/teknichrono/mgp/model/result/Classification.java index 3d35d6e..e1752ab 100644 --- a/src/main/java/org/teknichrono/mgp/model/result/Classification.java +++ b/src/main/java/org/teknichrono/mgp/model/result/Classification.java @@ -1,45 +1,9 @@ package org.teknichrono.mgp.model.result; -import com.opencsv.bean.CsvBindByName; -import com.opencsv.bean.CsvBindByPosition; +import java.util.List; public class Classification { - public String id; - - @CsvBindByName(column = "POSITION") - @CsvBindByPosition(position = 0) - public Integer position; - - @CsvBindByName(column = "RIDER") - @CsvBindByPosition(position = 1) - public Rider rider; - - @CsvBindByName(column = "TEAM") - @CsvBindByPosition(position = 2) - public Team team; - - @CsvBindByName(column = "CONSTRUCTOR") - @CsvBindByPosition(position = 3) - public String constructor; - - @CsvBindByName(column = "BEST_LAP") - @CsvBindByPosition(position = 3) - public Lap best_lap; - - @CsvBindByName(column = "TOTAL_LAPS") - @CsvBindByPosition(position = 4) - public Integer total_laps; - - @CsvBindByPosition(position = 5) - public String status; - - @CsvBindByName(column = "TOP_SPEED") - @CsvBindByPosition(position = 6) - public Float top_speed; - - @CsvBindByName(column = "GAP") - @CsvBindByPosition(position = 7) - public Gap gap; - -} \ No newline at end of file + public List classification; + public List records; +} diff --git a/src/main/java/org/teknichrono/mgp/model/result/Rider.java b/src/main/java/org/teknichrono/mgp/model/result/Rider.java index d9df7c3..f02de71 100644 --- a/src/main/java/org/teknichrono/mgp/model/result/Rider.java +++ b/src/main/java/org/teknichrono/mgp/model/result/Rider.java @@ -6,6 +6,7 @@ public class Rider { public String full_name; public Country country; public Integer legacy_id; + public Integer number; public String toString() { return full_name; diff --git a/src/main/java/org/teknichrono/mgp/model/result/RiderClassification.java b/src/main/java/org/teknichrono/mgp/model/result/RiderClassification.java new file mode 100644 index 0000000..85c194b --- /dev/null +++ b/src/main/java/org/teknichrono/mgp/model/result/RiderClassification.java @@ -0,0 +1,45 @@ +package org.teknichrono.mgp.model.result; + +import com.opencsv.bean.CsvBindByName; +import com.opencsv.bean.CsvBindByPosition; + +public class RiderClassification { + + public String id; + + @CsvBindByName(column = "POSITION") + @CsvBindByPosition(position = 0) + public Integer position; + + @CsvBindByName(column = "RIDER") + @CsvBindByPosition(position = 1) + public Rider rider; + + @CsvBindByName(column = "TEAM") + @CsvBindByPosition(position = 2) + public Team team; + + @CsvBindByName(column = "CONSTRUCTOR") + @CsvBindByPosition(position = 3) + public Constructor constructor; + + @CsvBindByName(column = "BEST_LAP") + @CsvBindByPosition(position = 3) + public Lap best_lap; + + @CsvBindByName(column = "TOTAL_LAPS") + @CsvBindByPosition(position = 4) + public Integer total_laps; + + @CsvBindByPosition(position = 5) + public String status; + + @CsvBindByName(column = "TOP_SPEED") + @CsvBindByPosition(position = 6) + public Float top_speed; + + @CsvBindByName(column = "GAP") + @CsvBindByPosition(position = 7) + public Gap gap; + +} \ No newline at end of file diff --git a/src/main/java/org/teknichrono/mgp/model/result/Session.java b/src/main/java/org/teknichrono/mgp/model/result/Session.java index 9b3b456..4ad3fed 100644 --- a/src/main/java/org/teknichrono/mgp/model/result/Session.java +++ b/src/main/java/org/teknichrono/mgp/model/result/Session.java @@ -4,9 +4,6 @@ public class Session { - public static final String FILENAME_MAX_SPEED = "maximum_speed"; - public static final String FILENAME_ANALYSIS = "analysis"; - public static final String RACE_TYPE = "RAC"; public String id; @@ -15,7 +12,7 @@ public class Session { public SessionCondition condition; public String date; public String status; - public Map session_files; + public Map session_files; public String circuit; diff --git a/src/main/java/org/teknichrono/mgp/model/result/SessionClassification.java b/src/main/java/org/teknichrono/mgp/model/result/SessionClassification.java index 6f9baa4..720f584 100644 --- a/src/main/java/org/teknichrono/mgp/model/result/SessionClassification.java +++ b/src/main/java/org/teknichrono/mgp/model/result/SessionClassification.java @@ -1,11 +1,7 @@ package org.teknichrono.mgp.model.result; -import java.util.List; +public class SessionClassification extends Classification { -public class SessionClassification { - - public List classification; - public List records; public String file; } diff --git a/src/main/java/org/teknichrono/mgp/model/result/SessionFileType.java b/src/main/java/org/teknichrono/mgp/model/result/SessionFileType.java new file mode 100644 index 0000000..75419bb --- /dev/null +++ b/src/main/java/org/teknichrono/mgp/model/result/SessionFileType.java @@ -0,0 +1,18 @@ +package org.teknichrono.mgp.model.result; + +public enum SessionFileType { + + analysis_by_lap, + fast_lap_rider, + combined_classification, + session, + best_partial_time, + combined_practice, + classification, + analysis, + maximum_speed, + lap_chart, + grid, + fast_lap_sequence, + average_speed +} diff --git a/src/main/java/org/teknichrono/mgp/model/result/TestClassification.java b/src/main/java/org/teknichrono/mgp/model/result/TestClassification.java new file mode 100644 index 0000000..16a4254 --- /dev/null +++ b/src/main/java/org/teknichrono/mgp/model/result/TestClassification.java @@ -0,0 +1,7 @@ +package org.teknichrono.mgp.model.result; + +public class TestClassification extends Classification { + + public TestClassificationFiles files; + +} diff --git a/src/main/java/org/teknichrono/mgp/model/result/TestClassificationFiles.java b/src/main/java/org/teknichrono/mgp/model/result/TestClassificationFiles.java new file mode 100644 index 0000000..e529452 --- /dev/null +++ b/src/main/java/org/teknichrono/mgp/model/result/TestClassificationFiles.java @@ -0,0 +1,10 @@ +package org.teknichrono.mgp.model.result; + +public class TestClassificationFiles { + + public String classification; + public String analysis; + public String combined_sessions; + public String combined_days; + +} diff --git a/src/main/java/org/teknichrono/mgp/model/rider/RiderDetails.java b/src/main/java/org/teknichrono/mgp/model/rider/RiderDetails.java index e462edd..606c88d 100644 --- a/src/main/java/org/teknichrono/mgp/model/rider/RiderDetails.java +++ b/src/main/java/org/teknichrono/mgp/model/rider/RiderDetails.java @@ -21,8 +21,4 @@ public class RiderDetails { public Boolean banned; public Boolean wildcard; - public RiderSeason getSeasonOfYear(String constructorName, int year) { - return career.stream().filter(s -> s.season == year && s.team.constructor.name.equalsIgnoreCase(constructorName)).findFirst().get(); - } - } diff --git a/src/main/java/org/teknichrono/mgp/parser/AnalysisPdfParser.java b/src/main/java/org/teknichrono/mgp/parser/AnalysisPdfParser.java index e8f7d7d..5efe660 100644 --- a/src/main/java/org/teknichrono/mgp/parser/AnalysisPdfParser.java +++ b/src/main/java/org/teknichrono/mgp/parser/AnalysisPdfParser.java @@ -2,12 +2,11 @@ import org.jboss.logging.Logger; import org.teknichrono.mgp.model.out.LapAnalysis; -import org.teknichrono.mgp.model.out.SessionRider; +import org.teknichrono.mgp.model.result.RiderClassification; import javax.enterprise.context.ApplicationScoped; import java.util.ArrayList; import java.util.List; -import java.util.Locale; @ApplicationScoped public class AnalysisPdfParser { @@ -19,14 +18,14 @@ public class AnalysisPdfParser { public static final int WIDTH_COLUMN_PDF = 263; public static final int HEIGHT_COLUMN_PDF = 692; - public List parse(String url, List ridersOfEvent) throws PdfParsingException { + public List parse(String url, List riderClassifications) throws PdfParsingException { List toReturn = new ArrayList<>(); List lines = PdfParserUtils.readPdfLinesTwoColumns(url, X_LEFT_COLUMN_PDF, X_RIGHT_COLUMN_PDF, T_COLUMNS_PDF, WIDTH_COLUMN_PDF, HEIGHT_COLUMN_PDF); LapAnalysis lapAnalysis = null; for (String line : lines) { - lapAnalysis = updateRiderIfNecessary(lapAnalysis, ridersOfEvent, line); + lapAnalysis = updateRiderIfNecessary(lapAnalysis, riderClassifications, line); updateFrontTyreIfNecessary(lapAnalysis, line); updateRearTyreIfNecessary(lapAnalysis, line); updateFrontTyreAgeIfNecessary(lapAnalysis, line); @@ -84,21 +83,22 @@ private void updateFrontTyreIfNecessary(LapAnalysis lap, String line) { } } - private LapAnalysis updateRiderIfNecessary(LapAnalysis currentLapAnalysis, List ridersOfEvent, String line) { + private LapAnalysis updateRiderIfNecessary(LapAnalysis currentLapAnalysis, List riderClassifications, String line) { LapAnalysis toReturn = currentLapAnalysis; - for (SessionRider rider : ridersOfEvent) { - Integer number = rider.season.number; - String name = rider.name + " " + rider.surname; - String motorcycle = rider.season.team.constructor.name; + for (RiderClassification classification : riderClassifications) { + Integer number = classification.rider.number; + String name = classification.rider.full_name; + String firstname = name.split(" ")[0]; if (line.contains(number.toString()) && - line.toLowerCase().contains(name.toLowerCase()) && - line.toLowerCase(Locale.ROOT).contains(motorcycle.toLowerCase())) { + line.toLowerCase().contains(firstname.toLowerCase())) { toReturn = new LapAnalysis(); toReturn.number = number; - toReturn.motorcycle = motorcycle; + toReturn.motorcycle = classification.constructor.name; toReturn.rider = name; - toReturn.nation = PdfParserUtils.parseNation(line); - toReturn.team = rider.season.sponsored_team; + toReturn.nation = classification.rider.country.iso; + if (classification.team != null) { + toReturn.team = classification.team.name; + } } } return toReturn; diff --git a/src/main/java/org/teknichrono/mgp/parser/MaxSpeedPdfParser.java b/src/main/java/org/teknichrono/mgp/parser/MaxSpeedPdfParser.java index 4e4c89a..205d5e1 100644 --- a/src/main/java/org/teknichrono/mgp/parser/MaxSpeedPdfParser.java +++ b/src/main/java/org/teknichrono/mgp/parser/MaxSpeedPdfParser.java @@ -2,8 +2,7 @@ import org.jboss.logging.Logger; import org.teknichrono.mgp.model.out.MaxSpeed; -import org.teknichrono.mgp.model.out.SessionRider; -import org.teknichrono.mgp.model.rider.RiderSeason; +import org.teknichrono.mgp.model.result.RiderClassification; import javax.enterprise.context.ApplicationScoped; import java.util.ArrayList; @@ -14,7 +13,7 @@ public class MaxSpeedPdfParser { private static final Logger LOGGER = Logger.getLogger(MaxSpeedPdfParser.class); - public List parse(String url, List ridersOfEvent, int year) throws PdfParsingException { + public List parse(String url, List ridersOfEvent, int year) throws PdfParsingException { List toReturn = new ArrayList<>(); String[] lines = PdfParserUtils.readPdfLines(url); boolean start = false; @@ -36,7 +35,7 @@ public List parse(String url, List ridersOfEvent, int ye return toReturn; } - MaxSpeed parseLine(String line, List ridersOfEvent, int year) throws PdfParsingException { + MaxSpeed parseLine(String line, List ridersOfEvent, int year) throws PdfParsingException { MaxSpeed maxSpeed = new MaxSpeed(); parseRider(line, maxSpeed, ridersOfEvent, year); maxSpeed.speed = PdfParserUtils.parseSpeed(line); @@ -47,15 +46,13 @@ MaxSpeed parseLine(String line, List ridersOfEvent, int year) thro return maxSpeed; } - private void parseRider(String line, MaxSpeed maxSpeed, List ridersOfEvent, int year) { - for (SessionRider rider : ridersOfEvent) { - RiderSeason season = rider.season; - String riderNumber = season.number.toString(); - if (line.startsWith(riderNumber)) { - maxSpeed.number = season.number; - maxSpeed.rider = rider.name + " " + rider.surname; - maxSpeed.team = season.sponsored_team; - maxSpeed.motorcycle = season.team.constructor.name; + private void parseRider(String line, MaxSpeed maxSpeed, List ridersOfEvent, int year) { + for (RiderClassification classification : ridersOfEvent) { + if (line.startsWith(classification.rider.number.toString())) { + maxSpeed.number = classification.rider.number; + maxSpeed.rider = classification.rider.full_name; + maxSpeed.team = classification.team.name; + maxSpeed.motorcycle = classification.constructor.name; } } } diff --git a/src/main/java/org/teknichrono/mgp/parser/PracticeResultsPdfParser.java b/src/main/java/org/teknichrono/mgp/parser/PracticeResultsPdfParser.java index 24f7a9b..ebbd770 100644 --- a/src/main/java/org/teknichrono/mgp/parser/PracticeResultsPdfParser.java +++ b/src/main/java/org/teknichrono/mgp/parser/PracticeResultsPdfParser.java @@ -2,9 +2,9 @@ import org.jboss.logging.Logger; import org.teknichrono.mgp.model.out.PracticeClassificationDetails; -import org.teknichrono.mgp.model.out.SessionRider; -import org.teknichrono.mgp.model.result.Classification; +import org.teknichrono.mgp.model.result.RiderClassification; import org.teknichrono.mgp.model.result.SessionClassification; +import org.teknichrono.mgp.model.result.TestClassification; import javax.enterprise.context.ApplicationScoped; import java.util.ArrayList; @@ -19,13 +19,22 @@ public class PracticeResultsPdfParser { private static final Logger LOGGER = Logger.getLogger(PracticeResultsPdfParser.class); - public List parse(SessionClassification classifications, List ridersOfEvent) throws PdfParsingException { - List toReturn = new ArrayList<>(); - for (Classification c : classifications.classification) { - PracticeClassificationDetails details = PracticeClassificationDetails.from(c, ridersOfEvent); - toReturn.add(details); - } - String[] lines = PdfParserUtils.readPdfLines(classifications.file); + public List parse(TestClassification classifications) throws PdfParsingException { + List toReturn = getPartialResults(classifications.classification); + fillFromPdf(toReturn, classifications.files.classification); + return toReturn; + + } + + public List parse(SessionClassification classifications) throws PdfParsingException { + List toReturn = getPartialResults(classifications.classification); + fillFromPdf(toReturn, classifications.file); + + return toReturn; + } + + private void fillFromPdf(List toReturn, String url) throws PdfParsingException { + String[] lines = PdfParserUtils.readPdfLines(url); for (String line : lines) { for (PracticeClassificationDetails details : toReturn) { @@ -51,7 +60,14 @@ public List parse(SessionClassification classific } } } + } + private List getPartialResults(List classifications) { + List toReturn = new ArrayList<>(); + for (RiderClassification c : classifications) { + PracticeClassificationDetails details = PracticeClassificationDetails.from(c); + toReturn.add(details); + } return toReturn; } } diff --git a/src/main/java/org/teknichrono/mgp/parser/RaceResultsPdfParser.java b/src/main/java/org/teknichrono/mgp/parser/RaceResultsPdfParser.java index 5d757f1..216d98a 100644 --- a/src/main/java/org/teknichrono/mgp/parser/RaceResultsPdfParser.java +++ b/src/main/java/org/teknichrono/mgp/parser/RaceResultsPdfParser.java @@ -2,8 +2,7 @@ import org.jboss.logging.Logger; import org.teknichrono.mgp.model.out.RaceClassificationDetails; -import org.teknichrono.mgp.model.out.SessionRider; -import org.teknichrono.mgp.model.result.Classification; +import org.teknichrono.mgp.model.result.RiderClassification; import org.teknichrono.mgp.model.result.SessionClassification; import javax.enterprise.context.ApplicationScoped; @@ -15,16 +14,24 @@ public class RaceResultsPdfParser { private static final Logger LOGGER = Logger.getLogger(RaceResultsPdfParser.class); - public List parse(SessionClassification classifications, List ridersOfEvent) throws PdfParsingException { + public List parse(SessionClassification classifications) throws PdfParsingException { List toReturn = new ArrayList<>(); + List partialResults = getPartialResults(classifications.classification); + fillFromPdf(toReturn, partialResults, classifications.file); + return toReturn; + } + private List getPartialResults(List classifications) { List partialResults = new ArrayList<>(); - for (Classification c : classifications.classification) { - RaceClassificationDetails details = RaceClassificationDetails.from(c, ridersOfEvent); + for (RiderClassification c : classifications) { + RaceClassificationDetails details = RaceClassificationDetails.from(c); partialResults.add(details); } - String[] lines = PdfParserUtils.readPdfLines(classifications.file); + return partialResults; + } + private void fillFromPdf(List toReturn, List partialResults, String url) throws PdfParsingException { + String[] lines = PdfParserUtils.readPdfLines(url); for (String line : lines) { for (RaceClassificationDetails details : partialResults) { String lowerCaseLine = line.toLowerCase(); @@ -38,7 +45,5 @@ public List parse(SessionClassification classificatio } } } - - return toReturn; } } diff --git a/src/main/java/org/teknichrono/mgp/rest/CategoryEndpoint.java b/src/main/java/org/teknichrono/mgp/rest/CategoryEndpoint.java index 1667061..958d1d6 100644 --- a/src/main/java/org/teknichrono/mgp/rest/CategoryEndpoint.java +++ b/src/main/java/org/teknichrono/mgp/rest/CategoryEndpoint.java @@ -2,7 +2,7 @@ import org.eclipse.microprofile.rest.client.inject.RestClient; import org.jboss.logging.Logger; -import org.teknichrono.mgp.client.ResultsService; +import org.teknichrono.mgp.client.ResultsClient; import org.teknichrono.mgp.model.result.Category; import org.teknichrono.mgp.model.result.Event; @@ -23,7 +23,7 @@ public class CategoryEndpoint { @Inject @RestClient - ResultsService resultsService; + ResultsClient resultsService; @Inject EventEndpoint eventEndpoint; @@ -37,6 +37,15 @@ public List categoriesOfEvent(@PathParam("year") int year, @PathParam( return resultsService.getCategoriesOfEvent(event.id); } + @GET + @Produces(MediaType.APPLICATION_JSON) + @Transactional + @Path("/test/{year}/{eventShortName}") + public List categoriesOfTest(@PathParam("year") int year, @PathParam("eventShortName") String eventShortName) { + Event event = eventEndpoint.testsOfYear(year).stream().filter(e -> eventShortName.equalsIgnoreCase(e.short_name)).findFirst().get(); + return resultsService.getCategoriesOfEvent(event.id); + } + @GET @Produces(MediaType.APPLICATION_JSON) @Transactional @@ -46,4 +55,14 @@ public Category categoryOfEvent(@PathParam("year") int year, @PathParam("eventSh .filter(c -> c.name.toLowerCase().contains(category.toLowerCase())) .findFirst().get(); } + + @GET + @Produces(MediaType.APPLICATION_JSON) + @Transactional + @Path("/test/{year}/{eventShortName}/{category}") + public Category categoryOfTest(@PathParam("year") int year, @PathParam("eventShortName") String eventShortName, @PathParam("category") String category) { + return categoriesOfTest(year, eventShortName).stream() + .filter(c -> c.name.toLowerCase().contains(category.toLowerCase())) + .findFirst().get(); + } } diff --git a/src/main/java/org/teknichrono/mgp/rest/EventEndpoint.java b/src/main/java/org/teknichrono/mgp/rest/EventEndpoint.java index 24fd901..35353b2 100644 --- a/src/main/java/org/teknichrono/mgp/rest/EventEndpoint.java +++ b/src/main/java/org/teknichrono/mgp/rest/EventEndpoint.java @@ -1,7 +1,7 @@ package org.teknichrono.mgp.rest; import org.eclipse.microprofile.rest.client.inject.RestClient; -import org.teknichrono.mgp.client.ResultsService; +import org.teknichrono.mgp.client.ResultsClient; import org.teknichrono.mgp.model.result.Event; import org.teknichrono.mgp.model.result.Season; @@ -20,7 +20,7 @@ public class EventEndpoint { @Inject @RestClient - ResultsService resultsService; + ResultsClient resultsService; @Inject SeasonEndpoint seasonEndpoint; @@ -34,6 +34,15 @@ public List eventsOfYear(@PathParam("year") int year) { return resultsService.getEventsOfSeason(season.id); } + @GET + @Produces(MediaType.APPLICATION_JSON) + @Transactional + @Path("/test/{year}") + public List testsOfYear(@PathParam("year") int year) { + Season season = seasonEndpoint.tests().stream().filter(s -> s.year.intValue() == year).findFirst().get(); + return resultsService.getTestEventsOfSeason(season.id, true); + } + @GET @Produces(MediaType.APPLICATION_JSON) @Transactional @@ -42,6 +51,14 @@ public Event eventOfYear(@PathParam("year") int year, @PathParam("eventShortName return eventsOfYear(year).stream().filter(e -> eventShortName.equalsIgnoreCase(e.short_name)).findFirst().get(); } + @GET + @Produces(MediaType.APPLICATION_JSON) + @Transactional + @Path("/test/{year}/{eventShortName}") + public Event testOfYear(@PathParam("year") int year, @PathParam("eventShortName") String eventShortName) { + return testsOfYear(year).stream().filter(e -> eventShortName.equalsIgnoreCase(e.short_name)).findFirst().get(); + } + @GET @Produces(MediaType.APPLICATION_JSON) @@ -52,4 +69,14 @@ public List eventsNamesOfYear(@PathParam("year") int year) { return resultsService.getEventsOfSeason(season.id).stream().map(e -> e.short_name).collect(Collectors.toList()); } + + @GET + @Produces(MediaType.APPLICATION_JSON) + @Transactional + @Path("/test/{year}/names") + public List testsNamesOfYear(@PathParam("year") int year) { + Season season = seasonEndpoint.tests().stream().filter(s -> s.year.intValue() == year).findFirst().get(); + return resultsService.getTestEventsOfSeason(season.id, true).stream().map(e -> e.short_name).collect(Collectors.toList()); + } + } diff --git a/src/main/java/org/teknichrono/mgp/rest/RiderEndpoint.java b/src/main/java/org/teknichrono/mgp/rest/RiderEndpoint.java index 80953da..b2acd75 100644 --- a/src/main/java/org/teknichrono/mgp/rest/RiderEndpoint.java +++ b/src/main/java/org/teknichrono/mgp/rest/RiderEndpoint.java @@ -1,8 +1,7 @@ package org.teknichrono.mgp.rest; -import org.eclipse.microprofile.rest.client.inject.RestClient; import org.jboss.logging.Logger; -import org.teknichrono.mgp.client.RidersService; +import org.teknichrono.mgp.business.RiderService; import org.teknichrono.mgp.model.rider.RiderDetails; import javax.inject.Inject; @@ -19,8 +18,7 @@ public class RiderEndpoint { private static final Logger LOGGER = Logger.getLogger(SessionEndpoint.class); @Inject - @RestClient - RidersService riderService; + RiderService riderService; @GET @@ -30,5 +28,4 @@ public class RiderEndpoint { public RiderDetails getRider(@PathParam("legacyId") Integer legacyId) { return riderService.getRider(legacyId); } - } diff --git a/src/main/java/org/teknichrono/mgp/rest/SeasonEndpoint.java b/src/main/java/org/teknichrono/mgp/rest/SeasonEndpoint.java index 824ab5b..57ea9bf 100644 --- a/src/main/java/org/teknichrono/mgp/rest/SeasonEndpoint.java +++ b/src/main/java/org/teknichrono/mgp/rest/SeasonEndpoint.java @@ -1,7 +1,7 @@ package org.teknichrono.mgp.rest; import org.eclipse.microprofile.rest.client.inject.RestClient; -import org.teknichrono.mgp.client.ResultsService; +import org.teknichrono.mgp.client.ResultsClient; import org.teknichrono.mgp.model.result.Season; import org.teknichrono.mgp.util.CsvConverter; @@ -20,7 +20,7 @@ public class SeasonEndpoint { @Inject @RestClient - ResultsService resultsService; + ResultsClient resultsService; @Inject CsvConverter csvConverter; diff --git a/src/main/java/org/teknichrono/mgp/rest/SessionEndpoint.java b/src/main/java/org/teknichrono/mgp/rest/SessionEndpoint.java index 12210c1..066e3f9 100644 --- a/src/main/java/org/teknichrono/mgp/rest/SessionEndpoint.java +++ b/src/main/java/org/teknichrono/mgp/rest/SessionEndpoint.java @@ -2,7 +2,8 @@ import org.eclipse.microprofile.rest.client.inject.RestClient; import org.jboss.logging.Logger; -import org.teknichrono.mgp.client.ResultsService; +import org.teknichrono.mgp.business.RiderService; +import org.teknichrono.mgp.client.ResultsClient; import org.teknichrono.mgp.model.out.ClassificationDetails; import org.teknichrono.mgp.model.out.LapAnalysis; import org.teknichrono.mgp.model.out.MaxSpeed; @@ -10,11 +11,12 @@ import org.teknichrono.mgp.model.out.RaceClassificationDetails; import org.teknichrono.mgp.model.out.SessionRider; import org.teknichrono.mgp.model.result.Category; -import org.teknichrono.mgp.model.result.Classification; import org.teknichrono.mgp.model.result.Entry; import org.teknichrono.mgp.model.result.Event; +import org.teknichrono.mgp.model.result.RiderClassification; import org.teknichrono.mgp.model.result.Session; import org.teknichrono.mgp.model.result.SessionClassification; +import org.teknichrono.mgp.model.result.TestClassification; import org.teknichrono.mgp.parser.AnalysisPdfParser; import org.teknichrono.mgp.parser.MaxSpeedPdfParser; import org.teknichrono.mgp.parser.PdfParsingException; @@ -36,8 +38,8 @@ import java.util.ArrayList; import java.util.List; -import static org.teknichrono.mgp.model.result.Session.FILENAME_ANALYSIS; -import static org.teknichrono.mgp.model.result.Session.FILENAME_MAX_SPEED; +import static org.teknichrono.mgp.model.result.SessionFileType.analysis; +import static org.teknichrono.mgp.model.result.SessionFileType.maximum_speed; @Path("/session") public class SessionEndpoint { @@ -46,10 +48,10 @@ public class SessionEndpoint { @Inject @RestClient - ResultsService resultsService; + ResultsClient resultsService; @Inject - RiderEndpoint riderEndpoint; + RiderService riderService; @Inject EventEndpoint eventEndpoint; @@ -70,7 +72,7 @@ public class SessionEndpoint { AnalysisPdfParser analysisPdfParser; @Inject - CsvConverter csvConverter; + CsvConverter csvConverter; @Inject CsvConverter raceCsvConverter; @@ -94,6 +96,18 @@ public List getSessions(@PathParam("year") int year, @PathParam("eventS return resultsService.getSessions(event.id, cat.id); } + @GET + @Produces(MediaType.APPLICATION_JSON) + @Transactional + @Path("/test/{year}/{eventShortName}/{category}") + public List getTestSessions(@PathParam("year") int year, @PathParam("eventShortName") String eventShortName, @PathParam("category") String category) { + Event event = eventEndpoint.testsOfYear(year) + .stream().filter(e -> eventShortName.equalsIgnoreCase(e.short_name)).findFirst().get(); + Category cat = categoryEndpoint.categoriesOfTest(year, eventShortName) + .stream().filter(c -> c.name.toLowerCase().contains(category.toLowerCase())).findFirst().get(); + return resultsService.getSessions(event.id, cat.id); + } + @GET @Produces(MediaType.APPLICATION_JSON) @Transactional @@ -108,12 +122,12 @@ public List getEntries(@PathParam("year") int year, @PathParam("eventShor @Produces(MediaType.APPLICATION_JSON) @Transactional @Path("/{year}/{eventShortName}/{category}/ridersdetails") - public List getRidersOfEvent(@PathParam("year") int year, @PathParam("eventShortName") String eventShortName, @PathParam("category") String category) { + public List getRidersOfSession(@PathParam("year") int year, @PathParam("eventShortName") String eventShortName, @PathParam("category") String category) { List entries = getEntries(year, eventShortName, category); List riders = new ArrayList<>(); for (Entry e : entries) { SessionRider rider = new SessionRider(); - rider.fill(e, riderEndpoint.getRider(e.rider.legacy_id), year); + rider.fill(e, riderService.getRider(e.rider.legacy_id)); riders.add(rider); } return riders; @@ -128,17 +142,26 @@ public Session getSessionByName(@PathParam("year") int year, @PathParam("eventSh return sessions.stream().filter(s -> s.getSessionName(s).equalsIgnoreCase(sessionShortName)).findFirst().get(); } + @GET + @Produces(MediaType.APPLICATION_JSON) + @Transactional + @Path("/test/{year}/{eventShortName}/{category}/{session}") + public Session getTestSessionByName(@PathParam("year") int year, @PathParam("eventShortName") String eventShortName, @PathParam("category") String category, @PathParam("session") String sessionShortName) { + List sessions = getTestSessions(year, eventShortName, category); + return sessions.stream().filter(s -> s.getSessionName(s).equalsIgnoreCase(sessionShortName)).findFirst().get(); + } + @GET @Produces(MediaType.APPLICATION_JSON) @Transactional @Path("/{year}/{eventShortName}/{category}/{session}/topspeed") public List sessionTopSpeeds(@PathParam("year") int year, @PathParam("eventShortName") String eventShortName, @PathParam("category") String category, @PathParam("session") String sessionShortName) { + SessionClassification classifications = getClassifications(year, eventShortName, category, sessionShortName); Session session = getSessionByName(year, eventShortName, category, sessionShortName); - List ridersOfEvent = getRidersOfEvent(year, eventShortName, category); - if (session.session_files.keySet().contains(FILENAME_MAX_SPEED) && session.session_files.get(FILENAME_MAX_SPEED).url != null) { - String url = session.session_files.get(FILENAME_MAX_SPEED).url; + if (session.session_files.keySet().contains(maximum_speed) && session.session_files.get(maximum_speed).url != null) { + String url = session.session_files.get(maximum_speed).url; try { - return maxSpeedPdfParser.parse(url, ridersOfEvent, year); + return maxSpeedPdfParser.parse(url, classifications.classification, year); } catch (PdfParsingException e) { LOGGER.error("Error when parsing the PDF " + url, e); throw new InternalServerErrorException("Could not parse the PDF " + url, e); @@ -156,6 +179,15 @@ public SessionClassification getClassifications(@PathParam("year") int year, @Pa return resultsService.getClassification(sessionMatch.id); } + @GET + @Produces(MediaType.APPLICATION_JSON) + @Transactional + @Path("/test/{year}/{eventShortName}/{category}/{session}/results") + public TestClassification getTestClassifications(@PathParam("year") int year, @PathParam("eventShortName") String eventShortName, @PathParam("category") String category, @PathParam("session") String sessionShortName) { + Session sessionMatch = getTestSessionByName(year, eventShortName, category, sessionShortName); + return resultsService.getTestClassification(sessionMatch.id); + } + @GET @Path("/{year}/{eventShortName}/{category}/{session}/results/csv") @@ -163,7 +195,7 @@ public SessionClassification getClassifications(@PathParam("year") int year, @Pa @Transactional public Response listAllToCsv(@PathParam("year") int year, @PathParam("eventShortName") String eventShortName, @PathParam("category") String category, @PathParam("session") String sessionShortName) { try { - String csvResults = csvConverter.convertToCsv(this.getClassifications(year, eventShortName, category, sessionShortName).classification, Classification.class); + String csvResults = csvConverter.convertToCsv(this.getClassifications(year, eventShortName, category, sessionShortName).classification, RiderClassification.class); String filename = String.format("sessions-%d-%s-%s-%s.csv", year, eventShortName.toLowerCase(), category.toLowerCase(), sessionShortName.toLowerCase()); return Response.ok().entity(csvResults).header("Content-Disposition", "attachment;filename=" + filename).build(); } catch (IOException e) { @@ -177,12 +209,11 @@ public Response listAllToCsv(@PathParam("year") int year, @PathParam("eventShort @Path("/{year}/{eventShortName}/{category}/{session}/results/details") public List getClassificationsPdfDetails(@PathParam("year") int year, @PathParam("eventShortName") String eventShortName, @PathParam("category") String category, @PathParam("session") String sessionShortName) { SessionClassification classifications = getClassifications(year, eventShortName, category, sessionShortName); - List ridersOfEvent = getRidersOfEvent(year, eventShortName, category); try { if (sessionShortName.equalsIgnoreCase(Session.RACE_TYPE)) { - return raceResultsPdfParser.parse(classifications, ridersOfEvent); + return raceResultsPdfParser.parse(classifications); } else { - return practiceResultsPdfParser.parse(classifications, ridersOfEvent); + return practiceResultsPdfParser.parse(classifications); } } catch (PdfParsingException e) { LOGGER.error("Error when parsing the PDF " + classifications.file, e); @@ -190,6 +221,19 @@ public List getClassificationsPdfDetails(@PathP } } + @GET + @Produces(MediaType.APPLICATION_JSON) + @Transactional + @Path("/test/{year}/{eventShortName}/{category}/{session}/results/details") + public List getTestClassificationsPdfDetails(@PathParam("year") int year, @PathParam("eventShortName") String eventShortName, @PathParam("category") String category, @PathParam("session") String sessionShortName) { + TestClassification classifications = getTestClassifications(year, eventShortName, category, sessionShortName); + try { + return practiceResultsPdfParser.parse(classifications); + } catch (PdfParsingException e) { + LOGGER.error("Error when parsing the PDF " + classifications.files.classification, e); + throw new InternalServerErrorException("Could not parse the PDF " + classifications.files.classification, e); + } + } @GET @Path("/{year}/{eventShortName}/{category}/{session}/results/details/csv") @@ -218,11 +262,30 @@ public Response getClassificationsPdfDetailsToCsv(@PathParam("year") int year, @ @Path("/{year}/{eventShortName}/{category}/{session}/analysis") public List getAnalysis(@PathParam("year") int year, @PathParam("eventShortName") String eventShortName, @PathParam("category") String category, @PathParam("session") String sessionShortName) { Session session = getSessionByName(year, eventShortName, category, sessionShortName); - List ridersOfEvent = getRidersOfEvent(year, eventShortName, category); - if (session.session_files.keySet().contains(FILENAME_ANALYSIS) && session.session_files.get(FILENAME_ANALYSIS).url != null) { - String url = session.session_files.get(FILENAME_ANALYSIS).url; + SessionClassification classifications = getClassifications(year, eventShortName, category, sessionShortName); + if (session.session_files.keySet().contains(analysis) && session.session_files.get(analysis).url != null) { + String url = session.session_files.get(analysis).url; + try { + return analysisPdfParser.parse(url, classifications.classification); + } catch (PdfParsingException e) { + LOGGER.error("Error when parsing the PDF " + url, e); + throw new InternalServerErrorException("Could not parse the PDF " + url, e); + } + } + throw new NotFoundException(); + } + + @GET + @Produces(MediaType.APPLICATION_JSON) + @Transactional + @Path("/test/{year}/{eventShortName}/{category}/{session}/analysis") + public List getTestAnalysis(@PathParam("year") int year, @PathParam("eventShortName") String eventShortName, @PathParam("category") String category, @PathParam("session") String sessionShortName) { + Session session = getTestSessionByName(year, eventShortName, category, sessionShortName); + TestClassification classifications = getTestClassifications(year, eventShortName, category, sessionShortName); + if (session.session_files.keySet().contains(analysis) && session.session_files.get(analysis).url != null) { + String url = session.session_files.get(analysis).url; try { - return analysisPdfParser.parse(url, ridersOfEvent); + return analysisPdfParser.parse(url, classifications.classification); } catch (PdfParsingException e) { LOGGER.error("Error when parsing the PDF " + url, e); throw new InternalServerErrorException("Could not parse the PDF " + url, e); diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 7eb2ced..3b2774d 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -10,9 +10,9 @@ quarkus.http.cors.access-control-max-age=24H ## Kubernetes quarkus.application.name=mgp-timings # Clients URLs -quarkus.rest-client.results-api.url=https://www.motogp.com/api/results-front/be/results-api +quarkus.rest-client.results-api.url=http://localhost:8089/api/results-front/be/results-api quarkus.rest-client.results-api.scope=javax.inject.Singleton -quarkus.rest-client.riders-api.url=https://www.motogp.com/api/results-front/be/riders-api +quarkus.rest-client.riders-api.url=http://localhost:8089/api/results-front/be/riders-api quarkus.rest-client.riders-api.scope=javax.inject.Singleton # Swagger / Open API quarkus.smallrye-openapi.path=/swagger diff --git a/src/test/java/org/teknichrono/mgp/it/TestCategoryEndpoint.java b/src/test/java/org/teknichrono/mgp/it/TestCategoryEndpoint.java index 9caa3a5..7ce3746 100644 --- a/src/test/java/org/teknichrono/mgp/it/TestCategoryEndpoint.java +++ b/src/test/java/org/teknichrono/mgp/it/TestCategoryEndpoint.java @@ -2,8 +2,10 @@ import io.quarkus.test.common.QuarkusTestResource; import io.quarkus.test.junit.QuarkusTest; +import org.assertj.core.api.Assertions; import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; +import org.teknichrono.mgp.model.result.Category; import static io.restassured.RestAssured.given; import static org.hamcrest.CoreMatchers.containsStringIgnoringCase; @@ -40,4 +42,39 @@ public void containsThreeCategories() { } + @Test + public void listsAllCategoriesOfTest() { + given() + .when().get("/category/test/2022/JE1") + .then() + .statusCode(200) + .body("$.size()", is(1), + "[0].id", is("e8c110ad-64aa-4e8e-8a86-f2f152f6a942"), + "[0].name", containsStringIgnoringCase("motogp") + ); + } + + + @Test + public void listsDetailsOfCategoryOfEvent() { + Category cat = given() + .when().get("/category/2021/ITA/MOTO3") + .then() + .statusCode(200).extract().as(Category.class); + Assertions.assertThat(cat.id).isNotNull(); + Assertions.assertThat(cat.name).containsIgnoringCase("moto3"); + } + + + @Test + public void listsDetailsOfCategoryOfTest() { + Category cat = given() + .when().get("/category/test/2022/JE1/GP") + .then() + .statusCode(200).extract().as(Category.class); + Assertions.assertThat(cat.id).isNotNull(); + Assertions.assertThat(cat.name).containsIgnoringCase("motogp"); + } + + } diff --git a/src/test/java/org/teknichrono/mgp/it/TestEventEndpoint.java b/src/test/java/org/teknichrono/mgp/it/TestEventEndpoint.java index dab239d..d91e023 100644 --- a/src/test/java/org/teknichrono/mgp/it/TestEventEndpoint.java +++ b/src/test/java/org/teknichrono/mgp/it/TestEventEndpoint.java @@ -2,8 +2,10 @@ import io.quarkus.test.common.QuarkusTestResource; import io.quarkus.test.junit.QuarkusTest; +import org.assertj.core.api.Assertions; import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; +import org.teknichrono.mgp.model.result.Event; import java.util.List; @@ -41,4 +43,59 @@ public void listsAllEventsNames() { assertThat(list.size()).isEqualTo(18); assertThat(list).anyMatch(s -> s.length() == 3); } + + + @Test + public void listsAllTests() { + given() + .when().get("/event/test/2022") + .then() + .statusCode(200) + .body("$.size()", is(7), + "[0].id", is("aacf14f8-fd7f-42d3-be6e-54add0eab84f"), + "[0].short_name", is("JE1"), + "[0].country.iso", is("ES"), + "[0].event_files.size()", is(5), + "[0].circuit.place", is("Jerez de la Frontera") + ); + } + + @Test + public void listsAllTestsNames() { + List list = given() + .when().get("/event/test/2022/names") + .then() + .statusCode(200).extract().as(List.class); + assertThat(list.size()).isEqualTo(7); + assertThat(list).anyMatch(s -> s.length() == 3); + } + + @Test + public void getOneParticularEvent() { + Event event = given() + .when().get("/event/2021/QAT") + .then() + .statusCode(200).extract().as(Event.class); + Assertions.assertThat(event).isNotNull(); + Assertions.assertThat(event.id).isEqualToIgnoringCase("20bb257f-b1ba-4289-9030-c4eb528c6155"); + Assertions.assertThat(event.short_name).isEqualToIgnoringCase("QAT"); + Assertions.assertThat(event.country.iso).isEqualToIgnoringCase("QA"); + Assertions.assertThat(event.event_files).isNotEmpty(); + Assertions.assertThat(event.circuit.place).containsIgnoringCase("Doha"); + + } + + @Test + public void getOneParticularTest() { + Event event = given() + .when().get("/event/test/2022/JE1") + .then() + .statusCode(200).extract().as(Event.class); + Assertions.assertThat(event).isNotNull(); + Assertions.assertThat(event.id).isEqualToIgnoringCase("aacf14f8-fd7f-42d3-be6e-54add0eab84f"); + Assertions.assertThat(event.short_name).isEqualToIgnoringCase("JE1"); + Assertions.assertThat(event.country.iso).isEqualToIgnoringCase("ES"); + Assertions.assertThat(event.event_files).isNotEmpty(); + Assertions.assertThat(event.circuit.place).containsIgnoringCase("Jerez"); + } } diff --git a/src/test/java/org/teknichrono/mgp/it/TestResourcesIsolation.java b/src/test/java/org/teknichrono/mgp/it/TestResourcesIsolation.java new file mode 100644 index 0000000..8f8238b --- /dev/null +++ b/src/test/java/org/teknichrono/mgp/it/TestResourcesIsolation.java @@ -0,0 +1,42 @@ +package org.teknichrono.mgp.it; + +import org.jboss.logging.Logger; +import org.junit.jupiter.api.Test; + +import java.io.File; +import java.nio.file.Files; +import java.nio.file.Paths; +import java.util.stream.Stream; + +import static org.junit.jupiter.api.Assertions.fail; + +public class TestResourcesIsolation { + + private static final Logger LOGGER = Logger.getLogger(TestResourcesIsolation.class); + + @Test + public void makeSureAllResourcesUseWiremock() throws Exception { + ensureIsolation("__files"); + } + + private void ensureIsolation(String resourcesPath) throws Exception { + LOGGER.info("Testing " + resourcesPath); + String path = Thread.currentThread().getContextClassLoader().getResource(resourcesPath).getPath(); + File[] files = new File(path).listFiles(); + for (File file : files) { + if (file.isDirectory()) { + ensureIsolation(resourcesPath + File.separator + file.getName()); + } else { + if (file.getPath().endsWith(".json")) { + try (Stream s = Files.lines(Paths.get(file.toURI()))) { + if (s.anyMatch(it -> it.contains("resources.motogp.com"))) { + LOGGER.error("The file " + file.getPath() + " contains a URL that is not isolated for tests"); + fail(); + } + } + } + } + } + } + +} diff --git a/src/test/java/org/teknichrono/mgp/it/TestRiderEndpoint.java b/src/test/java/org/teknichrono/mgp/it/TestRiderEndpoint.java new file mode 100644 index 0000000..ccad85e --- /dev/null +++ b/src/test/java/org/teknichrono/mgp/it/TestRiderEndpoint.java @@ -0,0 +1,30 @@ +package org.teknichrono.mgp.it; + +import io.quarkus.test.common.QuarkusTestResource; +import io.quarkus.test.junit.QuarkusTest; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; +import org.teknichrono.mgp.model.rider.RiderDetails; + +import static io.restassured.RestAssured.given; +import static org.assertj.core.api.Assertions.*; + +@Tag("integration") +@QuarkusTest +@QuarkusTestResource(WireMockExtensions.class) +class TestRiderEndpoint { + + + @Test + public void getRiderInfo() { + RiderDetails riderDetails = given() + .when().get("/rider/8150") + .then() + .statusCode(200) + .statusCode(200).extract().as(RiderDetails.class); + assertThat(riderDetails.name).isEqualTo("Alex"); + assertThat(riderDetails.surname).isEqualTo("Rins"); + assertThat(riderDetails.country.iso).isEqualTo("ES"); + assertThat(riderDetails.career.size()).isEqualTo(11); + } +} \ No newline at end of file diff --git a/src/test/java/org/teknichrono/mgp/it/TestSessionEndpoint.java b/src/test/java/org/teknichrono/mgp/it/TestSessionEndpoint.java index 5301d4d..fc2a336 100644 --- a/src/test/java/org/teknichrono/mgp/it/TestSessionEndpoint.java +++ b/src/test/java/org/teknichrono/mgp/it/TestSessionEndpoint.java @@ -10,7 +10,9 @@ import org.teknichrono.mgp.model.out.LapAnalysis; import org.teknichrono.mgp.model.out.PracticeClassificationDetails; import org.teknichrono.mgp.model.out.RaceClassificationDetails; +import org.teknichrono.mgp.model.out.SessionRider; import org.teknichrono.mgp.model.result.SessionClassification; +import org.teknichrono.mgp.model.result.TestClassification; import org.teknichrono.mgp.util.CsvConverter; import java.io.IOException; @@ -45,6 +47,37 @@ public void listsAllSessionsOfCategoryOfEvent() { "[0].circuit", containsStringIgnoringCase("Lusail")); } + @Test + public void listsAllSessionsOfCategoryOfTest() { + given() + .when().get("/session/test/2022/JE1/GP") + .then() + .statusCode(200) + .body("$.size()", is(2), + "[0].id", is("baaef7a9-8f8c-4f5c-9e2d-40192824e66b"), + "[0].type", containsStringIgnoringCase("FP"), + "[0].number", is(1), + "[0].circuit", containsStringIgnoringCase("Circuito de Jerez - Ángel Nieto")); + } + + @Test + public void listRidersOfCategoryOfEvent() { + List riders = given() + .when().get("/session/2021/QAT/GP/ridersdetails") + .then() + .statusCode(200).extract().as(new TypeRef>() { + }); + assertThat(riders).isNotEmpty(); + assertThat(riders).hasSize(23); + + assertThat(riders).anyMatch(rider -> rider.name != null && + rider.surname != null && + rider.country != null && rider.country.iso != null && rider.country.name != null && + rider.biography.text != null && + rider.birth_city != null && + rider.physical_attributes != null); + } + @Test public void parsesMaxSpeedPdf() { List speeds = given() @@ -92,7 +125,19 @@ public void getSessionClassification() { assertThat(classification.classification.get(0).rider.full_name).containsIgnoringCase("Franco"); assertThat(classification.classification.get(0).total_laps).isEqualTo(17); assertThat(classification.file).isNotNull(); - assertThat(classification.records.stream().filter(r -> r.type.equalsIgnoreCase("bestLap")).findFirst().get().rider.full_name).containsIgnoringCase("Marquez"); + assertThat(classification.records.stream().filter(r -> r.type.equalsIgnoreCase("bestLap")).findFirst().get().rider.full_name).containsIgnoringCase("Lorenzo"); + } + + @Test + public void getTestSessionClassification() { + TestClassification classification = given() + .when().get("/session/test/2022/JE1/GP/FP2/results") + .then() + .statusCode(200).extract().as(TestClassification.class); + assertThat(classification.classification.size()).isEqualTo(29); + assertThat(classification.classification.get(0).rider.full_name).containsIgnoringCase("Francesco"); + assertThat(classification.classification.get(0).total_laps).isEqualTo(42); + assertThat(classification.files).isNotNull(); } @@ -229,12 +274,12 @@ public void getPracticeClassificationDetails() { assertThat(details.get(0).constructor).containsIgnoringCase("Yamaha"); assertThat(details.get(0).totalLaps).isEqualTo(17); assertThat(details.get(0).gapToFirst).isEqualTo(0f); - assertThat(details.get(0).bestLapTime).isEqualTo("1'54.921"); - assertThat(details.get(0).bestLapNumber).isEqualTo(16); - assertThat(details.get(0).topSpeed).isEqualTo(342.8f); + assertThat(details.get(0).bestLapTime).isEqualTo("1'54.676"); + assertThat(details.get(0).bestLapNumber).isEqualTo(14); + assertThat(details.get(0).topSpeed).isEqualTo(343.9f); assertThat(details.get(1).constructor).isEqualTo("Aprilia"); - assertThat(details.get(1).gapToPrevious).isEqualTo(0.125f); + assertThat(details.get(1).gapToPrevious).isEqualTo(0.165f); assertThat(details.get(1).nation).isEqualTo("SPA"); assertTrue(details.stream().allMatch(d -> d.position > 0)); @@ -255,6 +300,54 @@ public void getPracticeClassificationDetails() { } } + @Test + public void getTestClassificationDetails() { + List details = given() + .when().get("/session/test/2022/JE1/GP/FP2/results/details") + .then() + .statusCode(200).extract().as(new TypeRef>() { + }); + + + assertThat(details.size()).isEqualTo(29); + assertThat(details.get(0).position).isEqualTo(1); + assertThat(details.get(0).riderNumber).isEqualTo(63); + assertThat(details.get(0).riderName).containsIgnoringCase("BAGNAIA"); + assertThat(details.get(0).nation).isEqualTo("ITA"); + assertThat(details.get(0).team).containsIgnoringCase("Ducati"); + assertThat(details.get(0).constructor).containsIgnoringCase("Ducati"); + assertThat(details.get(0).totalLaps).isEqualTo(42); + assertThat(details.get(0).gapToFirst).isEqualTo(0f); + assertThat(details.get(0).bestLapTime).isEqualTo("1'36.872"); + assertThat(details.get(0).bestLapNumber).isEqualTo(12); + assertThat(details.get(0).topSpeed).isEqualTo(295.8f); + + assertThat(details.get(1).constructor).isEqualTo("Yamaha"); + assertThat(details.get(1).gapToPrevious).isEqualTo(0.452f); + assertThat(details.get(1).nation).isEqualTo("FRA"); + + assertTrue(details.stream().allMatch(d -> d.position != null ? d.position > 0 : true)); + assertTrue(details.stream().allMatch(d -> d.riderNumber > 0)); + assertTrue(details.stream().allMatch(d -> d.riderName != null)); + assertTrue(details.stream().allMatch(d -> d.nation.length() == 3)); + assertTrue(details.stream().allMatch(d -> d.team != null)); + assertTrue(details.stream().allMatch(d -> d.constructor != null)); + assertTrue(details.stream().allMatch(d -> d.totalLaps == null || d.totalLaps > 0)); + assertTrue(details.stream().allMatch(d -> d.bestLapNumber == null || d.bestLapNumber > 0)); + assertTrue(details.stream().allMatch(d -> d.topSpeed == null || d.topSpeed > 0)); + + float current = 0f; + for (PracticeClassificationDetails d : details) { + if (d.position != null) { + assertThat(d.gapToFirst).isGreaterThanOrEqualTo(current); + current = d.gapToFirst; + } else { + assertThat(d.gapToFirst).isEqualTo(0f); + current = Float.MAX_VALUE; + } + } + } + @Test public void getPracticeClassificationDetailsAsCsv() { String content = given() @@ -301,7 +394,7 @@ public void getPracticeAnalysis() { assertThat(details.size()).isEqualTo(313); assertThat(details.get(0).number).isEqualTo(21); assertThat(details.get(0).rider).containsIgnoringCase("Morbidelli"); - assertThat(details.get(0).nation).isEqualTo("ITA"); + assertThat(details.get(0).nation).isEqualTo("IT"); assertThat(details.get(0).team).containsIgnoringCase("Yamaha"); assertThat(details.get(0).motorcycle).containsIgnoringCase("Yamaha"); assertThat(details.get(0).lapNumber).isEqualTo(1); @@ -316,7 +409,7 @@ public void getPracticeAnalysis() { assertTrue(details.stream().allMatch(l -> l.number > 0)); assertTrue(details.stream().allMatch(l -> l.rider != null)); - assertTrue(details.stream().allMatch(l -> l.nation.length() == 3)); + assertTrue(details.stream().allMatch(l -> l.nation.length() == 2)); assertTrue(details.stream().allMatch(l -> l.team != null)); assertTrue(details.stream().allMatch(l -> l.motorcycle != null)); assertTrue(details.stream().allMatch(l -> l.lapNumber > 0)); @@ -377,7 +470,7 @@ public void getRaceAnalysis() { assertThat(details.size()).isEqualTo(439); assertThat(details.get(0).number).isEqualTo(12); assertThat(details.get(0).rider).containsIgnoringCase("Maverick"); - assertThat(details.get(0).nation).isEqualTo("SPA"); + assertThat(details.get(0).nation).isEqualTo("ES"); assertThat(details.get(0).team).containsIgnoringCase("Yamaha"); assertThat(details.get(0).motorcycle).containsIgnoringCase("Yamaha"); assertThat(details.get(0).lapNumber).isEqualTo(1); @@ -393,7 +486,7 @@ public void getRaceAnalysis() { assertTrue(details.stream().allMatch(l -> l.number > 0)); assertTrue(details.stream().allMatch(l -> l.rider != null)); - assertTrue(details.stream().allMatch(l -> l.nation.length() == 3)); + assertTrue(details.stream().allMatch(l -> l.nation.length() == 2)); assertTrue(details.stream().allMatch(l -> l.team != null)); assertTrue(details.stream().allMatch(l -> l.motorcycle != null)); assertTrue(details.stream().allMatch(l -> l.lapNumber > 0)); diff --git a/src/test/java/org/teknichrono/mgp/it/WireMockExtensions.java b/src/test/java/org/teknichrono/mgp/it/WireMockExtensions.java index 56e9c2c..6e3c321 100644 --- a/src/test/java/org/teknichrono/mgp/it/WireMockExtensions.java +++ b/src/test/java/org/teknichrono/mgp/it/WireMockExtensions.java @@ -3,9 +3,8 @@ import com.github.tomakehurst.wiremock.WireMockServer; import io.quarkus.test.common.QuarkusTestResourceLifecycleManager; -import java.util.Arrays; +import java.io.File; import java.util.HashMap; -import java.util.List; import java.util.Map; import static com.github.tomakehurst.wiremock.client.WireMock.aResponse; @@ -28,10 +27,12 @@ public Map start() { stubEvents(); stubCategories(); stubSessions(); + stubTestSessions(); stubClassifications(); + stubTestClassifications(); stubRiders(); - //stubFor(get(urlMatching(".*")).atPriority(10).willReturn(aResponse().proxiedFrom("https://www.motogp.com/api/results-front/be/results-api"))); + //stubFor(get(urlMatching(".*")).atPriority(10).willReturn(aResponse().proxiedFrom("http://localhost:8089/api/results-front/be/results-api"))); Map config = new HashMap<>(); config.put("quarkus.rest-client.results-api.url", wireMockServer.baseUrl()); @@ -41,12 +42,15 @@ public Map start() { } private void stubRiders() { - List ridersLegacyId = Arrays.asList(158, 6267, 6854, 6976, 7086, 7199, 7236, 7246, 7409, 7444, 7646, 7741, 8049, 8141, 8146, 8148, 8150, 8173, 8273, 8295, 8431, 8520, 8947); - for (Integer riderLegacyId : ridersLegacyId) { - stubFor(get(urlEqualTo("/riders/" + riderLegacyId)) + String path = Thread.currentThread().getContextClassLoader().getResource("__files/rider").getPath(); + File[] ridersFiles = new File(path).listFiles(); + for (File f : ridersFiles) { + String filename = f.getName(); + String riderNumber = filename.replaceAll(".json", ""); + stubFor(get(urlEqualTo("/riders/" + riderNumber)) .willReturn(aResponse() .withHeader("Content-Type", "application/json") - .withBodyFile("rider/" + riderLegacyId + ".json"))); + .withBodyFile("rider/" + filename))); } } @@ -81,6 +85,18 @@ private void stubSessions() { .withBodyFile("pdf/Analysis-rac.pdf"))); } + private void stubTestSessions() { + stubFor(get(urlEqualTo("/event/aacf14f8-fd7f-42d3-be6e-54add0eab84f/category/e8c110ad-64aa-4e8e-8a86-f2f152f6a942/sessions")) + .willReturn(aResponse() + .withHeader("Content-Type", "application/json") + .withBodyFile("sessions-test-2022-je1-gp.json"))); + stubFor(get(urlEqualTo("/files/testresults/2022_JEREZ_MotoGP____OFFICIAL_TEST_classification_2.pdf")) + .willReturn(aResponse() + .withHeader("Content-Type", "application/pdf") + .withBodyFile("pdf/2022_JEREZ_MotoGP____OFFICIAL_TEST_classification_2.pdf"))); + + } + private void stubClassifications() { stubFor(get(urlEqualTo("/session/fae273c4-defb-4bac-84c8-e3283c5b088b/classifications")) .willReturn(aResponse() @@ -94,6 +110,10 @@ private void stubClassifications() { .willReturn(aResponse() .withHeader("Content-Type", "application/json") .withBodyFile("classification-fp2.json"))); + stubFor(get(urlEqualTo("/session/117144ae-2a0b-4d42-8d89-ab96253470d2/classifications")) + .willReturn(aResponse() + .withHeader("Content-Type", "application/json") + .withBodyFile("classifications-qat-21-fp1-gp.json"))); stubFor(get(urlEqualTo("/files/results/2021/QAT/MotoGP/RAC/Classification.pdf")) .willReturn(aResponse() .withHeader("Content-Type", "application/pdf") @@ -102,10 +122,21 @@ private void stubClassifications() { .willReturn(aResponse() .withHeader("Content-Type", "application/pdf") .withBodyFile("pdf/Classification-fp1.pdf"))); + stubFor(get(urlEqualTo("/files/results/2021/QAT/MotoGP/FP3/Classification.pdf")) + .willReturn(aResponse() + .withHeader("Content-Type", "application/pdf") + .withBodyFile("pdf/Classification-qat-mgp-fp3.pdf"))); + } + private void stubTestClassifications() { + stubFor(get(urlEqualTo("/session/7aed8f0a-10b4-4a0e-9ef8-964f34687718/test-classifications")) + .willReturn(aResponse() + .withHeader("Content-Type", "application/json") + .withBodyFile("classifications-test-je1-gp-fp2.json"))); } + private void stubSeasons() { stubFor(get(urlEqualTo("/seasons")) .willReturn(aResponse() @@ -123,6 +154,10 @@ private void stubEvents() { .willReturn(aResponse() .withHeader("Content-Type", "application/json") .withBodyFile("events.json"))); + stubFor(get(urlEqualTo("/season/db8dc197-c7b2-4c1b-b3a4-6dc534c014ef/events?test=true")) + .willReturn(aResponse() + .withHeader("Content-Type", "application/json") + .withBodyFile("events-tests-2022.json"))); } private void stubCategories() { @@ -134,6 +169,10 @@ private void stubCategories() { .willReturn(aResponse() .withHeader("Content-Type", "application/json") .withBodyFile("category-ita.json"))); + stubFor(get(urlEqualTo("/event/aacf14f8-fd7f-42d3-be6e-54add0eab84f/categories")) + .willReturn(aResponse() + .withHeader("Content-Type", "application/json") + .withBodyFile("category-JE1-2022.json"))); } @Override diff --git a/src/test/java/org/teknichrono/mgp/parser/MaxSpeedPdfParserTest.java b/src/test/java/org/teknichrono/mgp/parser/MaxSpeedPdfParserTest.java index 0a6ade7..e2bcad6 100644 --- a/src/test/java/org/teknichrono/mgp/parser/MaxSpeedPdfParserTest.java +++ b/src/test/java/org/teknichrono/mgp/parser/MaxSpeedPdfParserTest.java @@ -3,10 +3,10 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import org.teknichrono.mgp.model.out.MaxSpeed; -import org.teknichrono.mgp.model.out.SessionRider; -import org.teknichrono.mgp.model.rider.RiderConstructor; -import org.teknichrono.mgp.model.rider.RiderSeason; -import org.teknichrono.mgp.model.rider.RiderTeam; +import org.teknichrono.mgp.model.result.Constructor; +import org.teknichrono.mgp.model.result.Rider; +import org.teknichrono.mgp.model.result.RiderClassification; +import org.teknichrono.mgp.model.result.Team; import java.util.ArrayList; @@ -25,25 +25,21 @@ public void cantReadPdf() { @Test public void canReadLine() throws PdfParsingException { MaxSpeedPdfParser parser = new MaxSpeedPdfParser(); - ArrayList riderDetails = getRiderDetails(); + ArrayList riderDetails = getRiderDetails(); MaxSpeed maxSpeed = parser.parseLine("33 Brad BINDER RSA Red Bull KTM Factory Racing KTM 347.2", riderDetails, 2022); Assertions.assertTrue(!maxSpeed.testIfIncomplete()); } - private ArrayList getRiderDetails() { - ArrayList riderDetails = new ArrayList<>(); - SessionRider brad = new SessionRider(); - brad.surname = "Binder"; - brad.name = "Brad"; - RiderSeason season = new RiderSeason(); - season.sponsored_team = "Red Bull KTM Factory Racing"; - season.season = 2022; - season.number = 33; - RiderConstructor ducati = new RiderConstructor(); - ducati.name = "Ducati"; - season.team = new RiderTeam(); - season.team.constructor = ducati; - brad.season = season; + private ArrayList getRiderDetails() { + ArrayList riderDetails = new ArrayList<>(); + RiderClassification brad = new RiderClassification(); + brad.rider = new Rider(); + brad.rider.full_name = "Brad Binder"; + brad.team = new Team(); + brad.team.name = "Red Bull KTM Factory Racing"; + brad.rider.number = 33; + brad.constructor = new Constructor(); + brad.constructor.name = "Ducati"; riderDetails.add(brad); return riderDetails; } @@ -52,7 +48,7 @@ private ArrayList getRiderDetails() { @Test public void cantReadLine() { MaxSpeedPdfParser parser = new MaxSpeedPdfParser(); - ArrayList riderDetails = getRiderDetails(); + ArrayList riderDetails = getRiderDetails(); Assertions.assertThrows(PdfParsingException.class, () -> { parser.parseLine("33 Brad BINDER RSA Red Bull KTM Factory Racing KTM 347.2 somethingelse", new ArrayList<>(), 2022); }); diff --git a/src/test/resources/__files/category-JE1-2022.json b/src/test/resources/__files/category-JE1-2022.json new file mode 100644 index 0000000..af5b655 --- /dev/null +++ b/src/test/resources/__files/category-JE1-2022.json @@ -0,0 +1,7 @@ +[ + { + "id": "e8c110ad-64aa-4e8e-8a86-f2f152f6a942", + "legacy_id": 3, + "name": "MotoGP\u2122" + } +] diff --git a/src/test/resources/__files/classifications-rac.json b/src/test/resources/__files/classifications-rac.json index 6e58202..f670c1e 100644 --- a/src/test/resources/__files/classifications-rac.json +++ b/src/test/resources/__files/classifications-rac.json @@ -1,581 +1,945 @@ { "classification": [ { - "gap": { - "first": 0.0 - }, + "id": "6244e888-db88-4b13-ba26-89e56ccf0326", "position": 1, "rider": { + "id": "66ee98b2-239c-487f-8913-aab8493ce280", + "full_name": "Maverick Vi\u00f1ales", "country": { "iso": "ES", "name": "Spain", "region_iso": "" }, - "full_name": "Maverick Viñales", - "id": "66ee98b2-239c-487f-8913-aab8493ce280", - "legacy_id": 7409 + "legacy_id": 7409, + "number": 12 }, - "status": "INSTND", "team": { - "id": "e37b36d6-3701-49cf-961f-7734b190d57f", + "id": "425a4e35-f6cf-4bfe-8ccf-9df37f62c17a", + "name": "Monster Energy Yamaha MotoGP", "legacy_id": 62, - "name": "Pramac Racing" + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "babb4c4c-3608-4811-93ad-3b88cc407547", + "name": "Yamaha", + "legacy_id": 3 + }, + "average_speed": 167.1, + "gap": { + "first": "0.000", + "lap": "0" }, - "total_laps": 22 + "total_laps": 22, + "time": "42:28.6630", + "points": 25, + "status": "INSTND" }, { - "gap": { - "first": 1.092 - }, + "id": "a200828a-8c95-4310-8942-2cea8dcbd75f", "position": 2, "rider": { + "id": "487440af-cfa9-478a-903b-4e893ee18d3a", + "full_name": "Johann Zarco", "country": { "iso": "FR", "name": "France", "region_iso": "" }, - "full_name": "Johann Zarco", - "id": "487440af-cfa9-478a-903b-4e893ee18d3a", - "legacy_id": 7236 + "legacy_id": 7236, + "number": 5 }, - "status": "INSTND", "team": { - "id": "1862b786-5bc8-4fdb-a503-d45bead09ec8", + "id": "52cfd159-1f1a-42fb-828a-a38006ab52fe", + "name": "Pramac Racing", "legacy_id": 59, - "name": "RW Racing GP" + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "b9d93efb-3cd0-4681-9de4-c412a866d568", + "name": "Ducati", + "legacy_id": 110 + }, + "average_speed": 167.1, + "gap": { + "first": "1.092", + "lap": "0" }, - "total_laps": 22 + "total_laps": 22, + "time": "42:29.7550", + "points": 20, + "status": "INSTND" }, { - "gap": { - "first": 1.129 - }, + "id": "5c888664-a30e-45bd-9c08-910983e6c0ed", "position": 3, "rider": { + "id": "9cb55304-0ac1-401c-beb6-1a4f445018a4", + "full_name": "Francesco Bagnaia", "country": { "iso": "IT", "name": "Italy", "region_iso": "" }, - "full_name": "Francesco Bagnaia", - "id": "9cb55304-0ac1-401c-beb6-1a4f445018a4", - "legacy_id": 8273 + "legacy_id": 8273, + "number": 63 }, - "status": "INSTND", "team": { - "id": "e2c1ded7-1280-4096-a2fb-cae4e837ebf1", + "id": "046fbc13-6064-42ba-b38e-6c625e724802", + "name": "Ducati Lenovo Team", "legacy_id": 76, - "name": "Team SUZUKI ECSTAR" + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "b9d93efb-3cd0-4681-9de4-c412a866d568", + "name": "Ducati", + "legacy_id": 110 + }, + "average_speed": 167.1, + "gap": { + "first": "1.129", + "lap": "0" }, - "total_laps": 22 + "total_laps": 22, + "time": "42:29.7920", + "points": 16, + "status": "INSTND" }, { - "gap": { - "first": 1.222 - }, + "id": "a296b1bd-5f85-4203-8d6c-1a234bdb0a7b", "position": 4, "rider": { + "id": "9a441928-d1af-452d-afce-fa028c044932", + "full_name": "Joan Mir", "country": { "iso": "ES", "name": "Spain", "region_iso": "" }, - "full_name": "Joan Mir", - "id": "9a441928-d1af-452d-afce-fa028c044932", - "legacy_id": 8141 + "legacy_id": 8141, + "number": 36 }, - "status": "INSTND", "team": { - "id": "3acdec3d-7e07-4686-8611-55a92350acbe", + "id": "5dd8fd40-fd87-42e7-bc75-69f3fba4f7de", + "name": "Team SUZUKI ECSTAR", "legacy_id": 70, - "name": "KTM Test Team" + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "e1824280-b485-4f63-b176-834bbf47aa1c", + "name": "Suzuki", + "legacy_id": 2 + }, + "average_speed": 167.1, + "gap": { + "first": "1.222", + "lap": "0" }, - "total_laps": 22 + "total_laps": 22, + "time": "42:29.8850", + "points": 13, + "status": "INSTND" }, { - "gap": { - "first": 3.03 - }, + "id": "561a3e6c-25d3-45e6-ae81-116c65fc5bab", "position": 5, "rider": { + "id": "fcdd5500-a769-4ff4-8b9e-080d1849ff42", + "full_name": "Fabio Quartararo", "country": { "iso": "FR", "name": "France", "region_iso": "" }, - "full_name": "Fabio Quartararo", - "id": "fcdd5500-a769-4ff4-8b9e-080d1849ff42", - "legacy_id": 8520 + "legacy_id": 8520, + "number": 20 }, - "status": "INSTND", "team": { - "id": "2e041f95-0faa-4c9d-b575-e7eb376836c3", + "id": "6658985c-17d7-4705-9b64-5e96beb9adf8", + "name": "Monster Energy Yamaha MotoGP", "legacy_id": 63, - "name": "Honda Racing Corporation" + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "babb4c4c-3608-4811-93ad-3b88cc407547", + "name": "Yamaha", + "legacy_id": 3 + }, + "average_speed": 166.9, + "gap": { + "first": "3.030", + "lap": "0" }, - "total_laps": 22 + "total_laps": 22, + "time": "42:31.6930", + "points": 11, + "status": "INSTND" }, { - "gap": { - "first": 3.357 - }, + "id": "bf4c35c2-1d86-41ef-b2ac-f43f33c01919", "position": 6, "rider": { + "id": "56475aa3-f3d1-485a-b6db-ca1149e1b6fa", + "full_name": "Alex Rins", "country": { "iso": "ES", "name": "Spain", "region_iso": "" }, - "full_name": "Alex Rins", - "id": "56475aa3-f3d1-485a-b6db-ca1149e1b6fa", - "legacy_id": 8150 + "legacy_id": 8150, + "number": 42 }, - "status": "INSTND", "team": { - "id": "f40f6cc8-a4c3-44e4-a2e8-3e93d9a64f8c", + "id": "0bfdcebe-454e-4955-a214-02905db98a69", + "name": "Team SUZUKI ECSTAR", "legacy_id": 72, - "name": "LCR Honda IDEMITSU" + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "e1824280-b485-4f63-b176-834bbf47aa1c", + "name": "Suzuki", + "legacy_id": 2 + }, + "average_speed": 166.9, + "gap": { + "first": "3.357", + "lap": "0" }, - "total_laps": 22 + "total_laps": 22, + "time": "42:32.0200", + "points": 10, + "status": "INSTND" }, { - "gap": { - "first": 5.934 - }, + "id": "c782bd49-e3c8-44ff-bb55-abbe206b67a0", "position": 7, "rider": { + "id": "4cff2dfb-2feb-4264-9a17-8a67189c204c", + "full_name": "Aleix Espargaro", "country": { "iso": "ES", "name": "Spain", "region_iso": "" }, - "full_name": "Aleix Espargaro", - "id": "4cff2dfb-2feb-4264-9a17-8a67189c204c", - "legacy_id": 6854 + "legacy_id": 6854, + "number": 41 }, - "status": "INSTND", "team": { - "id": "3e73b75d-53e2-4ab0-86f5-aa0f18192304", + "id": "b06c2202-3c08-438c-b138-fafcb07731de", + "name": "Aprilia Racing Team Gresini", "legacy_id": 71, - "name": "KTM Test Team" + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "10d5e2bc-4b0b-4875-b936-3962fbb1b877", + "name": "Aprilia", + "legacy_id": 7 + }, + "average_speed": 166.7, + "gap": { + "first": "5.934", + "lap": "0" }, - "total_laps": 22 + "total_laps": 22, + "time": "42:34.5970", + "points": 9, + "status": "INSTND" }, { - "gap": { - "first": 5.99 - }, + "id": "90c267fb-32c0-42b7-9403-c4b3ca97a2d2", "position": 8, "rider": { + "id": "40c19361-abe5-46e8-bed9-b3fa648dd7ac", + "full_name": "Pol Espargaro", "country": { "iso": "ES", "name": "Spain", "region_iso": "" }, - "full_name": "Pol Espargaro", - "id": "40c19361-abe5-46e8-bed9-b3fa648dd7ac", - "legacy_id": 7086 + "legacy_id": 7086, + "number": 44 }, - "status": "INSTND", "team": { - "id": "06be669d-467c-4ca4-885d-27c22ccdcc49", + "id": "4ac39c34-4bc3-4a54-b669-5346d6285b09", + "name": "Repsol Honda Team", "legacy_id": 74, - "name": "Red Bull KTM Factory Racing" + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "3a036648-7b14-4257-8c62-245e47e4d42b", + "name": "Honda", + "legacy_id": 1 + }, + "average_speed": 166.7, + "gap": { + "first": "5.990", + "lap": "0" }, - "total_laps": 22 + "total_laps": 22, + "time": "42:34.6530", + "points": 8, + "status": "INSTND" }, { - "gap": { - "first": 7.058 - }, + "id": "fec69df5-8128-44f3-9c45-94e19a333b27", "position": 9, "rider": { + "id": "6e940243-5167-4cc3-a343-a74337369b94", + "full_name": "Jack Miller", "country": { "iso": "AU", "name": "Australia", "region_iso": "" }, - "full_name": "Jack Miller", - "id": "6e940243-5167-4cc3-a343-a74337369b94", - "legacy_id": 8049 + "legacy_id": 8049, + "number": 43 }, - "status": "INSTND", "team": { - "id": "51154ae1-6228-4b17-94dd-31719809d16b", + "id": "1bf17943-3a15-422e-8b48-e5669700b819", + "name": "Ducati Lenovo Team", "legacy_id": 73, - "name": "Aprilia Racing Test Team" + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "b9d93efb-3cd0-4681-9de4-c412a866d568", + "name": "Ducati", + "legacy_id": 110 + }, + "average_speed": 166.7, + "gap": { + "first": "7.058", + "lap": "0" }, - "total_laps": 22 + "total_laps": 22, + "time": "42:35.7210", + "points": 7, + "status": "INSTND" }, { - "gap": { - "first": 9.288 - }, + "id": "90772054-4027-474f-bf99-7a160b0f99f8", "position": 10, "rider": { + "id": "ff225c9d-64a2-43ac-a70e-62cf385a85a1", + "full_name": "Enea Bastianini", "country": { "iso": "IT", "name": "Italy", "region_iso": "" }, - "full_name": "Enea Bastianini", - "id": "ff225c9d-64a2-43ac-a70e-62cf385a85a1", - "legacy_id": 8295 + "legacy_id": 8295, + "number": 23 }, - "status": "INSTND", "team": { - "id": "1e642629-5531-44fd-a271-798d740c00fb", + "id": "903fcc4b-6598-4046-a022-f2aad37717fd", + "name": "Avintia Esponsorama", "legacy_id": 65, - "name": "Aprilia Racing" + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "b9d93efb-3cd0-4681-9de4-c412a866d568", + "name": "Ducati", + "legacy_id": 110 + }, + "average_speed": 166.5, + "gap": { + "first": "9.288", + "lap": "0" }, - "total_laps": 22 + "total_laps": 22, + "time": "42:37.9510", + "points": 6, + "status": "INSTND" }, { - "gap": { - "first": 10.299 - }, + "id": "fcd51d38-4cad-431b-87da-be79b6edc281", "position": 11, "rider": { + "id": "5b323ae2-9b30-4c9e-a8db-dd65639597b5", + "full_name": "Stefan Bradl", "country": { "iso": "DE", "name": "Germany", "region_iso": "" }, - "full_name": "Stefan Bradl", - "id": "5b323ae2-9b30-4c9e-a8db-dd65639597b5", - "legacy_id": 6267 + "legacy_id": 6267, + "number": 6 }, - "status": "INSTND", "team": { - "id": "4e10b734-1e8f-418f-a2d7-7178d2887366", + "id": "9b25e1a0-a7cc-4ed0-b8ee-193e1112068a", + "name": "Repsol Honda Team", "legacy_id": 80, - "name": "Ducati Lenovo Team" + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "3a036648-7b14-4257-8c62-245e47e4d42b", + "name": "Honda", + "legacy_id": 1 + }, + "average_speed": 166.5, + "gap": { + "first": "10.299", + "lap": "0" }, - "total_laps": 22 + "total_laps": 22, + "time": "42:38.9620", + "points": 5, + "status": "INSTND" }, { - "gap": { - "first": 10.742 - }, + "id": "328e1ca4-0bcf-421c-a77c-286260277fdb", "position": 12, "rider": { + "id": "640859bc-3f12-44fe-949a-4eab1f48f02a", + "full_name": "Valentino Rossi", "country": { "iso": "IT", "name": "Italy", "region_iso": "" }, - "full_name": "Valentino Rossi", - "id": "640859bc-3f12-44fe-949a-4eab1f48f02a", - "legacy_id": 158 + "legacy_id": 158, + "number": 46 }, - "status": "INSTND", "team": { - "id": "73af304d-a21c-416e-90db-8f599d922678", + "id": "1d74ec7f-7ef8-4223-a102-2f79c3a09344", + "name": "Petronas Yamaha SRT", "legacy_id": 75, - "name": "Yamaha Factory" + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "babb4c4c-3608-4811-93ad-3b88cc407547", + "name": "Yamaha", + "legacy_id": 3 + }, + "average_speed": 166.4, + "gap": { + "first": "10.742", + "lap": "0" }, - "total_laps": 22 + "total_laps": 22, + "time": "42:39.4050", + "points": 4, + "status": "INSTND" }, { - "gap": { - "first": 11.457 - }, + "id": "41e4fcf4-2258-4e3e-9f16-70630ffb6d98", "position": 13, "rider": { + "id": "1abd2de7-9046-4d0a-88e3-ad801dcc235b", + "full_name": "Miguel Oliveira", "country": { "iso": "PT", "name": "Portugal", "region_iso": "" }, - "full_name": "Miguel Oliveira", - "id": "1abd2de7-9046-4d0a-88e3-ad801dcc235b", - "legacy_id": 7199 + "legacy_id": 7199, + "number": 88 }, - "status": "INSTND", "team": { - "id": "e118eac7-8c41-4667-bb45-1a5d4b8341bc", + "id": "f1bf5fdf-5c08-4642-b6d7-c9a05b9a1afb", + "name": "Red Bull KTM Factory Racing", "legacy_id": 78, - "name": "Aprilia Racing" + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "be77c017-cc37-41eb-aa09-2977f1789b0f", + "name": "KTM", + "legacy_id": 298 + }, + "average_speed": 166.4, + "gap": { + "first": "11.457", + "lap": "0" }, - "total_laps": 22 + "total_laps": 22, + "time": "42:40.1200", + "points": 3, + "status": "INSTND" }, { - "gap": { - "first": 14.1 - }, + "id": "3ec4c648-38fd-4041-a1a4-1f77520bae48", "position": 14, "rider": { + "id": "ba579548-f026-402b-a607-38db5317d33f", + "full_name": "Brad Binder", "country": { "iso": "ZA", "name": "South Africa", "region_iso": "" }, - "full_name": "Brad Binder", - "id": "ba579548-f026-402b-a607-38db5317d33f", - "legacy_id": 7646 + "legacy_id": 7646, + "number": 33 }, - "status": "INSTND", "team": { - "id": "d802c7e6-2e9a-47b6-855c-923458904d02", + "id": "f4c85e74-6c2c-4279-9ef3-eeaddabf7a3e", + "name": "Red Bull KTM Factory Racing", "legacy_id": 69, - "name": "Tech3 KTM Factory Racing" + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "be77c017-cc37-41eb-aa09-2977f1789b0f", + "name": "KTM", + "legacy_id": 298 + }, + "average_speed": 166.2, + "gap": { + "first": "14.100", + "lap": "0" }, - "total_laps": 22 + "total_laps": 22, + "time": "42:42.7630", + "points": 2, + "status": "INSTND" }, { - "gap": { - "first": 16.422 - }, + "id": "0ca969c8-e0c4-4ea3-b869-7a418a10b5b8", "position": 15, "rider": { + "id": "5cbd7eb6-ccfc-4b9f-aad1-ede25d394f7b", + "full_name": "Jorge Martin", "country": { "iso": "ES", "name": "Spain", "region_iso": "" }, - "full_name": "Jorge Martin", - "id": "5cbd7eb6-ccfc-4b9f-aad1-ede25d394f7b", - "legacy_id": 8146 + "legacy_id": 8146, + "number": 89 }, - "status": "INSTND", "team": { - "id": "fe3e1100-ed6c-4da1-894d-feb381413d07", + "id": "0ed78761-5c33-4b21-ac7b-aee1e8a3f297", + "name": "Pramac Racing", "legacy_id": 79, - "name": "Team SUZUKI ECSTAR" + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "b9d93efb-3cd0-4681-9de4-c412a866d568", + "name": "Ducati", + "legacy_id": 110 + }, + "average_speed": 166.1, + "gap": { + "first": "16.422", + "lap": "0" }, - "total_laps": 22 + "total_laps": 22, + "time": "42:45.0850", + "points": 1, + "status": "INSTND" }, { - "gap": { - "first": 20.916 - }, + "id": "422bdbac-8c4d-47fa-8e5c-14c0bcf0024a", "position": 16, "rider": { + "id": "7b0687b0-90bd-4ad6-b157-8c66fb8a93cf", + "full_name": "Luca Marini", "country": { "iso": "IT", "name": "Italy", "region_iso": "" }, - "full_name": "Luca Marini", - "id": "7b0687b0-90bd-4ad6-b157-8c66fb8a93cf", - "legacy_id": 8431 + "legacy_id": 8431, + "number": 10 }, - "status": "INSTND", "team": { - "id": "a41a8e1f-5b29-46b2-80e7-8a0ab6bf924e", + "id": "38be0fac-b851-4caf-8657-b8dba3bfbe2e", + "name": "SKY VR46 Avintia", "legacy_id": 61, - "name": "WithU Yamaha RNF MotoGP Team" + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "b9d93efb-3cd0-4681-9de4-c412a866d568", + "name": "Ducati", + "legacy_id": 110 + }, + "average_speed": 165.8, + "gap": { + "first": "20.916", + "lap": "0" }, - "total_laps": 22 + "total_laps": 22, + "time": "42:49.5790", + "points": 0, + "status": "INSTND" }, { - "gap": { - "first": 21.026 - }, + "id": "50f86787-76ef-4ea5-9f01-e6b1e09038ea", "position": 17, "rider": { + "id": "173da4e6-99bd-4468-b277-cf47f1efd24b", + "full_name": "Iker Lecuona", "country": { "iso": "ES", "name": "Spain", "region_iso": "" }, - "full_name": "Iker Lecuona", - "id": "173da4e6-99bd-4468-b277-cf47f1efd24b", - "legacy_id": 8947 + "legacy_id": 8947, + "number": 27 }, - "status": "INSTND", "team": { - "id": "841f623b-8c22-4885-b81f-f752923ab9ad", + "id": "e0447439-37e8-4a5e-bdc4-60f6f5727f40", + "name": "Tech 3 KTM Factory Racing", "legacy_id": 66, - "name": "Monster Energy Yamaha MotoGP" + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "be77c017-cc37-41eb-aa09-2977f1789b0f", + "name": "KTM", + "legacy_id": 298 + }, + "average_speed": 165.8, + "gap": { + "first": "21.026", + "lap": "0" }, - "total_laps": 22 + "total_laps": 22, + "time": "42:49.6890", + "points": 0, + "status": "INSTND" }, { - "gap": { - "first": 23.892 - }, + "id": "c93256de-d0a4-47b1-87ae-e624207e17d6", "position": 18, "rider": { + "id": "a73f8ef2-784f-4f52-8511-1d315fd3a459", + "full_name": "Franco Morbidelli", "country": { "iso": "IT", "name": "Italy", "region_iso": "" }, - "full_name": "Franco Morbidelli", - "id": "a73f8ef2-784f-4f52-8511-1d315fd3a459", - "legacy_id": 7741 + "legacy_id": 7741, + "number": 21 }, - "status": "INSTND", "team": { - "id": "3bda0b31-3129-416d-ab70-1ae76e22b8d5", + "id": "9485babd-3aba-470c-a7e3-cafbaca6b227", + "name": "Petronas Yamaha SRT", "legacy_id": 64, - "name": "Mooney VR46 Racing Team" + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "babb4c4c-3608-4811-93ad-3b88cc407547", + "name": "Yamaha", + "legacy_id": 3 + }, + "average_speed": 165.6, + "gap": { + "first": "23.892", + "lap": "0" }, - "total_laps": 22 + "total_laps": 22, + "time": "42:52.5550", + "points": 0, + "status": "INSTND" }, { - "gap": { - "first": 46.346 - }, + "id": "e316c59e-2acd-4f1b-8fb7-920a8300efb8", "position": 19, "rider": { + "id": "0c9405ff-e879-498c-964d-b39409361a6c", + "full_name": "Lorenzo Savadori", "country": { "iso": "IT", "name": "Italy", "region_iso": "" }, - "full_name": "Lorenzo Savadori", - "id": "0c9405ff-e879-498c-964d-b39409361a6c", - "legacy_id": 7246 + "legacy_id": 7246, + "number": 32 }, - "status": "INSTND", "team": { - "id": "a86166df-d247-4c80-a6eb-2a338e3475c7", + "id": "7a94b9cb-3e43-4ff1-8812-8cf73ff46731", + "name": "Aprilia Racing Team Gresini", "legacy_id": 68, - "name": "Gresini Racing MotoGP" + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "10d5e2bc-4b0b-4875-b936-3962fbb1b877", + "name": "Aprilia", + "legacy_id": 7 + }, + "average_speed": 164.1, + "gap": { + "first": "46.346", + "lap": "0" }, - "total_laps": 22 + "total_laps": 22, + "time": "43:15.0090", + "points": 0, + "status": "INSTND" }, { - "gap": { - "first": 0.0 - }, + "id": "b1198742-169f-426f-97ee-eacada46213f", + "position": null, "rider": { + "id": "e7e4c72e-952e-4f64-8e8a-a47ff590fade", + "full_name": "Alex Marquez", "country": { "iso": "ES", "name": "Spain", "region_iso": "" }, - "full_name": "Alex Marquez", - "id": "e7e4c72e-952e-4f64-8e8a-a47ff590fade", - "legacy_id": 8173 + "legacy_id": 8173, + "number": 73 }, - "status": "OUTSTND", "team": { - "id": "52eae362-5ebb-4400-8c03-942da97e617c", + "id": "f4188de4-9d97-4707-95bc-95da6f193d8f", + "name": "LCR Honda CASTROL", "legacy_id": 77, - "name": "WithU Yamaha RNF MotoGP Team" + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "3a036648-7b14-4257-8c62-245e47e4d42b", + "name": "Honda", + "legacy_id": 1 + }, + "average_speed": 166.3, + "gap": { + "first": "0.000", + "lap": "9" }, - "total_laps": 13 + "total_laps": 13, + "time": "25:13.7750", + "points": 0, + "status": "OUTSTND" }, { - "gap": { - "first": 0.0 - }, + "id": "50d3e882-3a29-4ab6-b10b-ab2ec9639868", + "position": null, "rider": { + "id": "201ae7a4-0dc7-4191-be71-d91ac0330090", + "full_name": "Takaaki Nakagami", "country": { - "iso": "IT", - "name": "Italy", + "iso": "JP", + "name": "Japan", "region_iso": "" }, - "full_name": "Danilo Petrucci", - "id": "09a9727b-25d7-4b4a-937b-df5ffc6ee06a", - "legacy_id": 8148 + "legacy_id": 6976, + "number": 30 }, - "status": "NOTFINISHFIRST", "team": { - "id": "dbcd18aa-2c93-4934-858e-ef80049f6957", - "legacy_id": 60, - "name": "Inde GASGAS Aspar Team" + "id": "68856b10-0681-43fe-9ad4-d150ba0a06dd", + "name": "LCR Honda IDEMITSU", + "legacy_id": 67, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "3a036648-7b14-4257-8c62-245e47e4d42b", + "name": "Honda", + "legacy_id": 1 + }, + "average_speed": 165, + "gap": { + "first": "0.000", + "lap": "16" }, - "total_laps": 0 + "total_laps": 6, + "time": "11:44.0870", + "points": 0, + "status": "OUTSTND" }, { - "gap": { - "first": 0.0 - }, + "id": "bd0dd1ca-780c-4400-954d-2afa22c0eacb", + "position": null, "rider": { + "id": "09a9727b-25d7-4b4a-937b-df5ffc6ee06a", + "full_name": "Danilo Petrucci", "country": { - "iso": "JP", - "name": "Japan", + "iso": "IT", + "name": "Italy", "region_iso": "" }, - "full_name": "Takaaki Nakagami", - "id": "201ae7a4-0dc7-4191-be71-d91ac0330090", - "legacy_id": 6976 + "legacy_id": 8148, + "number": 9 }, - "status": "OUTSTND", "team": { - "id": "3da296f9-fa91-4d4f-8e8f-6298b1a9627c", - "legacy_id": 67, - "name": "Monster Energy Yamaha MotoGP" + "id": "78c5aafb-2a5a-49af-812d-c7d91adaeaaa", + "name": "Tech 3 KTM Factory Racing", + "legacy_id": 60, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "be77c017-cc37-41eb-aa09-2977f1789b0f", + "name": "KTM", + "legacy_id": 298 + }, + "average_speed": 0, + "gap": { + "first": "0.000", + "lap": "0" }, - "total_laps": 6 + "total_laps": 0, + "time": "", + "points": 0, + "status": "NOTFINISHFIRST" } ], - "file": "http://localhost:8089/files/results/2021/QAT/MotoGP/RAC/Classification.pdf", "records": [ { - "bestLap": { - "time": "01:54.6240" - }, + "type": "fastestLap", "rider": { + "id": "66ee98b2-239c-487f-8913-aab8493ce280", + "full_name": "Maverick Vi\u00f1ales", "country": { "iso": "ES", "name": "Spain", "region_iso": "" }, - "full_name": "Maverick Viñales", - "id": "66ee98b2-239c-487f-8913-aab8493ce280", "legacy_id": 7409 }, - "speed": 168.9, - "type": "recordLap", - "year": 2021 - }, - { "bestLap": { "number": 4, "time": "01:54.6240" }, + "speed": "168.9", + "year": null, + "isNewRecord": false + }, + { + "type": "recordLap", "rider": { + "id": "9cb55304-0ac1-401c-beb6-1a4f445018a4", + "full_name": "Francesco Bagnaia", "country": { - "iso": "ES", - "name": "Spain", + "iso": "IT", + "name": "Italy", "region_iso": "" }, - "full_name": "Maverick Viñales", - "id": "66ee98b2-239c-487f-8913-aab8493ce280", - "legacy_id": 7409 + "legacy_id": 8273 }, - "speed": 168.9, - "type": "fastestLap" - }, - { "bestLap": { + "number": null, "time": "01:52.7720" }, + "speed": "171.7", + "year": 2021, + "isNewRecord": false + }, + { + "type": "poleLap", "rider": { + "id": "9cb55304-0ac1-401c-beb6-1a4f445018a4", + "full_name": "Francesco Bagnaia", "country": { "iso": "IT", "name": "Italy", "region_iso": "" }, - "full_name": "Francesco Bagnaia", - "id": "9cb55304-0ac1-401c-beb6-1a4f445018a4", "legacy_id": 8273 }, - "speed": 171.7, - "type": "poleLap" - }, - { "bestLap": { + "number": null, "time": "01:52.7720" }, + "speed": "171.7", + "year": null, + "isNewRecord": false + }, + { + "type": "bestLap", "rider": { + "id": "66ee98b2-239c-487f-8913-aab8493ce280", + "full_name": "Maverick Vi\u00f1ales", "country": { - "iso": "IT", - "name": "Italy", + "iso": "ES", + "name": "Spain", "region_iso": "" }, - "full_name": "Francesco Bagnaia", - "id": "9cb55304-0ac1-401c-beb6-1a4f445018a4", - "legacy_id": 8273 + "legacy_id": 7409 }, - "speed": 171.7, - "type": "bestLap", - "year": 2021 + "bestLap": { + "number": null, + "time": "01:54.6240" + }, + "speed": "168.9", + "year": 2021, + "isNewRecord": false } - ] + ], + "file": "http:\/\/localhost:8089\/files\/results\/2021\/QAT\/MotoGP\/RAC\/Classification.pdf" } \ No newline at end of file diff --git a/src/test/resources/__files/classifications-test-je1-gp-fp2.json b/src/test/resources/__files/classifications-test-je1-gp-fp2.json new file mode 100644 index 0000000..47fb8af --- /dev/null +++ b/src/test/resources/__files/classifications-test-je1-gp-fp2.json @@ -0,0 +1,1083 @@ +{ + "classification": [ + { + "id": "e0014c22-ba7d-44ed-8ea9-745acb3fdcd3", + "position": 1, + "rider": { + "id": "9cb55304-0ac1-401c-beb6-1a4f445018a4", + "full_name": "Francesco Bagnaia", + "country": { + "iso": "IT", + "name": "Italy", + "region_iso": "" + }, + "legacy_id": 8273, + "number": 63 + }, + "team": { + "id": "d33c45c6-ea01-4dde-85df-4e43f527a00e", + "name": "Ducati Lenovo Team", + "legacy_id": 84, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-6dc534c014ef", + "year": 2022, + "current": false + } + }, + "constructor": { + "id": "b9d93efb-3cd0-4681-9de4-c412a866d568", + "name": "Ducati", + "legacy_id": 110 + }, + "fastest_lap": "1:36.872", + "gap": { + "first": "0.000", + "prev": "0.000" + }, + "laps": 12, + "total_laps": 42 + }, + { + "id": "cd5596b9-f280-464c-974a-d0a32c0a7b69", + "position": 2, + "rider": { + "id": "fcdd5500-a769-4ff4-8b9e-080d1849ff42", + "full_name": "Fabio Quartararo", + "country": { + "iso": "FR", + "name": "France", + "region_iso": "" + }, + "legacy_id": 8520, + "number": 20 + }, + "team": { + "id": "841f623b-8c22-4885-b81f-f752923ab9ad", + "name": "Monster Energy Yamaha MotoGP", + "legacy_id": 66, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-6dc534c014ef", + "year": 2022, + "current": false + } + }, + "constructor": { + "id": "babb4c4c-3608-4811-93ad-3b88cc407547", + "name": "Yamaha", + "legacy_id": 3 + }, + "fastest_lap": "1:37.324", + "gap": { + "first": "0.452", + "prev": "0.452" + }, + "laps": 67, + "total_laps": 68 + }, + { + "id": "a40c19df-3525-4be2-98cf-5f05b3527ff0", + "position": 3, + "rider": { + "id": "56475aa3-f3d1-485a-b6db-ca1149e1b6fa", + "full_name": "Alex Rins", + "country": { + "iso": "ES", + "name": "Spain", + "region_iso": "" + }, + "legacy_id": 8150, + "number": 42 + }, + "team": { + "id": "fe3e1100-ed6c-4da1-894d-feb381413d07", + "name": "Team SUZUKI ECSTAR", + "legacy_id": 79, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-6dc534c014ef", + "year": 2022, + "current": false + } + }, + "constructor": { + "id": "e1824280-b485-4f63-b176-834bbf47aa1c", + "name": "Suzuki", + "legacy_id": 2 + }, + "fastest_lap": "1:37.423", + "gap": { + "first": "0.551", + "prev": "0.099" + }, + "laps": 54, + "total_laps": 59 + }, + { + "id": "d8fa07ed-02f7-4418-8ad0-91779acf69a5", + "position": 4, + "rider": { + "id": "40c19361-abe5-46e8-bed9-b3fa648dd7ac", + "full_name": "Pol Espargaro", + "country": { + "iso": "ES", + "name": "Spain", + "region_iso": "" + }, + "legacy_id": 7086, + "number": 44 + }, + "team": { + "id": "9c7b0420-682f-41dd-8176-84f8f6510720", + "name": "Repsol Honda Team", + "legacy_id": 81, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-6dc534c014ef", + "year": 2022, + "current": false + } + }, + "constructor": { + "id": "3a036648-7b14-4257-8c62-245e47e4d42b", + "name": "Honda", + "legacy_id": 1 + }, + "fastest_lap": "1:37.496", + "gap": { + "first": "0.624", + "prev": "0.073" + }, + "laps": 46, + "total_laps": 46 + }, + { + "id": "382b7ad3-7dd7-4cca-8246-118f197d4b1b", + "position": 5, + "rider": { + "id": "66ee98b2-239c-487f-8913-aab8493ce280", + "full_name": "Maverick Vi\u00f1ales", + "country": { + "iso": "ES", + "name": "Spain", + "region_iso": "" + }, + "legacy_id": 7409, + "number": 12 + }, + "team": { + "id": "1e642629-5531-44fd-a271-798d740c00fb", + "name": "Aprilia Racing", + "legacy_id": 65, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-6dc534c014ef", + "year": 2022, + "current": false + } + }, + "constructor": { + "id": "10d5e2bc-4b0b-4875-b936-3962fbb1b877", + "name": "Aprilia", + "legacy_id": 7 + }, + "fastest_lap": "1:37.622", + "gap": { + "first": "0.750", + "prev": "0.126" + }, + "laps": 67, + "total_laps": 82 + }, + { + "id": "ce01795c-c955-4be3-9a52-6b2aed83fa95", + "position": 6, + "rider": { + "id": "9a441928-d1af-452d-afce-fa028c044932", + "full_name": "Joan Mir", + "country": { + "iso": "ES", + "name": "Spain", + "region_iso": "" + }, + "legacy_id": 8141, + "number": 36 + }, + "team": { + "id": "e2c1ded7-1280-4096-a2fb-cae4e837ebf1", + "name": "Team SUZUKI ECSTAR", + "legacy_id": 76, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-6dc534c014ef", + "year": 2022, + "current": false + } + }, + "constructor": { + "id": "e1824280-b485-4f63-b176-834bbf47aa1c", + "name": "Suzuki", + "legacy_id": 2 + }, + "fastest_lap": "1:37.634", + "gap": { + "first": "0.762", + "prev": "0.012" + }, + "laps": 59, + "total_laps": 73 + }, + { + "id": "b0657066-36b1-44d5-ba61-c5b6c65ab2ba", + "position": 7, + "rider": { + "id": "201ae7a4-0dc7-4191-be71-d91ac0330090", + "full_name": "Takaaki Nakagami", + "country": { + "iso": "JP", + "name": "Japan", + "region_iso": "" + }, + "legacy_id": 6976, + "number": 30 + }, + "team": { + "id": "f40f6cc8-a4c3-44e4-a2e8-3e93d9a64f8c", + "name": "LCR Honda IDEMITSU", + "legacy_id": 72, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-6dc534c014ef", + "year": 2022, + "current": false + } + }, + "constructor": { + "id": "3a036648-7b14-4257-8c62-245e47e4d42b", + "name": "Honda", + "legacy_id": 1 + }, + "fastest_lap": "1:37.672", + "gap": { + "first": "0.800", + "prev": "0.038" + }, + "laps": 4, + "total_laps": 36 + }, + { + "id": "9b6fd9fd-7d5b-410e-8670-7e6a18cec494", + "position": 8, + "rider": { + "id": "ff225c9d-64a2-43ac-a70e-62cf385a85a1", + "full_name": "Enea Bastianini", + "country": { + "iso": "IT", + "name": "Italy", + "region_iso": "" + }, + "legacy_id": 8295, + "number": 23 + }, + "team": { + "id": "a86166df-d247-4c80-a6eb-2a338e3475c7", + "name": "Gresini Racing MotoGP", + "legacy_id": 68, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-6dc534c014ef", + "year": 2022, + "current": false + } + }, + "constructor": { + "id": "b9d93efb-3cd0-4681-9de4-c412a866d568", + "name": "Ducati", + "legacy_id": 110 + }, + "fastest_lap": "1:37.698", + "gap": { + "first": "0.826", + "prev": "0.026" + }, + "laps": 20, + "total_laps": 25 + }, + { + "id": "25af7199-7497-432c-a48f-5443bd3cf95f", + "position": 9, + "rider": { + "id": "6e940243-5167-4cc3-a343-a74337369b94", + "full_name": "Jack Miller", + "country": { + "iso": "AU", + "name": "Australia", + "region_iso": "" + }, + "legacy_id": 8049, + "number": 43 + }, + "team": { + "id": "4e10b734-1e8f-418f-a2d7-7178d2887366", + "name": "Ducati Lenovo Team", + "legacy_id": 80, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-6dc534c014ef", + "year": 2022, + "current": false + } + }, + "constructor": { + "id": "b9d93efb-3cd0-4681-9de4-c412a866d568", + "name": "Ducati", + "legacy_id": 110 + }, + "fastest_lap": "1:37.717", + "gap": { + "first": "0.845", + "prev": "0.019" + }, + "laps": 38, + "total_laps": 39 + }, + { + "id": "2ab96c70-a5c4-4f76-89e0-f259ae76df67", + "position": 10, + "rider": { + "id": "e7e4c72e-952e-4f64-8e8a-a47ff590fade", + "full_name": "Alex Marquez", + "country": { + "iso": "ES", + "name": "Spain", + "region_iso": "" + }, + "legacy_id": 8173, + "number": 73 + }, + "team": { + "id": "14841302-a4a0-41bc-9071-618d19d0196d", + "name": "LCR Honda CASTROL", + "legacy_id": 86, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-6dc534c014ef", + "year": 2022, + "current": false + } + }, + "constructor": { + "id": "3a036648-7b14-4257-8c62-245e47e4d42b", + "name": "Honda", + "legacy_id": 1 + }, + "fastest_lap": "1:37.760", + "gap": { + "first": "0.888", + "prev": "0.043" + }, + "laps": 56, + "total_laps": 56 + }, + { + "id": "7c891df2-828e-45ae-bc4a-4164e1f9de6a", + "position": 11, + "rider": { + "id": "ba579548-f026-402b-a607-38db5317d33f", + "full_name": "Brad Binder", + "country": { + "iso": "ZA", + "name": "South Africa", + "region_iso": "" + }, + "legacy_id": 7646, + "number": 33 + }, + "team": { + "id": "06be669d-467c-4ca4-885d-27c22ccdcc49", + "name": "Red Bull KTM Factory Racing", + "legacy_id": 74, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-6dc534c014ef", + "year": 2022, + "current": false + } + }, + "constructor": { + "id": "be77c017-cc37-41eb-aa09-2977f1789b0f", + "name": "KTM", + "legacy_id": 298 + }, + "fastest_lap": "1:37.942", + "gap": { + "first": "1.070", + "prev": "0.182" + }, + "laps": 45, + "total_laps": 56 + }, + { + "id": "0d9fb80e-ff14-4484-b2eb-a77d3188f5f2", + "position": 12, + "rider": { + "id": "7b0687b0-90bd-4ad6-b157-8c66fb8a93cf", + "full_name": "Luca Marini", + "country": { + "iso": "IT", + "name": "Italy", + "region_iso": "" + }, + "legacy_id": 8431, + "number": 10 + }, + "team": { + "id": "3bda0b31-3129-416d-ab70-1ae76e22b8d5", + "name": "Mooney VR46 Racing Team", + "legacy_id": 64, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-6dc534c014ef", + "year": 2022, + "current": false + } + }, + "constructor": { + "id": "b9d93efb-3cd0-4681-9de4-c412a866d568", + "name": "Ducati", + "legacy_id": 110 + }, + "fastest_lap": "1:38.025", + "gap": { + "first": "1.153", + "prev": "0.083" + }, + "laps": 11, + "total_laps": 56 + }, + { + "id": "fbdb563a-53e4-404d-bc75-8a18e84746d7", + "position": 13, + "rider": { + "id": "06989a4b-12bc-4cb5-bad6-bb8dab9097f3", + "full_name": "Andrea Dovizioso", + "country": { + "iso": "IT", + "name": "Italy", + "region_iso": "" + }, + "legacy_id": 5885, + "number": 4 + }, + "team": { + "id": "a41a8e1f-5b29-46b2-80e7-8a0ab6bf924e", + "name": "WithU Yamaha RNF MotoGP Team", + "legacy_id": 61, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-6dc534c014ef", + "year": 2022, + "current": false + } + }, + "constructor": { + "id": "babb4c4c-3608-4811-93ad-3b88cc407547", + "name": "Yamaha", + "legacy_id": 3 + }, + "fastest_lap": "1:38.029", + "gap": { + "first": "1.157", + "prev": "0.004" + }, + "laps": 54, + "total_laps": 58 + }, + { + "id": "3dc6c718-44e1-4cc2-8071-33db5530c664", + "position": 14, + "rider": { + "id": "1abd2de7-9046-4d0a-88e3-ad801dcc235b", + "full_name": "Miguel Oliveira", + "country": { + "iso": "PT", + "name": "Portugal", + "region_iso": "" + }, + "legacy_id": 7199, + "number": 88 + }, + "team": { + "id": "a4e65cf0-a69c-4f97-8781-1864b0826b19", + "name": "Red Bull KTM Factory Racing", + "legacy_id": 89, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-6dc534c014ef", + "year": 2022, + "current": false + } + }, + "constructor": { + "id": "be77c017-cc37-41eb-aa09-2977f1789b0f", + "name": "KTM", + "legacy_id": 298 + }, + "fastest_lap": "1:38.085", + "gap": { + "first": "1.213", + "prev": "0.056" + }, + "laps": 6, + "total_laps": 56 + }, + { + "id": "2aa3ee79-4646-4b7d-9504-dacad22ed505", + "position": 15, + "rider": { + "id": "a73f8ef2-784f-4f52-8511-1d315fd3a459", + "full_name": "Franco Morbidelli", + "country": { + "iso": "IT", + "name": "Italy", + "region_iso": "" + }, + "legacy_id": 7741, + "number": 21 + }, + "team": { + "id": "3da296f9-fa91-4d4f-8e8f-6298b1a9627c", + "name": "Monster Energy Yamaha MotoGP", + "legacy_id": 67, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-6dc534c014ef", + "year": 2022, + "current": false + } + }, + "constructor": { + "id": "babb4c4c-3608-4811-93ad-3b88cc407547", + "name": "Yamaha", + "legacy_id": 3 + }, + "fastest_lap": "1:38.100", + "gap": { + "first": "1.228", + "prev": "0.015" + }, + "laps": 5, + "total_laps": 30 + }, + { + "id": "30aa3cfa-a362-4219-bbc2-d31926ff37b4", + "position": 16, + "rider": { + "id": "4cff2dfb-2feb-4264-9a17-8a67189c204c", + "full_name": "Aleix Espargaro", + "country": { + "iso": "ES", + "name": "Spain", + "region_iso": "" + }, + "legacy_id": 6854, + "number": 41 + }, + "team": { + "id": "e118eac7-8c41-4667-bb45-1a5d4b8341bc", + "name": "Aprilia Racing", + "legacy_id": 78, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-6dc534c014ef", + "year": 2022, + "current": false + } + }, + "constructor": { + "id": "10d5e2bc-4b0b-4875-b936-3962fbb1b877", + "name": "Aprilia", + "legacy_id": 7 + }, + "fastest_lap": "1:38.149", + "gap": { + "first": "1.277", + "prev": "0.049" + }, + "laps": 47, + "total_laps": 55 + }, + { + "id": "1cf4bc04-c288-40e7-8313-9fdcb42f6ea3", + "position": 17, + "rider": { + "id": "487440af-cfa9-478a-903b-4e893ee18d3a", + "full_name": "Johann Zarco", + "country": { + "iso": "FR", + "name": "France", + "region_iso": "" + }, + "legacy_id": 7236, + "number": 5 + }, + "team": { + "id": "e37b36d6-3701-49cf-961f-7734b190d57f", + "name": "Prima Pramac Racing", + "legacy_id": 62, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-6dc534c014ef", + "year": 2022, + "current": false + } + }, + "constructor": { + "id": "b9d93efb-3cd0-4681-9de4-c412a866d568", + "name": "Ducati", + "legacy_id": 110 + }, + "fastest_lap": "1:38.160", + "gap": { + "first": "1.288", + "prev": "0.011" + }, + "laps": 20, + "total_laps": 65 + }, + { + "id": "f030d1a7-80ba-485a-9e84-3f1e7c7294a1", + "position": 18, + "rider": { + "id": "5cbd7eb6-ccfc-4b9f-aad1-ede25d394f7b", + "full_name": "Jorge Martin", + "country": { + "iso": "ES", + "name": "Spain", + "region_iso": "" + }, + "legacy_id": 8146, + "number": 89 + }, + "team": { + "id": "8e4e557e-b895-447e-bae5-4252ec2ac108", + "name": "Prima Pramac Racing", + "legacy_id": 90, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-6dc534c014ef", + "year": 2022, + "current": false + } + }, + "constructor": { + "id": "b9d93efb-3cd0-4681-9de4-c412a866d568", + "name": "Ducati", + "legacy_id": 110 + }, + "fastest_lap": "1:38.435", + "gap": { + "first": "1.563", + "prev": "0.275" + }, + "laps": 11, + "total_laps": 34 + }, + { + "id": "62863843-47c7-48c3-a9d0-6133fa30453d", + "position": 19, + "rider": { + "id": "6c33de41-f014-4f17-8dc9-e6f36e61026a", + "full_name": "Fabio Di Giannantonio", + "country": { + "iso": "IT", + "name": "Italy", + "region_iso": "" + }, + "legacy_id": 8539, + "number": 49 + }, + "team": { + "id": "44ddcab2-bd6e-4893-9976-cf382cfc9116", + "name": "Gresini Racing MotoGP", + "legacy_id": 82, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-6dc534c014ef", + "year": 2022, + "current": false + } + }, + "constructor": { + "id": "b9d93efb-3cd0-4681-9de4-c412a866d568", + "name": "Ducati", + "legacy_id": 110 + }, + "fastest_lap": "1:38.528", + "gap": { + "first": "1.656", + "prev": "0.093" + }, + "laps": 43, + "total_laps": 45 + }, + { + "id": "a031de20-723c-44fd-9dc1-c05f17631250", + "position": 20, + "rider": { + "id": "58448742-f520-466a-a1a1-bf3286cce9c3", + "full_name": "Raul Fernandez", + "country": { + "iso": "ES", + "name": "Spain", + "region_iso": "" + }, + "legacy_id": 8269, + "number": 25 + }, + "team": { + "id": "d802c7e6-2e9a-47b6-855c-923458904d02", + "name": "Tech3 KTM Factory Racing", + "legacy_id": 69, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-6dc534c014ef", + "year": 2022, + "current": false + } + }, + "constructor": { + "id": "be77c017-cc37-41eb-aa09-2977f1789b0f", + "name": "KTM", + "legacy_id": 298 + }, + "fastest_lap": "1:38.691", + "gap": { + "first": "1.819", + "prev": "0.163" + }, + "laps": 53, + "total_laps": 55 + }, + { + "id": "9f07f75d-43d5-45ea-90f2-3a052d441acb", + "position": 21, + "rider": { + "id": "0c9405ff-e879-498c-964d-b39409361a6c", + "full_name": "Lorenzo Savadori", + "country": { + "iso": "IT", + "name": "Italy", + "region_iso": "" + }, + "legacy_id": 7246, + "number": 32 + }, + "team": { + "id": "51154ae1-6228-4b17-94dd-31719809d16b", + "name": "Aprilia Racing Test Team", + "legacy_id": 73, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-6dc534c014ef", + "year": 2022, + "current": false + } + }, + "constructor": { + "id": "10d5e2bc-4b0b-4875-b936-3962fbb1b877", + "name": "Aprilia", + "legacy_id": 7 + }, + "fastest_lap": "1:38.724", + "gap": { + "first": "1.852", + "prev": "0.033" + }, + "laps": 45, + "total_laps": 60 + }, + { + "id": "d620b11b-4e40-47ea-a73b-921946d09fd7", + "position": 22, + "rider": { + "id": "09bd7ecd-ee3f-4e20-8efa-c200f724c642", + "full_name": "Remy Gardner", + "country": { + "iso": "AU", + "name": "Australia", + "region_iso": "" + }, + "legacy_id": 8513, + "number": 87 + }, + "team": { + "id": "d83ab410-4c8e-479b-97fb-40686536c278", + "name": "Tech3 KTM Factory Racing", + "legacy_id": 88, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-6dc534c014ef", + "year": 2022, + "current": false + } + }, + "constructor": { + "id": "be77c017-cc37-41eb-aa09-2977f1789b0f", + "name": "KTM", + "legacy_id": 298 + }, + "fastest_lap": "1:38.728", + "gap": { + "first": "1.856", + "prev": "0.004" + }, + "laps": 62, + "total_laps": 64 + }, + { + "id": "2db4a1b7-a8c2-4067-8de2-1f65b3ea69c6", + "position": 23, + "rider": { + "id": "3c7cb27f-7612-4fdd-826b-b44eae49813a", + "full_name": "Sylvain Guintoli", + "country": { + "iso": "FR", + "name": "France", + "region_iso": "" + }, + "legacy_id": 5687, + "number": 50 + }, + "team": { + "id": "7b8cbe72-ed41-463e-abbd-1f6f7ffe8d77", + "name": "Suzuki Test Team", + "legacy_id": 83, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-6dc534c014ef", + "year": 2022, + "current": false + } + }, + "constructor": { + "id": "e1824280-b485-4f63-b176-834bbf47aa1c", + "name": "Suzuki", + "legacy_id": 2 + }, + "fastest_lap": "1:39.040", + "gap": { + "first": "2.168", + "prev": "0.312" + }, + "laps": 54, + "total_laps": 56 + }, + { + "id": "c11fb774-0e40-4320-b1bf-c0c298f2cafb", + "position": 24, + "rider": { + "id": "d6a82e1f-ee5b-4990-adb9-adf909f74f42", + "full_name": "Dani Pedrosa", + "country": { + "iso": "ES", + "name": "Spain", + "region_iso": "" + }, + "legacy_id": 5515, + "number": 26 + }, + "team": { + "id": "7519e22d-4625-49c0-a43a-c7b12fd37a83", + "name": "VisionTrack Racing Team", + "legacy_id": 9, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-6dc534c014ef", + "year": 2022, + "current": false + } + }, + "constructor": { + "id": "be77c017-cc37-41eb-aa09-2977f1789b0f", + "name": "KTM", + "legacy_id": 298 + }, + "fastest_lap": "1:39.185", + "gap": { + "first": "2.313", + "prev": "0.145" + }, + "laps": 45, + "total_laps": 58 + }, + { + "id": "c87d99ba-bd39-4b79-8725-23c5d7713842", + "position": 25, + "rider": { + "id": "ab06dbae-7d6e-47c3-b63f-b7ac6b7d3bcd", + "full_name": "Marco Bezzecchi", + "country": { + "iso": "IT", + "name": "Italy", + "region_iso": "" + }, + "legacy_id": 8688, + "number": 72 + }, + "team": { + "id": "6ddef163-59fe-4f82-90e8-e12bbd981c54", + "name": "Mooney VR46 Racing Team", + "legacy_id": 85, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-6dc534c014ef", + "year": 2022, + "current": false + } + }, + "constructor": { + "id": "b9d93efb-3cd0-4681-9de4-c412a866d568", + "name": "Ducati", + "legacy_id": 110 + }, + "fastest_lap": "1:39.312", + "gap": { + "first": "2.440", + "prev": "0.127" + }, + "laps": 54, + "total_laps": 62 + }, + { + "id": "06feba9d-c00f-4105-a7a7-103f35a70d00", + "position": 26, + "rider": { + "id": "e38443a0-a5f5-4616-825c-9db2adc24a55", + "full_name": "Darryn Binder", + "country": { + "iso": "ZA", + "name": "South Africa", + "region_iso": "" + }, + "legacy_id": 8296, + "number": 40 + }, + "team": { + "id": "52eae362-5ebb-4400-8c03-942da97e617c", + "name": "WithU Yamaha RNF MotoGP Team", + "legacy_id": 77, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-6dc534c014ef", + "year": 2022, + "current": false + } + }, + "constructor": { + "id": "babb4c4c-3608-4811-93ad-3b88cc407547", + "name": "Yamaha", + "legacy_id": 3 + }, + "fastest_lap": "1:39.941", + "gap": { + "first": "3.069", + "prev": "0.629" + }, + "laps": 53, + "total_laps": 55 + }, + { + "id": "1aadfcba-506c-42f6-a9d6-0898bc2f473f", + "position": null, + "rider": { + "id": "5d489841-b1b1-4fc7-ab87-2b03865931e8", + "full_name": "Mika Kallio", + "country": { + "iso": "FI", + "name": "Finland", + "region_iso": "" + }, + "legacy_id": 5938, + "number": 82 + }, + "team": { + "id": "cad056b9-99e3-4342-b838-7bd595d03876", + "name": "SIC58 Squadra Corse", + "legacy_id": 10, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-6dc534c014ef", + "year": 2022, + "current": false + } + }, + "constructor": { + "id": "be77c017-cc37-41eb-aa09-2977f1789b0f", + "name": "KTM", + "legacy_id": 298 + }, + "fastest_lap": "", + "gap": { + "first": "0.000", + "prev": "0.000" + }, + "laps": null, + "total_laps": null + }, + { + "id": "52eb0e0e-69e0-430a-90b9-a118a2fa83de", + "position": null, + "rider": { + "id": "5b323ae2-9b30-4c9e-a8db-dd65639597b5", + "full_name": "Stefan Bradl", + "country": { + "iso": "DE", + "name": "Germany", + "region_iso": "" + }, + "legacy_id": 6267, + "number": 6 + }, + "team": { + "id": "36a068e2-912e-4876-acc8-4bb1a8ef0dd5", + "name": "American Racing", + "legacy_id": 32, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-6dc534c014ef", + "year": 2022, + "current": false + } + }, + "constructor": { + "id": "3a036648-7b14-4257-8c62-245e47e4d42b", + "name": "Honda", + "legacy_id": 1 + }, + "fastest_lap": "", + "gap": { + "first": "0.000", + "prev": "0.000" + }, + "laps": null, + "total_laps": null + }, + { + "id": "ce45ba44-52ae-42c4-bb28-424bda0554f5", + "position": null, + "rider": { + "id": "c4a2d13b-3993-41d9-909e-85a4e555bce7", + "full_name": "Takuya Tsuda", + "country": { + "iso": "JP", + "name": "Japan", + "region_iso": "" + }, + "legacy_id": 8823, + "number": 85 + }, + "team": { + "id": "413efa36-730d-4c5a-ac52-ccb3b25cb275", + "name": "Suzuki Test Team", + "legacy_id": 87, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-6dc534c014ef", + "year": 2022, + "current": false + } + }, + "constructor": { + "id": "e1824280-b485-4f63-b176-834bbf47aa1c", + "name": "Suzuki", + "legacy_id": 2 + }, + "fastest_lap": "", + "gap": { + "first": "0.000", + "prev": "0.000" + }, + "laps": null, + "total_laps": null + } + ], + "files": { + "classification": "http:\/\/localhost:8089\/files\/testresults\/2022_JEREZ_MotoGP____OFFICIAL_TEST_classification_2.pdf", + "analysis": "http:\/\/localhost:8089\/files\/testresults\/2022_JEREZ_MotoGP____OFFICIAL_TEST_analysis_2.pdf", + "combined_sessions": "http:\/\/localhost:8089\/files\/testresults\/2022_JEREZ_MotoGP____OFFICIAL_TEST_combined_sessions_2.pdf", + "combined_days": "" + } +} \ No newline at end of file diff --git a/src/test/resources/__files/classifications.json b/src/test/resources/__files/classifications.json index a4997d4..a0e6587 100644 --- a/src/test/resources/__files/classifications.json +++ b/src/test/resources/__files/classifications.json @@ -1,7 +1,7 @@ { "classification": [ { - "id": "a583bfc4-80b6-4fb9-8c17-826d99b20cf5", + "id": "18c88066-06aa-40b2-9e62-655402702154", "position": 1, "rider": { "id": "a73f8ef2-784f-4f52-8511-1d315fd3a459", @@ -11,28 +11,38 @@ "name": "Italy", "region_iso": "" }, - "legacy_id": 7741 + "legacy_id": 7741, + "number": 21 }, "team": { - "id": "3bda0b31-3129-416d-ab70-1ae76e22b8d5", - "name": "Mooney VR46 Racing Team", - "legacy_id": 64 + "id": "9485babd-3aba-470c-a7e3-cafbaca6b227", + "name": "Petronas Yamaha SRT", + "legacy_id": 64, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "babb4c4c-3608-4811-93ad-3b88cc407547", + "name": "Yamaha", + "legacy_id": 3 }, - "constructor": null, "best_lap": { - "number": 16, - "time": "01:54.9210" + "number": 14, + "time": "01:54.6760" }, "total_laps": 17, - "top_speed": 342.8, + "top_speed": 343.9, "gap": { - "first": 0, - "prev": 0 + "first": "0.000", + "prev": "0.000" }, "status": "INSTND" }, { - "id": "bba32520-a097-467f-a2de-e599e8b60c34", + "id": "88ac521a-c35d-447e-85a3-f74c36fb47e4", "position": 2, "rider": { "id": "4cff2dfb-2feb-4264-9a17-8a67189c204c", @@ -42,245 +52,325 @@ "name": "Spain", "region_iso": "" }, - "legacy_id": 6854 + "legacy_id": 6854, + "number": 41 }, "team": { - "id": "3e73b75d-53e2-4ab0-86f5-aa0f18192304", - "name": "KTM Test Team", - "legacy_id": 71 + "id": "b06c2202-3c08-438c-b138-fafcb07731de", + "name": "Aprilia Racing Team Gresini", + "legacy_id": 71, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "10d5e2bc-4b0b-4875-b936-3962fbb1b877", + "name": "Aprilia", + "legacy_id": 7 }, - "constructor": null, "best_lap": { - "number": 14, - "time": "01:55.0460" + "number": 9, + "time": "01:54.8410" }, - "total_laps": 15, - "top_speed": 341.7, + "total_laps": 9, + "top_speed": 347.2, "gap": { - "first": 0.125, - "prev": 0.125 + "first": "0.165", + "prev": "0.165" }, "status": "INSTND" }, { - "id": "91336d8f-f600-411b-8148-f736badeb579", + "id": "94972555-b23e-4135-bab4-556f6f0a9eff", "position": 3, "rider": { - "id": "6e940243-5167-4cc3-a343-a74337369b94", - "full_name": "Jack Miller", + "id": "7b0687b0-90bd-4ad6-b157-8c66fb8a93cf", + "full_name": "Luca Marini", "country": { - "iso": "AU", - "name": "Australia", + "iso": "IT", + "name": "Italy", "region_iso": "" }, - "legacy_id": 8049 + "legacy_id": 8431, + "number": 10 }, "team": { - "id": "51154ae1-6228-4b17-94dd-31719809d16b", - "name": "Aprilia Racing Test Team", - "legacy_id": 73 + "id": "38be0fac-b851-4caf-8657-b8dba3bfbe2e", + "name": "SKY VR46 Avintia", + "legacy_id": 61, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "b9d93efb-3cd0-4681-9de4-c412a866d568", + "name": "Ducati", + "legacy_id": 110 }, - "constructor": null, "best_lap": { - "number": 12, - "time": "01:55.1120" + "number": 16, + "time": "01:54.8550" }, - "total_laps": 13, - "top_speed": 350.6, + "total_laps": 16, + "top_speed": 348.3, "gap": { - "first": 0.191, - "prev": 0.066 + "first": "0.179", + "prev": "0.014" }, "status": "INSTND" }, { - "id": "306edcfb-e136-43ce-941b-635501522a88", + "id": "1cccb774-ed35-42de-bc8f-62e9e975ee56", "position": 4, "rider": { - "id": "fcdd5500-a769-4ff4-8b9e-080d1849ff42", - "full_name": "Fabio Quartararo", + "id": "56475aa3-f3d1-485a-b6db-ca1149e1b6fa", + "full_name": "Alex Rins", "country": { - "iso": "FR", - "name": "France", + "iso": "ES", + "name": "Spain", "region_iso": "" }, - "legacy_id": 8520 + "legacy_id": 8150, + "number": 42 }, "team": { - "id": "2e041f95-0faa-4c9d-b575-e7eb376836c3", - "name": "Honda Racing Corporation", - "legacy_id": 63 + "id": "0bfdcebe-454e-4955-a214-02905db98a69", + "name": "Team SUZUKI ECSTAR", + "legacy_id": 72, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "e1824280-b485-4f63-b176-834bbf47aa1c", + "name": "Suzuki", + "legacy_id": 2 }, - "constructor": null, "best_lap": { "number": 16, - "time": "01:55.2130" + "time": "01:54.9140" }, "total_laps": 16, - "top_speed": 346.1, + "top_speed": 347.2, "gap": { - "first": 0.292, - "prev": 0.101 + "first": "0.238", + "prev": "0.059" }, "status": "INSTND" }, { - "id": "e6eba0dd-9073-4f06-bbac-832c7d8cb5f4", + "id": "f2a51074-80af-4fac-b0f6-02fbac900316", "position": 5, "rider": { - "id": "9a441928-d1af-452d-afce-fa028c044932", - "full_name": "Joan Mir", + "id": "fcdd5500-a769-4ff4-8b9e-080d1849ff42", + "full_name": "Fabio Quartararo", "country": { - "iso": "ES", - "name": "Spain", + "iso": "FR", + "name": "France", "region_iso": "" }, - "legacy_id": 8141 + "legacy_id": 8520, + "number": 20 }, "team": { - "id": "3acdec3d-7e07-4686-8611-55a92350acbe", - "name": "KTM Test Team", - "legacy_id": 70 + "id": "6658985c-17d7-4705-9b64-5e96beb9adf8", + "name": "Monster Energy Yamaha MotoGP", + "legacy_id": 63, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "babb4c4c-3608-4811-93ad-3b88cc407547", + "name": "Yamaha", + "legacy_id": 3 }, - "constructor": null, "best_lap": { - "number": 15, - "time": "01:55.2550" + "number": 8, + "time": "01:55.0700" }, "total_laps": 15, - "top_speed": 345, + "top_speed": 348.3, "gap": { - "first": 0.334, - "prev": 0.042 + "first": "0.394", + "prev": "0.156" }, "status": "INSTND" }, { - "id": "ea449bec-6134-4be8-8cff-c5b6b60e115f", + "id": "e2184a19-aad6-4d21-8d17-7b08ae7b69ea", "position": 6, "rider": { - "id": "66ee98b2-239c-487f-8913-aab8493ce280", - "full_name": "Maverick Vi\u00f1ales", + "id": "9a441928-d1af-452d-afce-fa028c044932", + "full_name": "Joan Mir", "country": { "iso": "ES", "name": "Spain", "region_iso": "" }, - "legacy_id": 7409 + "legacy_id": 8141, + "number": 36 }, "team": { - "id": "e37b36d6-3701-49cf-961f-7734b190d57f", - "name": "Pramac Racing", - "legacy_id": 62 + "id": "5dd8fd40-fd87-42e7-bc75-69f3fba4f7de", + "name": "Team SUZUKI ECSTAR", + "legacy_id": 70, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "e1824280-b485-4f63-b176-834bbf47aa1c", + "name": "Suzuki", + "legacy_id": 2 }, - "constructor": null, "best_lap": { - "number": 7, - "time": "01:55.3090" + "number": 13, + "time": "01:55.0770" }, - "total_laps": 18, - "top_speed": 345, + "total_laps": 14, + "top_speed": 343.9, "gap": { - "first": 0.388, - "prev": 0.054 + "first": "0.401", + "prev": "0.007" }, "status": "INSTND" }, { - "id": "6f1e0ab7-cdd1-49dd-9704-8e12aaac719a", + "id": "5d79abe2-86d6-4df0-b242-f634bf2e88c2", "position": 7, "rider": { - "id": "56475aa3-f3d1-485a-b6db-ca1149e1b6fa", - "full_name": "Alex Rins", + "id": "201ae7a4-0dc7-4191-be71-d91ac0330090", + "full_name": "Takaaki Nakagami", "country": { - "iso": "ES", - "name": "Spain", + "iso": "JP", + "name": "Japan", "region_iso": "" }, - "legacy_id": 8150 + "legacy_id": 6976, + "number": 30 }, "team": { - "id": "f40f6cc8-a4c3-44e4-a2e8-3e93d9a64f8c", + "id": "68856b10-0681-43fe-9ad4-d150ba0a06dd", "name": "LCR Honda IDEMITSU", - "legacy_id": 72 + "legacy_id": 67, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "3a036648-7b14-4257-8c62-245e47e4d42b", + "name": "Honda", + "legacy_id": 1 }, - "constructor": null, "best_lap": { - "number": 17, - "time": "01:55.3530" + "number": 14, + "time": "01:55.0850" }, - "total_laps": 18, - "top_speed": 349.5, + "total_laps": 15, + "top_speed": 348.3, "gap": { - "first": 0.432, - "prev": 0.044 + "first": "0.409", + "prev": "0.008" }, "status": "INSTND" }, { - "id": "1458de97-f5d4-401a-9aa1-3da735a2f4c6", + "id": "e19e28e6-fe19-49de-9fa2-c2ba80848396", "position": 8, "rider": { - "id": "9cb55304-0ac1-401c-beb6-1a4f445018a4", - "full_name": "Francesco Bagnaia", + "id": "66ee98b2-239c-487f-8913-aab8493ce280", + "full_name": "Maverick Vi\u00f1ales", "country": { - "iso": "IT", - "name": "Italy", + "iso": "ES", + "name": "Spain", "region_iso": "" }, - "legacy_id": 8273 + "legacy_id": 7409, + "number": 12 }, "team": { - "id": "e2c1ded7-1280-4096-a2fb-cae4e837ebf1", - "name": "Team SUZUKI ECSTAR", - "legacy_id": 76 + "id": "425a4e35-f6cf-4bfe-8ccf-9df37f62c17a", + "name": "Monster Energy Yamaha MotoGP", + "legacy_id": 62, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "babb4c4c-3608-4811-93ad-3b88cc407547", + "name": "Yamaha", + "legacy_id": 3 }, - "constructor": null, "best_lap": { - "number": 8, - "time": "01:55.3650" + "number": 14, + "time": "01:55.1030" }, - "total_laps": 16, - "top_speed": 348.3, + "total_laps": 19, + "top_speed": 345, "gap": { - "first": 0.444, - "prev": 0.012 + "first": "0.427", + "prev": "0.018" }, "status": "INSTND" }, { - "id": "3c49ffa0-47d8-4a64-a38f-01cf1be92ce2", + "id": "2847802f-0890-42d9-a5e9-079b3afdb9bd", "position": 9, "rider": { - "id": "640859bc-3f12-44fe-949a-4eab1f48f02a", - "full_name": "Valentino Rossi", + "id": "5b323ae2-9b30-4c9e-a8db-dd65639597b5", + "full_name": "Stefan Bradl", "country": { - "iso": "IT", - "name": "Italy", + "iso": "DE", + "name": "Germany", "region_iso": "" }, - "legacy_id": 158 + "legacy_id": 6267, + "number": 6 }, "team": { - "id": "73af304d-a21c-416e-90db-8f599d922678", - "name": "Yamaha Factory", - "legacy_id": 75 + "id": "9b25e1a0-a7cc-4ed0-b8ee-193e1112068a", + "name": "Repsol Honda Team", + "legacy_id": 80, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "3a036648-7b14-4257-8c62-245e47e4d42b", + "name": "Honda", + "legacy_id": 1 }, - "constructor": null, "best_lap": { - "number": 15, - "time": "01:55.4190" + "number": 18, + "time": "01:55.2070" }, - "total_laps": 15, - "top_speed": 345, + "total_laps": 18, + "top_speed": 348.3, "gap": { - "first": 0.498, - "prev": 0.054 + "first": "0.531", + "prev": "0.104" }, "status": "INSTND" }, { - "id": "b5b98c3d-2d6e-44f8-afae-c8274778c69b", + "id": "831e5d0a-1c9d-4dc1-bff2-6aac9867d29a", "position": 10, "rider": { "id": "1abd2de7-9046-4d0a-88e3-ad801dcc235b", @@ -290,395 +380,525 @@ "name": "Portugal", "region_iso": "" }, - "legacy_id": 7199 + "legacy_id": 7199, + "number": 88 }, "team": { - "id": "e118eac7-8c41-4667-bb45-1a5d4b8341bc", - "name": "Aprilia Racing", - "legacy_id": 78 + "id": "f1bf5fdf-5c08-4642-b6d7-c9a05b9a1afb", + "name": "Red Bull KTM Factory Racing", + "legacy_id": 78, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "be77c017-cc37-41eb-aa09-2977f1789b0f", + "name": "KTM", + "legacy_id": 298 }, - "constructor": null, "best_lap": { "number": 17, - "time": "01:55.7450" + "time": "01:55.2610" }, "total_laps": 17, - "top_speed": 346.1, + "top_speed": 345, "gap": { - "first": 0.824, - "prev": 0.326 + "first": "0.585", + "prev": "0.054" }, "status": "INSTND" }, { - "id": "8164a624-86f0-489e-96ba-71d3768448b9", + "id": "fe5ed9c8-559d-4508-9a08-a1a6f3075bfd", "position": 11, "rider": { - "id": "e7e4c72e-952e-4f64-8e8a-a47ff590fade", - "full_name": "Alex Marquez", + "id": "09a9727b-25d7-4b4a-937b-df5ffc6ee06a", + "full_name": "Danilo Petrucci", "country": { - "iso": "ES", - "name": "Spain", + "iso": "IT", + "name": "Italy", "region_iso": "" }, - "legacy_id": 8173 + "legacy_id": 8148, + "number": 9 }, "team": { - "id": "52eae362-5ebb-4400-8c03-942da97e617c", - "name": "WithU Yamaha RNF MotoGP Team", - "legacy_id": 77 + "id": "78c5aafb-2a5a-49af-812d-c7d91adaeaaa", + "name": "Tech 3 KTM Factory Racing", + "legacy_id": 60, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "be77c017-cc37-41eb-aa09-2977f1789b0f", + "name": "KTM", + "legacy_id": 298 }, - "constructor": null, "best_lap": { - "number": 16, - "time": "01:55.7480" + "number": 13, + "time": "01:55.3660" }, - "total_laps": 16, - "top_speed": 346.1, + "total_laps": 14, + "top_speed": 345, "gap": { - "first": 0.827, - "prev": 0.003 + "first": "0.690", + "prev": "0.105" }, "status": "INSTND" }, { - "id": "6fe03d94-9d7b-4b81-b4d9-5f45e8c577f7", + "id": "0636417f-b2a0-41ee-9324-a2587a949627", "position": 12, "rider": { - "id": "201ae7a4-0dc7-4191-be71-d91ac0330090", - "full_name": "Takaaki Nakagami", + "id": "e7e4c72e-952e-4f64-8e8a-a47ff590fade", + "full_name": "Alex Marquez", "country": { - "iso": "JP", - "name": "Japan", + "iso": "ES", + "name": "Spain", "region_iso": "" }, - "legacy_id": 6976 + "legacy_id": 8173, + "number": 73 }, "team": { - "id": "3da296f9-fa91-4d4f-8e8f-6298b1a9627c", - "name": "Monster Energy Yamaha MotoGP", - "legacy_id": 67 + "id": "f4188de4-9d97-4707-95bc-95da6f193d8f", + "name": "LCR Honda CASTROL", + "legacy_id": 77, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "3a036648-7b14-4257-8c62-245e47e4d42b", + "name": "Honda", + "legacy_id": 1 }, - "constructor": null, "best_lap": { - "number": 16, - "time": "01:55.7540" + "number": 9, + "time": "01:55.5170" }, - "total_laps": 17, - "top_speed": 348.3, + "total_laps": 18, + "top_speed": 349.5, "gap": { - "first": 0.833, - "prev": 0.006 + "first": "0.841", + "prev": "0.151" }, "status": "INSTND" }, { - "id": "72074c13-0492-46f6-b9c9-6d9c7f2a778d", + "id": "ed539eb9-6bd9-4db3-b459-00d0a47527b8", "position": 13, "rider": { - "id": "487440af-cfa9-478a-903b-4e893ee18d3a", - "full_name": "Johann Zarco", + "id": "5cbd7eb6-ccfc-4b9f-aad1-ede25d394f7b", + "full_name": "Jorge Martin", "country": { - "iso": "FR", - "name": "France", + "iso": "ES", + "name": "Spain", "region_iso": "" }, - "legacy_id": 7236 + "legacy_id": 8146, + "number": 89 }, "team": { - "id": "1862b786-5bc8-4fdb-a503-d45bead09ec8", - "name": "RW Racing GP", - "legacy_id": 59 + "id": "0ed78761-5c33-4b21-ac7b-aee1e8a3f297", + "name": "Pramac Racing", + "legacy_id": 79, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "b9d93efb-3cd0-4681-9de4-c412a866d568", + "name": "Ducati", + "legacy_id": 110 }, - "constructor": null, "best_lap": { - "number": 14, - "time": "01:55.8710" + "number": 6, + "time": "01:55.7040" }, - "total_laps": 16, - "top_speed": 350.6, + "total_laps": 14, + "top_speed": 355.2, "gap": { - "first": 0.95, - "prev": 0.117 + "first": "1.028", + "prev": "0.187" }, "status": "INSTND" }, { - "id": "4f0d665c-450f-43fb-8bad-6f47b24bb928", + "id": "7952043c-eb8b-4387-9917-3430032f57b9", "position": 14, "rider": { - "id": "5b323ae2-9b30-4c9e-a8db-dd65639597b5", - "full_name": "Stefan Bradl", + "id": "ff225c9d-64a2-43ac-a70e-62cf385a85a1", + "full_name": "Enea Bastianini", "country": { - "iso": "DE", - "name": "Germany", + "iso": "IT", + "name": "Italy", "region_iso": "" }, - "legacy_id": 6267 + "legacy_id": 8295, + "number": 23 }, "team": { - "id": "4e10b734-1e8f-418f-a2d7-7178d2887366", - "name": "Ducati Lenovo Team", - "legacy_id": 80 + "id": "903fcc4b-6598-4046-a022-f2aad37717fd", + "name": "Avintia Esponsorama", + "legacy_id": 65, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "b9d93efb-3cd0-4681-9de4-c412a866d568", + "name": "Ducati", + "legacy_id": 110 }, - "constructor": null, "best_lap": { - "number": 13, - "time": "01:55.9420" + "number": 10, + "time": "01:55.7840" }, "total_laps": 13, - "top_speed": 345, + "top_speed": 352.9, "gap": { - "first": 1.021, - "prev": 0.071 + "first": "1.108", + "prev": "0.080" }, "status": "INSTND" }, { - "id": "31ccdb80-0042-4d11-9f71-d391ccb60fc7", + "id": "06ebade8-7462-4913-a851-1503eeea2cbf", "position": 15, "rider": { - "id": "40c19361-abe5-46e8-bed9-b3fa648dd7ac", - "full_name": "Pol Espargaro", + "id": "6e940243-5167-4cc3-a343-a74337369b94", + "full_name": "Jack Miller", "country": { - "iso": "ES", - "name": "Spain", + "iso": "AU", + "name": "Australia", "region_iso": "" }, - "legacy_id": 7086 + "legacy_id": 8049, + "number": 43 }, "team": { - "id": "06be669d-467c-4ca4-885d-27c22ccdcc49", - "name": "Red Bull KTM Factory Racing", - "legacy_id": 74 + "id": "1bf17943-3a15-422e-8b48-e5669700b819", + "name": "Ducati Lenovo Team", + "legacy_id": 73, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "b9d93efb-3cd0-4681-9de4-c412a866d568", + "name": "Ducati", + "legacy_id": 110 }, - "constructor": null, "best_lap": { - "number": 16, - "time": "01:56.0460" + "number": 6, + "time": "01:55.7910" }, - "total_laps": 17, - "top_speed": 351.7, + "total_laps": 6, + "top_speed": 356.4, "gap": { - "first": 1.125, - "prev": 0.104 + "first": "1.115", + "prev": "0.007" }, "status": "INSTND" }, { - "id": "4bd14f6b-3ff5-424c-982c-7aa9b6937ea2", + "id": "aeb3e236-27d7-4cdb-a137-14d4a9ce67a3", "position": 16, "rider": { - "id": "ba579548-f026-402b-a607-38db5317d33f", - "full_name": "Brad Binder", + "id": "640859bc-3f12-44fe-949a-4eab1f48f02a", + "full_name": "Valentino Rossi", "country": { - "iso": "ZA", - "name": "South Africa", + "iso": "IT", + "name": "Italy", "region_iso": "" }, - "legacy_id": 7646 + "legacy_id": 158, + "number": 46 }, "team": { - "id": "d802c7e6-2e9a-47b6-855c-923458904d02", - "name": "Tech3 KTM Factory Racing", - "legacy_id": 69 + "id": "1d74ec7f-7ef8-4223-a102-2f79c3a09344", + "name": "Petronas Yamaha SRT", + "legacy_id": 75, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "babb4c4c-3608-4811-93ad-3b88cc407547", + "name": "Yamaha", + "legacy_id": 3 }, - "constructor": null, "best_lap": { - "number": 4, - "time": "01:56.0570" + "number": 15, + "time": "01:55.8340" }, "total_laps": 16, "top_speed": 347.2, "gap": { - "first": 1.136, - "prev": 0.011 + "first": "1.158", + "prev": "0.043" }, "status": "INSTND" }, { - "id": "ddbf3f7e-da73-40a3-89a8-77f8b85cc9a1", + "id": "573260e0-dd90-4cea-82be-41a5d01aaecf", "position": 17, "rider": { - "id": "7b0687b0-90bd-4ad6-b157-8c66fb8a93cf", - "full_name": "Luca Marini", + "id": "40c19361-abe5-46e8-bed9-b3fa648dd7ac", + "full_name": "Pol Espargaro", "country": { - "iso": "IT", - "name": "Italy", + "iso": "ES", + "name": "Spain", "region_iso": "" }, - "legacy_id": 8431 + "legacy_id": 7086, + "number": 44 }, "team": { - "id": "a41a8e1f-5b29-46b2-80e7-8a0ab6bf924e", - "name": "WithU Yamaha RNF MotoGP Team", - "legacy_id": 61 + "id": "4ac39c34-4bc3-4a54-b669-5346d6285b09", + "name": "Repsol Honda Team", + "legacy_id": 74, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "3a036648-7b14-4257-8c62-245e47e4d42b", + "name": "Honda", + "legacy_id": 1 }, - "constructor": null, "best_lap": { - "number": 14, - "time": "01:56.0690" + "number": 10, + "time": "01:55.9160" }, - "total_laps": 15, - "top_speed": 347.2, + "total_laps": 12, + "top_speed": 350.6, "gap": { - "first": 1.148, - "prev": 0.012 + "first": "1.240", + "prev": "0.082" }, "status": "INSTND" }, { - "id": "18744db8-771b-4e6c-9565-4964da563049", + "id": "73076cb5-f1b8-4261-990d-5b097bc54836", "position": 18, "rider": { - "id": "ff225c9d-64a2-43ac-a70e-62cf385a85a1", - "full_name": "Enea Bastianini", + "id": "173da4e6-99bd-4468-b277-cf47f1efd24b", + "full_name": "Iker Lecuona", "country": { - "iso": "IT", - "name": "Italy", + "iso": "ES", + "name": "Spain", "region_iso": "" }, - "legacy_id": 8295 + "legacy_id": 8947, + "number": 27 }, "team": { - "id": "1e642629-5531-44fd-a271-798d740c00fb", - "name": "Aprilia Racing", - "legacy_id": 65 + "id": "e0447439-37e8-4a5e-bdc4-60f6f5727f40", + "name": "Tech 3 KTM Factory Racing", + "legacy_id": 66, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "be77c017-cc37-41eb-aa09-2977f1789b0f", + "name": "KTM", + "legacy_id": 298 }, - "constructor": null, "best_lap": { - "number": 6, - "time": "01:56.1980" + "number": 12, + "time": "01:55.9230" }, - "total_laps": 16, - "top_speed": 349.5, + "total_laps": 14, + "top_speed": 347.2, "gap": { - "first": 1.277, - "prev": 0.129 + "first": "1.247", + "prev": "0.007" }, "status": "INSTND" }, { - "id": "b444e910-7a94-481e-9fa0-fa87fbcf2690", + "id": "a154cf07-91d8-4693-9674-46306d590365", "position": 19, "rider": { - "id": "09a9727b-25d7-4b4a-937b-df5ffc6ee06a", - "full_name": "Danilo Petrucci", + "id": "ba579548-f026-402b-a607-38db5317d33f", + "full_name": "Brad Binder", "country": { - "iso": "IT", - "name": "Italy", + "iso": "ZA", + "name": "South Africa", "region_iso": "" }, - "legacy_id": 8148 + "legacy_id": 7646, + "number": 33 }, "team": { - "id": "dbcd18aa-2c93-4934-858e-ef80049f6957", - "name": "Inde GASGAS Aspar Team", - "legacy_id": 60 + "id": "f4c85e74-6c2c-4279-9ef3-eeaddabf7a3e", + "name": "Red Bull KTM Factory Racing", + "legacy_id": 69, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "be77c017-cc37-41eb-aa09-2977f1789b0f", + "name": "KTM", + "legacy_id": 298 }, - "constructor": null, "best_lap": { - "number": 8, - "time": "01:56.2300" + "number": 10, + "time": "01:55.9780" }, - "total_laps": 15, - "top_speed": 343.9, + "total_laps": 16, + "top_speed": 349.5, "gap": { - "first": 1.309, - "prev": 0.032 + "first": "1.302", + "prev": "0.055" }, "status": "INSTND" }, { - "id": "2065a6ea-da41-4700-aaf9-c20283196dbf", + "id": "e61b9e2a-d0e2-4d68-a68b-a1a2515d8f69", "position": 20, "rider": { - "id": "5cbd7eb6-ccfc-4b9f-aad1-ede25d394f7b", - "full_name": "Jorge Martin", + "id": "0c9405ff-e879-498c-964d-b39409361a6c", + "full_name": "Lorenzo Savadori", "country": { - "iso": "ES", - "name": "Spain", + "iso": "IT", + "name": "Italy", "region_iso": "" }, - "legacy_id": 8146 + "legacy_id": 7246, + "number": 32 }, "team": { - "id": "fe3e1100-ed6c-4da1-894d-feb381413d07", - "name": "Team SUZUKI ECSTAR", - "legacy_id": 79 + "id": "7a94b9cb-3e43-4ff1-8812-8cf73ff46731", + "name": "Aprilia Racing Team Gresini", + "legacy_id": 68, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "10d5e2bc-4b0b-4875-b936-3962fbb1b877", + "name": "Aprilia", + "legacy_id": 7 }, - "constructor": null, "best_lap": { - "number": 15, - "time": "01:56.5410" + "number": 11, + "time": "01:55.9960" }, - "total_laps": 16, - "top_speed": 354, + "total_laps": 13, + "top_speed": 342.8, "gap": { - "first": 1.62, - "prev": 0.311 + "first": "1.320", + "prev": "0.018" }, "status": "INSTND" }, { - "id": "3d4cfe3f-71f7-49e0-a141-bc2d09a1bfd3", + "id": "ca369f7f-4d28-4773-81f0-3c3d28c11d07", "position": 21, "rider": { - "id": "0c9405ff-e879-498c-964d-b39409361a6c", - "full_name": "Lorenzo Savadori", + "id": "9cb55304-0ac1-401c-beb6-1a4f445018a4", + "full_name": "Francesco Bagnaia", "country": { "iso": "IT", "name": "Italy", "region_iso": "" }, - "legacy_id": 7246 + "legacy_id": 8273, + "number": 63 }, "team": { - "id": "a86166df-d247-4c80-a6eb-2a338e3475c7", - "name": "Gresini Racing MotoGP", - "legacy_id": 68 + "id": "046fbc13-6064-42ba-b38e-6c625e724802", + "name": "Ducati Lenovo Team", + "legacy_id": 76, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "b9d93efb-3cd0-4681-9de4-c412a866d568", + "name": "Ducati", + "legacy_id": 110 }, - "constructor": null, "best_lap": { - "number": 14, - "time": "01:56.5590" + "number": 9, + "time": "01:56.1660" }, - "total_laps": 15, - "top_speed": 342.8, + "total_laps": 11, + "top_speed": 350.6, "gap": { - "first": 1.638, - "prev": 0.018 + "first": "1.490", + "prev": "0.170" }, "status": "INSTND" }, { - "id": "fb1f7621-227a-4095-a213-8638bba28720", + "id": "114c4d17-1ba4-4ab3-b485-892046545060", "position": 22, "rider": { - "id": "173da4e6-99bd-4468-b277-cf47f1efd24b", - "full_name": "Iker Lecuona", + "id": "487440af-cfa9-478a-903b-4e893ee18d3a", + "full_name": "Johann Zarco", "country": { - "iso": "ES", - "name": "Spain", + "iso": "FR", + "name": "France", "region_iso": "" }, - "legacy_id": 8947 + "legacy_id": 7236, + "number": 5 }, "team": { - "id": "841f623b-8c22-4885-b81f-f752923ab9ad", - "name": "Monster Energy Yamaha MotoGP", - "legacy_id": 66 + "id": "52cfd159-1f1a-42fb-828a-a38006ab52fe", + "name": "Pramac Racing", + "legacy_id": 59, + "season": { + "id": "db8dc197-c7b2-4c1b-b3a4-7dc723c087ed", + "year": 2021, + "current": false + } + }, + "constructor": { + "id": "b9d93efb-3cd0-4681-9de4-c412a866d568", + "name": "Ducati", + "legacy_id": 110 }, - "constructor": null, "best_lap": { - "number": 15, - "time": "01:56.9430" + "number": 5, + "time": "01:56.6530" }, - "total_laps": 15, - "top_speed": 348.3, + "total_laps": 8, + "top_speed": 354, "gap": { - "first": 2.022, - "prev": 0.384 + "first": "1.977", + "prev": "0.487" }, "status": "INSTND" } @@ -686,25 +906,6 @@ "records": [ { "type": "recordLap", - "rider": { - "id": "fe7f3311-ebb9-404b-9ab5-ea44b103991e", - "full_name": "Jorge Lorenzo", - "country": { - "iso": "ES", - "name": "Spain", - "region_iso": "" - }, - "legacy_id": 6060 - }, - "bestLap": { - "number": null, - "time": "01:54.9270" - }, - "speed": "168.5", - "year": 2016 - }, - { - "type": "bestLap", "rider": { "id": "f55b433d-38b8-4d1d-bb3a-a709c82a0260", "full_name": "Marc Marquez", @@ -720,7 +921,8 @@ "time": "01:53.3800" }, "speed": "170.8", - "year": 2019 + "year": 2019, + "isNewRecord": false }, { "type": "fastestLap", @@ -735,12 +937,33 @@ "legacy_id": 7741 }, "bestLap": { - "number": 16, - "time": "01:54.9210" + "number": 14, + "time": "01:54.6760" + }, + "speed": "168.8", + "year": null, + "isNewRecord": false + }, + { + "type": "bestLap", + "rider": { + "id": "fe7f3311-ebb9-404b-9ab5-ea44b103991e", + "full_name": "Jorge Lorenzo", + "country": { + "iso": "ES", + "name": "Spain", + "region_iso": "" + }, + "legacy_id": 6060 + }, + "bestLap": { + "number": null, + "time": "01:54.9270" }, "speed": "168.5", - "year": null + "year": 2016, + "isNewRecord": false } ], - "file": "http:\/\/localhost:8089\/files\/results\/2021\/QAT\/MotoGP\/FP1\/Classification.pdf" + "file": "http:\/\/localhost:8089\/files\/results\/2021\/QAT\/MotoGP\/FP3\/Classification.pdf" } \ No newline at end of file diff --git a/src/test/resources/__files/events-tests-2022.json b/src/test/resources/__files/events-tests-2022.json new file mode 100644 index 0000000..9e255e5 --- /dev/null +++ b/src/test/resources/__files/events-tests-2022.json @@ -0,0 +1,360 @@ +[ + { + "id": "aacf14f8-fd7f-42d3-be6e-54add0eab84f", + "name": "JEREZ MOTOGP\u2122 OFFICIAL TEST", + "sponsored_name": "Jerez MotoGP\u2122 Official Test", + "date_start": "2021-11-18", + "date_end": "2021-11-19", + "country": { + "iso": "ES", + "name": "Spain", + "region_iso": "" + }, + "legacy_id": [ + { + "categoryId": 3, + "eventId": 676 + } + ], + "circuit": { + "id": "763812ea-9435-4c1c-b61b-a0c14ccdfbe4", + "name": "Circuito de Jerez - \u00c1ngel Nieto", + "legacy_id": 4, + "place": "Jerez de la Frontera", + "nation": "SPA" + }, + "event_files": { + "circuit_information": { + "url": "", + "menu_position": 1 + }, + "podiums": { + "url": "", + "menu_position": 2 + }, + "pole_positions": { + "url": "", + "menu_position": 2 + }, + "nations_statistics": { + "url": "", + "menu_position": 2 + }, + "riders_all_time": { + "url": "", + "menu_position": 2 + } + }, + "test": true, + "short_name": "JE1", + "world_standing_files": null + }, + { + "id": "3e7c342a-e406-470f-956f-d685be970bf4", + "name": "SEPANG MOTOGP\u2122 OFFICIAL TEST", + "sponsored_name": "Sepang MotoGP\u2122 Official Test", + "date_start": "2022-02-05", + "date_end": "2022-02-06", + "country": { + "iso": "MY", + "name": "Malaysia", + "region_iso": "" + }, + "legacy_id": [ + { + "categoryId": 3, + "eventId": 677 + } + ], + "circuit": { + "id": "f5a7f3f8-0097-4810-a2da-eee749aedc77", + "name": "Sepang International Circuit", + "legacy_id": 75, + "place": "Sepang", + "nation": "MAL" + }, + "event_files": { + "circuit_information": { + "url": "", + "menu_position": 1 + }, + "podiums": { + "url": "", + "menu_position": 2 + }, + "pole_positions": { + "url": "", + "menu_position": 2 + }, + "nations_statistics": { + "url": "", + "menu_position": 2 + }, + "riders_all_time": { + "url": "", + "menu_position": 2 + } + }, + "test": true, + "short_name": "MY1", + "world_standing_files": null + }, + { + "id": "7fd4f011-06ec-495a-8b54-74afa5031ae0", + "name": "MANDALIKA MOTOGP\u2122 OFFICIAL TEST ", + "sponsored_name": "Mandalika MotoGP\u2122 Official Test ", + "date_start": "2022-02-11", + "date_end": "2022-02-13", + "country": { + "iso": "ID", + "name": "Indonesia", + "region_iso": "" + }, + "legacy_id": [ + { + "categoryId": 3, + "eventId": 678 + } + ], + "circuit": { + "id": "a1ec6331-c571-418c-92d7-768cf0c83872", + "name": "Pertamina Mandalika Circuit", + "legacy_id": 111, + "place": "Lombok", + "nation": "INA" + }, + "event_files": { + "circuit_information": { + "url": "", + "menu_position": 1 + }, + "podiums": { + "url": "", + "menu_position": 2 + }, + "pole_positions": { + "url": "", + "menu_position": 2 + }, + "nations_statistics": { + "url": "", + "menu_position": 2 + }, + "riders_all_time": { + "url": "", + "menu_position": 2 + } + }, + "test": true, + "short_name": "IN1", + "world_standing_files": null + }, + { + "id": "d5de21be-ecba-48bd-8d70-7f352142f3a2", + "name": "PORTIMAO MOTO2\u2122 \u0026 MOTO3\u2122 OFFICIAL TEST", + "sponsored_name": "Portimao Moto2\u2122 \u0026 Moto3\u2122 Official Test", + "date_start": "2022-02-19", + "date_end": "2022-02-21", + "country": { + "iso": "PT", + "name": "Portugal", + "region_iso": "" + }, + "legacy_id": [ + { + "categoryId": 1, + "eventId": 679 + }, + { + "categoryId": 2, + "eventId": 680 + } + ], + "circuit": { + "id": "912a9d7f-2864-4311-bebb-19851e9c2620", + "name": "Aut\u00f3dromo Internacional do Algarve", + "legacy_id": 109, + "place": "Portimao", + "nation": "POR" + }, + "event_files": { + "circuit_information": { + "url": "", + "menu_position": 1 + }, + "podiums": { + "url": "", + "menu_position": 2 + }, + "pole_positions": { + "url": "", + "menu_position": 2 + }, + "nations_statistics": { + "url": "", + "menu_position": 2 + }, + "riders_all_time": { + "url": "", + "menu_position": 2 + } + }, + "test": true, + "short_name": "PT1", + "world_standing_files": null + }, + { + "id": "378be17c-1065-487f-87d9-8fbe738b3c33", + "name": "Jerez MotoGP\u2122 Official Test II", + "sponsored_name": "Jerez MotoGP\u2122 Official Test II", + "date_start": "2022-05-02", + "date_end": "2022-05-02", + "country": { + "iso": "ES", + "name": "Spain", + "region_iso": "" + }, + "legacy_id": [ + { + "categoryId": 3, + "eventId": 681 + }, + { + "categoryId": 3, + "eventId": 681 + } + ], + "circuit": { + "id": "763812ea-9435-4c1c-b61b-a0c14ccdfbe4", + "name": "Circuito de Jerez - \u00c1ngel Nieto", + "legacy_id": 4, + "place": "Jerez de la Frontera", + "nation": "SPA" + }, + "event_files": { + "circuit_information": { + "url": "", + "menu_position": 1 + }, + "podiums": { + "url": "", + "menu_position": 2 + }, + "pole_positions": { + "url": "", + "menu_position": 2 + }, + "nations_statistics": { + "url": "", + "menu_position": 2 + }, + "riders_all_time": { + "url": "", + "menu_position": 2 + } + }, + "test": true, + "short_name": "JE4", + "world_standing_files": null + }, + { + "id": "9afab834-8b4f-4cf0-ab0e-0ff811069adc", + "name": "CATALUNYA MOTOGP\u2122 OFFICIAL TEST", + "sponsored_name": "Catalunya MotoGP\u2122 Official Test", + "date_start": "2022-06-06", + "date_end": "2022-06-06", + "country": { + "iso": "ES", + "name": "Spain", + "region_iso": "CT" + }, + "legacy_id": [ + { + "categoryId": 3, + "eventId": 682 + } + ], + "circuit": { + "id": "2218098d-ab2d-498b-a633-1a4a39119e9e", + "name": "Circuit de Barcelona-Catalunya", + "legacy_id": 13, + "place": "Barcelona", + "nation": "SPA" + }, + "event_files": { + "circuit_information": { + "url": "", + "menu_position": 1 + }, + "podiums": { + "url": "", + "menu_position": 2 + }, + "pole_positions": { + "url": "", + "menu_position": 2 + }, + "nations_statistics": { + "url": "", + "menu_position": 2 + }, + "riders_all_time": { + "url": "", + "menu_position": 2 + } + }, + "test": true, + "short_name": "CT1", + "world_standing_files": null + }, + { + "id": "2284c891-9f88-4a18-b6aa-cad2456f1734", + "name": "MISANO MOTOGP\u2122 OFFICIAL TEST ", + "sponsored_name": "Misano MotoGP\u2122 Official Test ", + "date_start": "2022-09-06", + "date_end": "2022-09-07", + "country": { + "iso": "IT", + "name": "Italy", + "region_iso": "" + }, + "legacy_id": [ + { + "categoryId": 3, + "eventId": 683 + } + ], + "circuit": { + "id": "e0d07d48-0b62-40fa-9d36-411b15af406f", + "name": "Misano World Circuit Marco Simoncelli", + "legacy_id": 38, + "place": "Misano Adriatico", + "nation": "ITA" + }, + "event_files": { + "circuit_information": { + "url": "", + "menu_position": 1 + }, + "podiums": { + "url": "", + "menu_position": 2 + }, + "pole_positions": { + "url": "", + "menu_position": 2 + }, + "nations_statistics": { + "url": "", + "menu_position": 2 + }, + "riders_all_time": { + "url": "", + "menu_position": 2 + } + }, + "test": true, + "short_name": "MI1", + "world_standing_files": null + } +] \ No newline at end of file diff --git a/src/test/resources/__files/pdf/2022_JEREZ_MotoGP____OFFICIAL_TEST_classification_2.pdf b/src/test/resources/__files/pdf/2022_JEREZ_MotoGP____OFFICIAL_TEST_classification_2.pdf new file mode 100644 index 0000000..715027d Binary files /dev/null and b/src/test/resources/__files/pdf/2022_JEREZ_MotoGP____OFFICIAL_TEST_classification_2.pdf differ diff --git a/src/test/resources/__files/pdf/Classification-qat-mgp-fp3.pdf b/src/test/resources/__files/pdf/Classification-qat-mgp-fp3.pdf new file mode 100644 index 0000000..d478378 Binary files /dev/null and b/src/test/resources/__files/pdf/Classification-qat-mgp-fp3.pdf differ diff --git a/src/test/resources/__files/rider/158.json b/src/test/resources/__files/rider/158.json index dd0cfe6..10ee597 100644 --- a/src/test/resources/__files/rider/158.json +++ b/src/test/resources/__files/rider/158.json @@ -1 +1,1150 @@ -{"id":"d6f009a8-5a57-49b1-8c68-a9c78349d500","name":"Valentino","surname":"Rossi","nickname":null,"country":{"iso":"IT","name":"Italy"},"birth_city":"Urbino","birth_date":"1979-02-16","physical_attributes":{"height":181,"weight":69},"career":[{"season":2021,"number":46,"sponsored_team":"Petronas Yamaha SRT","team":{"id":"21b54b4c-a6f2-40bb-b4b7-1d8f3b8a431c","constructor":{"id":"f2e835be-7fab-4782-a26b-de3d583d132c","name":"Yamaha","legacy_id":3},"name":"Petronas Yamaha SRT","legacy_id":46,"color":"#1e4374","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/7/0/7064589f-b982-4976-a29c-9c72737a40cb/Petronas-Yamaha_SRT.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":"VR46","current":false,"pictures":{"profile":{"main":"https://photos.motogp.com/riders/e/3/e31a303a-aa26-4f46-8188-f9805042302c/profile/main/_0001_46-Valentino-Rossi,-Rider_A7R1639.png","secondary":null},"bike":{"main":"https://photos.motogp.com/riders/e/3/e31a303a-aa26-4f46-8188-f9805042302c/bike/main/_0003_46-Valentino-Rossi,-Bike_LG87415.png","secondary":null},"helmet":{"main":"https://photos.motogp.com/riders/e/3/e31a303a-aa26-4f46-8188-f9805042302c/helmet/main/_0003_46-Valentino-Rossi,-Helmet_LG61718.jpg","secondary":null},"number":"https://photos.motogp.com/riders/7/1/71b14519-df5f-4785-813c-2c2845d3d088/number/46-Valentino-Rossi.png","portrait":"https://photos.motogp.com/riders/4/4/44164edc-d80c-461c-baa5-186805f84faf/portrait/_0001_46-Valentino-Rossi,Rider_A7R1635.jpg"}},{"season":2020,"number":46,"sponsored_team":"Monster Energy Yamaha MotoGP","team":{"id":"141b6f0f-7e53-4d27-9bdb-0ea8fba7e842","constructor":{"id":"f2e835be-7fab-4782-a26b-de3d583d132c","name":"Yamaha","legacy_id":3},"name":"Monster Energy Yamaha MotoGP™","legacy_id":19,"color":"#183dc7","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/9/1/91699bb4-f33d-40de-b995-4f5e120ff74d/Yamaha.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":"VR46","current":false,"pictures":{"profile":{"main":"https://photos.motogp.com/riders/0/4/045abba2-8bc0-40b1-9a27-29e8501faa58/profile/main/1_0016_46-Valentino-Rossi-ITA,-Body_DSC7077.png","secondary":null},"bike":{"main":"https://photos.motogp.com/riders/8/0/8074466b-e90c-464a-b072-babe478a3830/bike/main/46-Valentino-Rossi.png","secondary":null},"helmet":{"main":"https://photos.motogp.com/riders/e/8/e8e8cc55-8103-4627-b618-f6c915681a18/helmet/main/46-Valentino-Rossi.jpg","secondary":null},"number":"https://photos.motogp.com/2019/dorsales/3/158.png","portrait":"https://photos.motogp.com/riders/0/b/0bb8d1a1-2fd0-42e4-b9d4-4508e02e7310/portrait/46_Valentino_Rossi.jpg"}},{"season":2019,"number":46,"sponsored_team":"Monster Energy Yamaha MotoGP","team":{"id":"141b6f0f-7e53-4d27-9bdb-0ea8fba7e842","constructor":{"id":"f2e835be-7fab-4782-a26b-de3d583d132c","name":"Yamaha","legacy_id":3},"name":"Monster Energy Yamaha MotoGP™","legacy_id":19,"color":"#183dc7","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/9/1/91699bb4-f33d-40de-b995-4f5e120ff74d/Yamaha.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2019/riders/motogp/bike/original/rider_158_1552058461.jpg","secondary":null},"helmet":{"main":null,"secondary":null},"number":"https://photos.motogp.com/2019/dorsales/3/158.png","portrait":"https://photos.motogp.com/2019/riders/motogp/grid/original/rider_158_1554806223.jpg"}},{"season":2018,"number":46,"sponsored_team":"Monster Energy Yamaha MotoGP","team":{"id":"141b6f0f-7e53-4d27-9bdb-0ea8fba7e842","constructor":{"id":"f2e835be-7fab-4782-a26b-de3d583d132c","name":"Yamaha","legacy_id":3},"name":"Monster Energy Yamaha MotoGP™","legacy_id":19,"color":"#183dc7","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/9/1/91699bb4-f33d-40de-b995-4f5e120ff74d/Yamaha.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2018/riders/motogp/bike/original/rider_158_1521313209.jpg","secondary":null},"helmet":{"main":"https://photos.motogp.com/2018/riders/motogp/helmet/original/rider_158_1521312868.jpg","secondary":null},"number":"https://photos.motogp.com/2018/dorsales/3/158.png","portrait":"https://photos.motogp.com/2018/riders/motogp/grid/original/rider_158_1521213902.jpg"}},{"season":2017,"number":46,"sponsored_team":"Movistar Yamaha MotoGP","team":{"id":"a9d4c4e8-1233-4f5b-a83a-d6437d91d9c4","constructor":{"id":"f2e835be-7fab-4782-a26b-de3d583d132c","name":"Yamaha","legacy_id":3},"name":"Movistar Yamaha MotoGP","legacy_id":19,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/motogp/original/team_bike_19_1574329098.jpg","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2017/riders/motogp/bike/original/rider_158_1490377892.jpg","secondary":null},"helmet":{"main":"https://photos.motogp.com/2017/riders/motogp/helmet/original/rider_158_1490543541.jpg","secondary":null},"number":null,"portrait":"https://photos.motogp.com/2017/riders/motogp/grid/original/rider_158_1490884002.jpg"}},{"season":2016,"number":46,"sponsored_team":"Movistar Yamaha MotoGP","team":{"id":"a9d4c4e8-1233-4f5b-a83a-d6437d91d9c4","constructor":{"id":"f2e835be-7fab-4782-a26b-de3d583d132c","name":"Yamaha","legacy_id":3},"name":"Movistar Yamaha MotoGP","legacy_id":19,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/motogp/original/team_bike_19_1574329098.jpg","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2016/riders/motogp/bike/original/rider_158_1458324161.jpg","secondary":null},"helmet":{"main":"https://photos.motogp.com/2016/riders/motogp/helmet/original/rider_158_1458324097.jpg","secondary":null},"number":null,"portrait":"https://photos.motogp.com/2016/riders/motogp/grid/original/rider_158_1464880445.jpg"}},{"season":2015,"number":46,"sponsored_team":"Movistar Yamaha MotoGP","team":{"id":"a9d4c4e8-1233-4f5b-a83a-d6437d91d9c4","constructor":{"id":"f2e835be-7fab-4782-a26b-de3d583d132c","name":"Yamaha","legacy_id":3},"name":"Movistar Yamaha MotoGP","legacy_id":19,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/motogp/original/team_bike_19_1574329098.jpg","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/158"}},{"season":2014,"number":46,"sponsored_team":"Movistar Yamaha MotoGP","team":{"id":"a9d4c4e8-1233-4f5b-a83a-d6437d91d9c4","constructor":{"id":"f2e835be-7fab-4782-a26b-de3d583d132c","name":"Yamaha","legacy_id":3},"name":"Movistar Yamaha MotoGP","legacy_id":19,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/motogp/original/team_bike_19_1574329098.jpg","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/158"}},{"season":2013,"number":46,"sponsored_team":"Yamaha Factory Racing","team":{"id":"b48510f9-ef43-406a-b643-0367316ada60","constructor":{"id":"f2e835be-7fab-4782-a26b-de3d583d132c","name":"Yamaha","legacy_id":3},"name":"Yamaha Factory Racing","legacy_id":19,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/motogp/original/team_bike_19_1574329098.jpg","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/158"}},{"season":2012,"number":46,"sponsored_team":"Ducati Team","team":{"id":"892fff2f-7402-4fbd-99fb-5fd567d8a80c","constructor":{"id":"38af1078-e2f1-4399-811c-1e98cf6f6150","name":"Ducati","legacy_id":110},"name":"Ducati Lenovo Team","legacy_id":15,"color":"#f92515","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/7/d/7da82702-139c-4a2c-8ee3-a1478cb43c37/ducatilenovo.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/158"}},{"season":2011,"number":46,"sponsored_team":"Ducati Team","team":{"id":"892fff2f-7402-4fbd-99fb-5fd567d8a80c","constructor":{"id":"38af1078-e2f1-4399-811c-1e98cf6f6150","name":"Ducati","legacy_id":110},"name":"Ducati Lenovo Team","legacy_id":15,"color":"#f92515","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/7/d/7da82702-139c-4a2c-8ee3-a1478cb43c37/ducatilenovo.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/158"}},{"season":2010,"number":46,"sponsored_team":"Fiat Yamaha Team","team":{"id":"8adff17d-9675-4e7a-bb36-16383245e2f5","constructor":{"id":"f2e835be-7fab-4782-a26b-de3d583d132c","name":"Yamaha","legacy_id":3},"name":"Fiat Yamaha Team","legacy_id":19,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/motogp/original/team_bike_19_1574329098.jpg","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/158"}},{"season":2009,"number":46,"sponsored_team":"Fiat Yamaha Team","team":{"id":"8adff17d-9675-4e7a-bb36-16383245e2f5","constructor":{"id":"f2e835be-7fab-4782-a26b-de3d583d132c","name":"Yamaha","legacy_id":3},"name":"Fiat Yamaha Team","legacy_id":19,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/motogp/original/team_bike_19_1574329098.jpg","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/158"}},{"season":2008,"number":46,"sponsored_team":"Fiat Yamaha Team","team":{"id":"8adff17d-9675-4e7a-bb36-16383245e2f5","constructor":{"id":"f2e835be-7fab-4782-a26b-de3d583d132c","name":"Yamaha","legacy_id":3},"name":"Fiat Yamaha Team","legacy_id":19,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/motogp/original/team_bike_19_1574329098.jpg","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/158"}},{"season":2007,"number":46,"sponsored_team":"Fiat Yamaha Team","team":{"id":"8adff17d-9675-4e7a-bb36-16383245e2f5","constructor":{"id":"f2e835be-7fab-4782-a26b-de3d583d132c","name":"Yamaha","legacy_id":3},"name":"Fiat Yamaha Team","legacy_id":19,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/motogp/original/team_bike_19_1574329098.jpg","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/158"}},{"season":2006,"number":46,"sponsored_team":"Camel Yamaha Team","team":{"id":"8692a197-6a85-4be8-a998-c7d73bd59f8d","constructor":{"id":"f2e835be-7fab-4782-a26b-de3d583d132c","name":"Yamaha","legacy_id":3},"name":"Camel Yamaha Team","legacy_id":19,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/motogp/original/team_bike_19_1574329098.jpg","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/158"}},{"season":2005,"number":46,"sponsored_team":"Yamaha Factory Racing","team":{"id":"add039d0-00f9-4e91-bfb0-d5bd7d744b41","constructor":{"id":"f2e835be-7fab-4782-a26b-de3d583d132c","name":"Yamaha","legacy_id":3},"name":"Gauloises Yamaha Team","legacy_id":19,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/motogp/original/team_bike_19_1574329098.jpg","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/158"}},{"season":2004,"number":46,"sponsored_team":"Gauloises Fortuna Yamaha","team":{"id":"486e1a90-8dce-41e0-bab2-cd14d8ef94bd","constructor":{"id":"f2e835be-7fab-4782-a26b-de3d583d132c","name":"Yamaha","legacy_id":3},"name":"Gauloises Fortuna Yamaha","legacy_id":19,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/motogp/original/team_bike_19_1574329098.jpg","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/158"}},{"season":2003,"number":46,"sponsored_team":"Repsol Honda","team":{"id":"def0e14c-f0c2-4730-a0d5-9217d4a5a437","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Repsol Honda","legacy_id":14,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/motogp/original/team_bike_14_1574329096.jpg","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/158"}},{"season":2002,"number":46,"sponsored_team":"Repsol Honda Team","team":{"id":"ce837bd3-bc07-40ef-83cf-6a8025bededf","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Repsol Honda Team","legacy_id":14,"color":"#ff9912","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/158"}},{"season":2001,"number":0,"sponsored_team":null,"team":{"id":"ce837bd3-bc07-40ef-83cf-6a8025bededf","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Repsol Honda Team","legacy_id":14,"color":"#ff9912","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png","published":true},"category":{"id":"5a2a0bae-2060-475e-867d-3b6a34dbe370","name":"500cc","legacy_id":-1},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/158"}},{"season":2000,"number":0,"sponsored_team":null,"team":{"id":"ce837bd3-bc07-40ef-83cf-6a8025bededf","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Repsol Honda Team","legacy_id":14,"color":"#ff9912","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png","published":true},"category":{"id":"5a2a0bae-2060-475e-867d-3b6a34dbe370","name":"500cc","legacy_id":-1},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/158"}},{"season":1999,"number":0,"sponsored_team":null,"team":{"id":"ce837bd3-bc07-40ef-83cf-6a8025bededf","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Repsol Honda Team","legacy_id":14,"color":"#ff9912","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png","published":true},"category":{"id":"f4c00279-2ae2-42fa-8bce-01c5eaedf392","name":"250cc","legacy_id":5},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/158"}},{"season":1998,"number":0,"sponsored_team":null,"team":{"id":"ce837bd3-bc07-40ef-83cf-6a8025bededf","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Repsol Honda Team","legacy_id":14,"color":"#ff9912","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png","published":true},"category":{"id":"f4c00279-2ae2-42fa-8bce-01c5eaedf392","name":"250cc","legacy_id":5},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/158"}},{"season":1997,"number":0,"sponsored_team":null,"team":{"id":"ce837bd3-bc07-40ef-83cf-6a8025bededf","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Repsol Honda Team","legacy_id":14,"color":"#ff9912","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png","published":true},"category":{"id":"578be24b-3cd6-498f-9ed8-f0817be88467","name":"125cc","legacy_id":10},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/158"}},{"season":1996,"number":0,"sponsored_team":null,"team":{"id":"ce837bd3-bc07-40ef-83cf-6a8025bededf","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Repsol Honda Team","legacy_id":14,"color":"#ff9912","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png","published":true},"category":{"id":"578be24b-3cd6-498f-9ed8-f0817be88467","name":"125cc","legacy_id":10},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/158"}}],"biography":{"text":"The only rider in history to win 125, 250, 500 and MotoGP™ World Championships, Valentino Rossi dominated MotoGP™ with first Honda and then Yamaha, taking the crown five times in a row until Nicky Hayden won the title in 2006. Back on top in 2008 and 2009, the Italian was then beaten to the crown by teammate Jorge Lorenzo in 2010 and left to join the factory Ducati Team. After three podiums over a tough two seasons, the rider from Tavullia was back at Yamaha for 2013 and took his first win in three years in Assen. Runner up in the title in 2014, Rossi then fought for his tenth crown in 2015 but was beaten in the final race by Lorenzo once again. 2016 has seen more pole positions, podiums and race wins and saw the Italian runner up once again; remaining with Movistar Yamaha MotoGP for 2017 with new teammate Maverick Viñales. Another win, at the Dutch GP at the TT Circuit Assen, was the jewel in another successful season – but struggles for the team with low grip and a broken leg sustained in training just before Misano put a damper on the latter half of the year. Rossi impressed to come back from his injury after only three weeks, however, and took another podium before the end of the year, coming second in the awesome showdown at Phillip Island. For 2018, the Italian remained with Yamaha and took another top three overall in the standings, but Rossi didn't stand on the top step in 2018. No win would come Rossi’s way in 2019 either, two podiums in the opening three races would be the only time we saw the number 46 spray the bubbly, while it didn’t get better in 2020, with third in the Andalusian GP his season best result. 2021 sees him make the move to Petronas SRT where he can link up with his academy graduate Franco Morbidelli. Will the change of scenery spark new life into the MotoGP™ veteran?","media":{"video":null,"picture":"https://photos.motogp.com/riders/a/4/a433e4a6-e6a7-427c-95f8-c8a3dbb291a3/biography/46_Valentino_Rossi_DSC7537.jpg"}},"legend":true,"legacy_id":158,"merchandise_url":"https://store.motogp.com/en/46-valentino-rossi-merchandise?utm_source=motogp.com&utm_medium=Link&utm_content=VR46&utm_campaign=Store&o=motogp-riders-stats","published":true,"injured":false,"banned":false,"wildcard":false} \ No newline at end of file +{ + "id": "d6f009a8-5a57-49b1-8c68-a9c78349d500", + "name": "Valentino", + "surname": "Rossi", + "nickname": null, + "country": { + "iso": "IT", + "name": "Italy" + }, + "birth_city": "Urbino", + "birth_date": "1979-02-16", + "physical_attributes": { + "height": 181, + "weight": 69 + }, + "career": [ + { + "season": 2021, + "number": 46, + "sponsored_team": "Petronas Yamaha SRT", + "team": { + "id": "21b54b4c-a6f2-40bb-b4b7-1d8f3b8a431c", + "constructor": { + "id": "f2e835be-7fab-4782-a26b-de3d583d132c", + "name": "Yamaha", + "legacy_id": 3 + }, + "name": "Petronas Yamaha SRT", + "legacy_id": 46, + "color": "#1e4374", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/7/0/7064589f-b982-4976-a29c-9c72737a40cb/Petronas-Yamaha_SRT.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "VR46", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/e/3/e31a303a-aa26-4f46-8188-f9805042302c/profile/main/_0001_46-Valentino-Rossi,-Rider_A7R1639.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/e/3/e31a303a-aa26-4f46-8188-f9805042302c/bike/main/_0003_46-Valentino-Rossi,-Bike_LG87415.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/e/3/e31a303a-aa26-4f46-8188-f9805042302c/helmet/main/_0003_46-Valentino-Rossi,-Helmet_LG61718.jpg", + "secondary": null + }, + "number": "http://localhost:8089/riders/7/1/71b14519-df5f-4785-813c-2c2845d3d088/number/46-Valentino-Rossi.png", + "portrait": "http://localhost:8089/riders/4/4/44164edc-d80c-461c-baa5-186805f84faf/portrait/_0001_46-Valentino-Rossi,Rider_A7R1635.jpg" + } + }, + { + "season": 2020, + "number": 46, + "sponsored_team": "Monster Energy Yamaha MotoGP", + "team": { + "id": "141b6f0f-7e53-4d27-9bdb-0ea8fba7e842", + "constructor": { + "id": "f2e835be-7fab-4782-a26b-de3d583d132c", + "name": "Yamaha", + "legacy_id": 3 + }, + "name": "Monster Energy Yamaha MotoGP™", + "legacy_id": 19, + "color": "#183dc7", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/9/1/91699bb4-f33d-40de-b995-4f5e120ff74d/Yamaha.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "VR46", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/0/4/045abba2-8bc0-40b1-9a27-29e8501faa58/profile/main/1_0016_46-Valentino-Rossi-ITA,-Body_DSC7077.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/8/0/8074466b-e90c-464a-b072-babe478a3830/bike/main/46-Valentino-Rossi.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/e/8/e8e8cc55-8103-4627-b618-f6c915681a18/helmet/main/46-Valentino-Rossi.jpg", + "secondary": null + }, + "number": "http://localhost:8089/2019/dorsales/3/158.png", + "portrait": "http://localhost:8089/riders/0/b/0bb8d1a1-2fd0-42e4-b9d4-4508e02e7310/portrait/46_Valentino_Rossi.jpg" + } + }, + { + "season": 2019, + "number": 46, + "sponsored_team": "Monster Energy Yamaha MotoGP", + "team": { + "id": "141b6f0f-7e53-4d27-9bdb-0ea8fba7e842", + "constructor": { + "id": "f2e835be-7fab-4782-a26b-de3d583d132c", + "name": "Yamaha", + "legacy_id": 3 + }, + "name": "Monster Energy Yamaha MotoGP™", + "legacy_id": 19, + "color": "#183dc7", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/9/1/91699bb4-f33d-40de-b995-4f5e120ff74d/Yamaha.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2019/riders/motogp/bike/original/rider_158_1552058461.jpg", + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": "http://localhost:8089/2019/dorsales/3/158.png", + "portrait": "http://localhost:8089/2019/riders/motogp/grid/original/rider_158_1554806223.jpg" + } + }, + { + "season": 2018, + "number": 46, + "sponsored_team": "Monster Energy Yamaha MotoGP", + "team": { + "id": "141b6f0f-7e53-4d27-9bdb-0ea8fba7e842", + "constructor": { + "id": "f2e835be-7fab-4782-a26b-de3d583d132c", + "name": "Yamaha", + "legacy_id": 3 + }, + "name": "Monster Energy Yamaha MotoGP™", + "legacy_id": 19, + "color": "#183dc7", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/9/1/91699bb4-f33d-40de-b995-4f5e120ff74d/Yamaha.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2018/riders/motogp/bike/original/rider_158_1521313209.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2018/riders/motogp/helmet/original/rider_158_1521312868.jpg", + "secondary": null + }, + "number": "http://localhost:8089/2018/dorsales/3/158.png", + "portrait": "http://localhost:8089/2018/riders/motogp/grid/original/rider_158_1521213902.jpg" + } + }, + { + "season": 2017, + "number": 46, + "sponsored_team": "Movistar Yamaha MotoGP", + "team": { + "id": "a9d4c4e8-1233-4f5b-a83a-d6437d91d9c4", + "constructor": { + "id": "f2e835be-7fab-4782-a26b-de3d583d132c", + "name": "Yamaha", + "legacy_id": 3 + }, + "name": "Movistar Yamaha MotoGP", + "legacy_id": 19, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/motogp/original/team_bike_19_1574329098.jpg", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2017/riders/motogp/bike/original/rider_158_1490377892.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2017/riders/motogp/helmet/original/rider_158_1490543541.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2017/riders/motogp/grid/original/rider_158_1490884002.jpg" + } + }, + { + "season": 2016, + "number": 46, + "sponsored_team": "Movistar Yamaha MotoGP", + "team": { + "id": "a9d4c4e8-1233-4f5b-a83a-d6437d91d9c4", + "constructor": { + "id": "f2e835be-7fab-4782-a26b-de3d583d132c", + "name": "Yamaha", + "legacy_id": 3 + }, + "name": "Movistar Yamaha MotoGP", + "legacy_id": 19, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/motogp/original/team_bike_19_1574329098.jpg", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2016/riders/motogp/bike/original/rider_158_1458324161.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2016/riders/motogp/helmet/original/rider_158_1458324097.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2016/riders/motogp/grid/original/rider_158_1464880445.jpg" + } + }, + { + "season": 2015, + "number": 46, + "sponsored_team": "Movistar Yamaha MotoGP", + "team": { + "id": "a9d4c4e8-1233-4f5b-a83a-d6437d91d9c4", + "constructor": { + "id": "f2e835be-7fab-4782-a26b-de3d583d132c", + "name": "Yamaha", + "legacy_id": 3 + }, + "name": "Movistar Yamaha MotoGP", + "legacy_id": 19, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/motogp/original/team_bike_19_1574329098.jpg", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/158" + } + }, + { + "season": 2014, + "number": 46, + "sponsored_team": "Movistar Yamaha MotoGP", + "team": { + "id": "a9d4c4e8-1233-4f5b-a83a-d6437d91d9c4", + "constructor": { + "id": "f2e835be-7fab-4782-a26b-de3d583d132c", + "name": "Yamaha", + "legacy_id": 3 + }, + "name": "Movistar Yamaha MotoGP", + "legacy_id": 19, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/motogp/original/team_bike_19_1574329098.jpg", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/158" + } + }, + { + "season": 2013, + "number": 46, + "sponsored_team": "Yamaha Factory Racing", + "team": { + "id": "b48510f9-ef43-406a-b643-0367316ada60", + "constructor": { + "id": "f2e835be-7fab-4782-a26b-de3d583d132c", + "name": "Yamaha", + "legacy_id": 3 + }, + "name": "Yamaha Factory Racing", + "legacy_id": 19, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/motogp/original/team_bike_19_1574329098.jpg", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/158" + } + }, + { + "season": 2012, + "number": 46, + "sponsored_team": "Ducati Team", + "team": { + "id": "892fff2f-7402-4fbd-99fb-5fd567d8a80c", + "constructor": { + "id": "38af1078-e2f1-4399-811c-1e98cf6f6150", + "name": "Ducati", + "legacy_id": 110 + }, + "name": "Ducati Lenovo Team", + "legacy_id": 15, + "color": "#f92515", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/7/d/7da82702-139c-4a2c-8ee3-a1478cb43c37/ducatilenovo.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/158" + } + }, + { + "season": 2011, + "number": 46, + "sponsored_team": "Ducati Team", + "team": { + "id": "892fff2f-7402-4fbd-99fb-5fd567d8a80c", + "constructor": { + "id": "38af1078-e2f1-4399-811c-1e98cf6f6150", + "name": "Ducati", + "legacy_id": 110 + }, + "name": "Ducati Lenovo Team", + "legacy_id": 15, + "color": "#f92515", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/7/d/7da82702-139c-4a2c-8ee3-a1478cb43c37/ducatilenovo.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/158" + } + }, + { + "season": 2010, + "number": 46, + "sponsored_team": "Fiat Yamaha Team", + "team": { + "id": "8adff17d-9675-4e7a-bb36-16383245e2f5", + "constructor": { + "id": "f2e835be-7fab-4782-a26b-de3d583d132c", + "name": "Yamaha", + "legacy_id": 3 + }, + "name": "Fiat Yamaha Team", + "legacy_id": 19, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/motogp/original/team_bike_19_1574329098.jpg", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/158" + } + }, + { + "season": 2009, + "number": 46, + "sponsored_team": "Fiat Yamaha Team", + "team": { + "id": "8adff17d-9675-4e7a-bb36-16383245e2f5", + "constructor": { + "id": "f2e835be-7fab-4782-a26b-de3d583d132c", + "name": "Yamaha", + "legacy_id": 3 + }, + "name": "Fiat Yamaha Team", + "legacy_id": 19, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/motogp/original/team_bike_19_1574329098.jpg", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/158" + } + }, + { + "season": 2008, + "number": 46, + "sponsored_team": "Fiat Yamaha Team", + "team": { + "id": "8adff17d-9675-4e7a-bb36-16383245e2f5", + "constructor": { + "id": "f2e835be-7fab-4782-a26b-de3d583d132c", + "name": "Yamaha", + "legacy_id": 3 + }, + "name": "Fiat Yamaha Team", + "legacy_id": 19, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/motogp/original/team_bike_19_1574329098.jpg", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/158" + } + }, + { + "season": 2007, + "number": 46, + "sponsored_team": "Fiat Yamaha Team", + "team": { + "id": "8adff17d-9675-4e7a-bb36-16383245e2f5", + "constructor": { + "id": "f2e835be-7fab-4782-a26b-de3d583d132c", + "name": "Yamaha", + "legacy_id": 3 + }, + "name": "Fiat Yamaha Team", + "legacy_id": 19, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/motogp/original/team_bike_19_1574329098.jpg", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/158" + } + }, + { + "season": 2006, + "number": 46, + "sponsored_team": "Camel Yamaha Team", + "team": { + "id": "8692a197-6a85-4be8-a998-c7d73bd59f8d", + "constructor": { + "id": "f2e835be-7fab-4782-a26b-de3d583d132c", + "name": "Yamaha", + "legacy_id": 3 + }, + "name": "Camel Yamaha Team", + "legacy_id": 19, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/motogp/original/team_bike_19_1574329098.jpg", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/158" + } + }, + { + "season": 2005, + "number": 46, + "sponsored_team": "Yamaha Factory Racing", + "team": { + "id": "add039d0-00f9-4e91-bfb0-d5bd7d744b41", + "constructor": { + "id": "f2e835be-7fab-4782-a26b-de3d583d132c", + "name": "Yamaha", + "legacy_id": 3 + }, + "name": "Gauloises Yamaha Team", + "legacy_id": 19, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/motogp/original/team_bike_19_1574329098.jpg", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/158" + } + }, + { + "season": 2004, + "number": 46, + "sponsored_team": "Gauloises Fortuna Yamaha", + "team": { + "id": "486e1a90-8dce-41e0-bab2-cd14d8ef94bd", + "constructor": { + "id": "f2e835be-7fab-4782-a26b-de3d583d132c", + "name": "Yamaha", + "legacy_id": 3 + }, + "name": "Gauloises Fortuna Yamaha", + "legacy_id": 19, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/motogp/original/team_bike_19_1574329098.jpg", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/158" + } + }, + { + "season": 2003, + "number": 46, + "sponsored_team": "Repsol Honda", + "team": { + "id": "def0e14c-f0c2-4730-a0d5-9217d4a5a437", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Repsol Honda", + "legacy_id": 14, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/motogp/original/team_bike_14_1574329096.jpg", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/158" + } + }, + { + "season": 2002, + "number": 46, + "sponsored_team": "Repsol Honda Team", + "team": { + "id": "ce837bd3-bc07-40ef-83cf-6a8025bededf", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Repsol Honda Team", + "legacy_id": 14, + "color": "#ff9912", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/158" + } + }, + { + "season": 2001, + "number": 0, + "sponsored_team": null, + "team": { + "id": "ce837bd3-bc07-40ef-83cf-6a8025bededf", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Repsol Honda Team", + "legacy_id": 14, + "color": "#ff9912", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png", + "published": true + }, + "category": { + "id": "5a2a0bae-2060-475e-867d-3b6a34dbe370", + "name": "500cc", + "legacy_id": -1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/158" + } + }, + { + "season": 2000, + "number": 0, + "sponsored_team": null, + "team": { + "id": "ce837bd3-bc07-40ef-83cf-6a8025bededf", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Repsol Honda Team", + "legacy_id": 14, + "color": "#ff9912", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png", + "published": true + }, + "category": { + "id": "5a2a0bae-2060-475e-867d-3b6a34dbe370", + "name": "500cc", + "legacy_id": -1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/158" + } + }, + { + "season": 1999, + "number": 0, + "sponsored_team": null, + "team": { + "id": "ce837bd3-bc07-40ef-83cf-6a8025bededf", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Repsol Honda Team", + "legacy_id": 14, + "color": "#ff9912", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png", + "published": true + }, + "category": { + "id": "f4c00279-2ae2-42fa-8bce-01c5eaedf392", + "name": "250cc", + "legacy_id": 5 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/158" + } + }, + { + "season": 1998, + "number": 0, + "sponsored_team": null, + "team": { + "id": "ce837bd3-bc07-40ef-83cf-6a8025bededf", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Repsol Honda Team", + "legacy_id": 14, + "color": "#ff9912", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png", + "published": true + }, + "category": { + "id": "f4c00279-2ae2-42fa-8bce-01c5eaedf392", + "name": "250cc", + "legacy_id": 5 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/158" + } + }, + { + "season": 1997, + "number": 0, + "sponsored_team": null, + "team": { + "id": "ce837bd3-bc07-40ef-83cf-6a8025bededf", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Repsol Honda Team", + "legacy_id": 14, + "color": "#ff9912", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png", + "published": true + }, + "category": { + "id": "578be24b-3cd6-498f-9ed8-f0817be88467", + "name": "125cc", + "legacy_id": 10 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/158" + } + }, + { + "season": 1996, + "number": 0, + "sponsored_team": null, + "team": { + "id": "ce837bd3-bc07-40ef-83cf-6a8025bededf", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Repsol Honda Team", + "legacy_id": 14, + "color": "#ff9912", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png", + "published": true + }, + "category": { + "id": "578be24b-3cd6-498f-9ed8-f0817be88467", + "name": "125cc", + "legacy_id": 10 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/158" + } + } + ], + "biography": { + "text": "The only rider in history to win 125, 250, 500 and MotoGP™ World Championships, Valentino Rossi dominated MotoGP™ with first Honda and then Yamaha, taking the crown five times in a row until Nicky Hayden won the title in 2006. Back on top in 2008 and 2009, the Italian was then beaten to the crown by teammate Jorge Lorenzo in 2010 and left to join the factory Ducati Team. After three podiums over a tough two seasons, the rider from Tavullia was back at Yamaha for 2013 and took his first win in three years in Assen. Runner up in the title in 2014, Rossi then fought for his tenth crown in 2015 but was beaten in the final race by Lorenzo once again. 2016 has seen more pole positions, podiums and race wins and saw the Italian runner up once again; remaining with Movistar Yamaha MotoGP for 2017 with new teammate Maverick Viñales. Another win, at the Dutch GP at the TT Circuit Assen, was the jewel in another successful season – but struggles for the team with low grip and a broken leg sustained in training just before Misano put a damper on the latter half of the year. Rossi impressed to come back from his injury after only three weeks, however, and took another podium before the end of the year, coming second in the awesome showdown at Phillip Island. For 2018, the Italian remained with Yamaha and took another top three overall in the standings, but Rossi didn't stand on the top step in 2018. No win would come Rossi’s way in 2019 either, two podiums in the opening three races would be the only time we saw the number 46 spray the bubbly, while it didn’t get better in 2020, with third in the Andalusian GP his season best result. 2021 sees him make the move to Petronas SRT where he can link up with his academy graduate Franco Morbidelli. Will the change of scenery spark new life into the MotoGP™ veteran?", + "media": { + "video": null, + "picture": "http://localhost:8089/riders/a/4/a433e4a6-e6a7-427c-95f8-c8a3dbb291a3/biography/46_Valentino_Rossi_DSC7537.jpg" + } + }, + "legend": true, + "legacy_id": 158, + "merchandise_url": "http://localhost:8089/en/46-valentino-rossi-merchandise?utm_source=localhost:8089&utm_medium=Link&utm_content=VR46&utm_campaign=Store&o=motogp-riders-stats", + "published": true, + "injured": false, + "banned": false, + "wildcard": false +} \ No newline at end of file diff --git a/src/test/resources/__files/rider/5515.json b/src/test/resources/__files/rider/5515.json new file mode 100644 index 0000000..1aca040 --- /dev/null +++ b/src/test/resources/__files/rider/5515.json @@ -0,0 +1,935 @@ +{ + "id": "a8071fde-27fa-49f0-96c8-a53030fcd0dc", + "name": "Dani", + "surname": "Pedrosa", + "nickname": null, + "country": { + "iso": "ES", + "name": "Spain" + }, + "birth_city": "Sabadell", + "birth_date": "1985-09-29", + "physical_attributes": { + "height": 160, + "weight": 51 + }, + "career": [ + { + "season": 2022, + "number": 26, + "sponsored_team": "Red Bull KTM Factory Racing", + "team": { + "id": "0b6cc118-a286-4343-9020-fb53c6f77c1a", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "Red Bull KTM Factory Racing", + "legacy_id": 23, + "color": "#d65d2b", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/4/4/447bf79b-9960-40f0-996d-a2f5ac920650/RedBullKTM.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": false, + "short_nickname": " DP", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/2/b/2b10306e-2b9c-45af-884c-22c25548f97d/profile/main/26_Dani_Pedrosa.png", + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/riders/2/b/2b10306e-2b9c-45af-884c-22c25548f97d/portrait/26_Dani_Pedrosa.jpg" + } + }, + { + "season": 2021, + "number": 26, + "sponsored_team": "Red Bull KTM Factory Racing", + "team": { + "id": "0b6cc118-a286-4343-9020-fb53c6f77c1a", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "Red Bull KTM Factory Racing", + "legacy_id": 23, + "color": "#d65d2b", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/4/4/447bf79b-9960-40f0-996d-a2f5ac920650/RedBullKTM.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "DP26", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/2/b/2b10306e-2b9c-45af-884c-22c25548f97d/profile/main/26_Dani_Pedrosa.png", + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/riders/2/b/2b10306e-2b9c-45af-884c-22c25548f97d/portrait/26_Dani_Pedrosa.jpg" + } + }, + { + "season": 2020, + "number": 26, + "sponsored_team": "Red Bull KTM Factory Racing", + "team": { + "id": "0b6cc118-a286-4343-9020-fb53c6f77c1a", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "Red Bull KTM Factory Racing", + "legacy_id": 23, + "color": "#d65d2b", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/4/4/447bf79b-9960-40f0-996d-a2f5ac920650/RedBullKTM.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": false, + "short_nickname": "DP26", + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/riders/1/c/1ce96098-dba1-4e0c-ac84-9869e19348ac/portrait/rider_5515_1521213970.jpg" + } + }, + { + "season": 2018, + "number": 0, + "sponsored_team": null, + "team": { + "id": "ce837bd3-bc07-40ef-83cf-6a8025bededf", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Repsol Honda Team", + "legacy_id": 14, + "color": "#ee8633", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2018/riders/motogp/bike/original/rider_5515_1521313129.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2018/riders/motogp/helmet/original/rider_5515_1521312624.jpg", + "secondary": null + }, + "number": "http://localhost:8089/2018/dorsales/3/5515.png", + "portrait": "http://localhost:8089/2018/riders/motogp/grid/original/rider_5515_1521213970.jpg" + } + }, + { + "season": 2017, + "number": 26, + "sponsored_team": "Repsol Honda Team", + "team": { + "id": "ce837bd3-bc07-40ef-83cf-6a8025bededf", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Repsol Honda Team", + "legacy_id": 14, + "color": "#ee8633", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2017/riders/motogp/bike/original/rider_5515_1490378250.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2017/riders/motogp/helmet/original/rider_5515_1490543462.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2017/riders/motogp/grid/original/rider_5515_1490884031.jpg" + } + }, + { + "season": 2016, + "number": 26, + "sponsored_team": "Repsol Honda Team", + "team": { + "id": "ce837bd3-bc07-40ef-83cf-6a8025bededf", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Repsol Honda Team", + "legacy_id": 14, + "color": "#ee8633", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2016/riders/motogp/bike/original/rider_5515_1458324151.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2016/riders/motogp/helmet/original/rider_5515_1458324089.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2016/riders/motogp/grid/original/rider_5515_1485880213.jpg" + } + }, + { + "season": 2015, + "number": 26, + "sponsored_team": "Repsol Honda Team", + "team": { + "id": "ce837bd3-bc07-40ef-83cf-6a8025bededf", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Repsol Honda Team", + "legacy_id": 14, + "color": "#ee8633", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/tpl/css.motogp.com/img/riders/legends/206x181/rider_5515.jpg" + } + }, + { + "season": 2014, + "number": 26, + "sponsored_team": "Repsol Honda Team", + "team": { + "id": "ce837bd3-bc07-40ef-83cf-6a8025bededf", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Repsol Honda Team", + "legacy_id": 14, + "color": "#ee8633", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/tpl/css.motogp.com/img/riders/legends/206x181/rider_5515.jpg" + } + }, + { + "season": 2013, + "number": 26, + "sponsored_team": "Repsol Honda Team", + "team": { + "id": "ce837bd3-bc07-40ef-83cf-6a8025bededf", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Repsol Honda Team", + "legacy_id": 14, + "color": "#ee8633", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/tpl/css.motogp.com/img/riders/legends/206x181/rider_5515.jpg" + } + }, + { + "season": 2012, + "number": 26, + "sponsored_team": "Repsol Honda Team", + "team": { + "id": "ce837bd3-bc07-40ef-83cf-6a8025bededf", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Repsol Honda Team", + "legacy_id": 14, + "color": "#ee8633", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/tpl/css.motogp.com/img/riders/legends/206x181/rider_5515.jpg" + } + }, + { + "season": 2011, + "number": 26, + "sponsored_team": "Repsol Honda Team", + "team": { + "id": "ce837bd3-bc07-40ef-83cf-6a8025bededf", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Repsol Honda Team", + "legacy_id": 14, + "color": "#ee8633", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/tpl/css.motogp.com/img/riders/legends/206x181/rider_5515.jpg" + } + }, + { + "season": 2010, + "number": 26, + "sponsored_team": "Repsol Honda Team", + "team": { + "id": "ce837bd3-bc07-40ef-83cf-6a8025bededf", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Repsol Honda Team", + "legacy_id": 14, + "color": "#ee8633", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/tpl/css.motogp.com/img/riders/legends/206x181/rider_5515.jpg" + } + }, + { + "season": 2009, + "number": 3, + "sponsored_team": "Repsol Honda Team", + "team": { + "id": "ce837bd3-bc07-40ef-83cf-6a8025bededf", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Repsol Honda Team", + "legacy_id": 14, + "color": "#ee8633", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/tpl/css.motogp.com/img/riders/legends/206x181/rider_5515.jpg" + } + }, + { + "season": 2008, + "number": 2, + "sponsored_team": "Repsol Honda Team", + "team": { + "id": "ce837bd3-bc07-40ef-83cf-6a8025bededf", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Repsol Honda Team", + "legacy_id": 14, + "color": "#ee8633", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/tpl/css.motogp.com/img/riders/legends/206x181/rider_5515.jpg" + } + }, + { + "season": 2007, + "number": 26, + "sponsored_team": "Repsol Honda Team", + "team": { + "id": "ce837bd3-bc07-40ef-83cf-6a8025bededf", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Repsol Honda Team", + "legacy_id": 14, + "color": "#ee8633", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/tpl/css.motogp.com/img/riders/legends/206x181/rider_5515.jpg" + } + }, + { + "season": 2006, + "number": 26, + "sponsored_team": "Repsol Honda Team", + "team": { + "id": "ce837bd3-bc07-40ef-83cf-6a8025bededf", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Repsol Honda Team", + "legacy_id": 14, + "color": "#ee8633", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/tpl/css.motogp.com/img/riders/legends/206x181/rider_5515.jpg" + } + }, + { + "season": 2005, + "number": 0, + "sponsored_team": "Telefonica Movistar Honda 250cc", + "team": { + "id": "4805ecf3-24fd-42ee-a784-a45b4af1eb6e", + "constructor": { + "id": "cdb641bf-2ec0-41cd-9959-e4322000fae9", + "name": "Energica", + "legacy_id": 589 + }, + "name": "Telefonica Movistar Honda 250cc", + "legacy_id": 217, + "color": null, + "text_color": null, + "picture": null, + "published": true + }, + "category": { + "id": "f4c00279-2ae2-42fa-8bce-01c5eaedf392", + "name": "250cc", + "legacy_id": 5 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/tpl/css.motogp.com/img/riders/legends/206x181/rider_5515.jpg" + } + }, + { + "season": 2004, + "number": 0, + "sponsored_team": "Telefonica Movistar Honda 250cc", + "team": { + "id": "4805ecf3-24fd-42ee-a784-a45b4af1eb6e", + "constructor": { + "id": "cdb641bf-2ec0-41cd-9959-e4322000fae9", + "name": "Energica", + "legacy_id": 589 + }, + "name": "Telefonica Movistar Honda 250cc", + "legacy_id": 217, + "color": null, + "text_color": null, + "picture": null, + "published": true + }, + "category": { + "id": "f4c00279-2ae2-42fa-8bce-01c5eaedf392", + "name": "250cc", + "legacy_id": 5 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/tpl/css.motogp.com/img/riders/legends/206x181/rider_5515.jpg" + } + }, + { + "season": 2003, + "number": 3, + "sponsored_team": "Telefonica Movistar jnr Team", + "team": { + "id": "4805ecf3-24fd-42ee-a784-a45b4af1eb6e", + "constructor": { + "id": "cdb641bf-2ec0-41cd-9959-e4322000fae9", + "name": "Energica", + "legacy_id": 589 + }, + "name": "Telefonica Movistar Honda 250cc", + "legacy_id": 217, + "color": null, + "text_color": null, + "picture": null, + "published": true + }, + "category": { + "id": "578be24b-3cd6-498f-9ed8-f0817be88467", + "name": "125cc", + "legacy_id": 10 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/tpl/css.motogp.com/img/riders/legends/206x181/rider_5515.jpg" + } + }, + { + "season": 2002, + "number": 26, + "sponsored_team": "Telefonica Movistar jnr Team", + "team": { + "id": "4805ecf3-24fd-42ee-a784-a45b4af1eb6e", + "constructor": { + "id": "cdb641bf-2ec0-41cd-9959-e4322000fae9", + "name": "Energica", + "legacy_id": 589 + }, + "name": "Telefonica Movistar Honda 250cc", + "legacy_id": 217, + "color": null, + "text_color": null, + "picture": null, + "published": true + }, + "category": { + "id": "578be24b-3cd6-498f-9ed8-f0817be88467", + "name": "125cc", + "legacy_id": 10 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/tpl/css.motogp.com/img/riders/legends/206x181/rider_5515.jpg" + } + }, + { + "season": 2001, + "number": 0, + "sponsored_team": null, + "team": { + "id": "4805ecf3-24fd-42ee-a784-a45b4af1eb6e", + "constructor": { + "id": "cdb641bf-2ec0-41cd-9959-e4322000fae9", + "name": "Energica", + "legacy_id": 589 + }, + "name": "Telefonica Movistar Honda 250cc", + "legacy_id": 217, + "color": null, + "text_color": null, + "picture": null, + "published": true + }, + "category": { + "id": "578be24b-3cd6-498f-9ed8-f0817be88467", + "name": "125cc", + "legacy_id": 10 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/tpl/css.motogp.com/img/riders/legends/206x181/rider_5515.jpg" + } + } + ], + "biography": { + "text": "Dani Pedrosa finished third in the 125 World Championship in 2002 before taking the title the year after with time to spare. Moving up to the 250 World Championship the following year, Pedrosa then won that crown as a rookie and subsequently defended it despite suffering with injury. The Spaniard then moved up to MotoGP™ in 2006 and took two wins in his rookie year, including his fourth ever race in the class. A consistent frontrunner and title challenger, including taking the most wins in MotoGP™ in 2012, Pedrosa’s career has been plagued by some injuries – but the Sabadell native won at least one Grand Prix in every season of his career since 2002. In 2014, Pedrosa suffered problems with arm pump and early the following season underwent major, career-saving surgery. Finishing the year on a high with two spectacular wins once back to full strength, the Spaniard also won in Misano in 2016 after a tough season. Breaking his collarbone in Motegi, the 3-time World Champion was back to full strength for 2017 and kept his incredible record of at least one win a year rolling, taking victory in Jerez and Valencia. 2018 would prove the Spaniard's final season as a MotoGP™ racer, as he called it a day after failing to register a win or podium finish all year. Having ended his long association with Honda, Pedrosa soon signed a deal with KTM to take on the role of test driver and has proved instrumental in the Austrian manufacturer’s dramatic rise towards the top table of motorcycle racing. The Spaniard is set to make his first wildcard appearance on the RC-16 at the 2021 Styrian GP.", + "media": { + "video": null, + "picture": null + } + }, + "legend": true, + "legacy_id": 5515, + "merchandise_url": null, + "published": true, + "injured": false, + "banned": false, + "wildcard": false +} \ No newline at end of file diff --git a/src/test/resources/__files/rider/5687.json b/src/test/resources/__files/rider/5687.json new file mode 100644 index 0000000..098b98d --- /dev/null +++ b/src/test/resources/__files/rider/5687.json @@ -0,0 +1,591 @@ +{ + "id": "3f4a19c0-09ff-4106-82d3-0158309b9cc7", + "name": "Sylvain", + "surname": "Guintoli", + "nickname": null, + "country": { + "iso": "FR", + "name": "France" + }, + "birth_city": "Montelimar", + "birth_date": "1982-06-24", + "physical_attributes": { + "height": 179, + "weight": 62 + }, + "career": [ + { + "season": 2022, + "number": 50, + "sponsored_team": "Team SUZUKI ECSTAR", + "team": { + "id": "baac93d0-3068-4c7a-8d3f-ca215b568f77", + "constructor": { + "id": "de2d5a0a-83e3-4114-b5c6-72d10d8a9619", + "name": "Suzuki", + "legacy_id": 2 + }, + "name": "Team SUZUKI ECSTAR", + "legacy_id": 37, + "color": "#4294c1", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/6/a/6ae0f119-6c7c-4171-9062-b431459e7c18/Suzuki.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": false, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": "http://localhost:8089/2019/dorsales/3/5687.png", + "portrait": "http://localhost:8089/2019/riders/motogp/grid/original/rider_5687_1560497665.jpg" + } + }, + { + "season": 2021, + "number": 50, + "sponsored_team": "Team SUZUKI ECSTAR", + "team": { + "id": "baac93d0-3068-4c7a-8d3f-ca215b568f77", + "constructor": { + "id": "de2d5a0a-83e3-4114-b5c6-72d10d8a9619", + "name": "Suzuki", + "legacy_id": 2 + }, + "name": "Team SUZUKI ECSTAR", + "legacy_id": 37, + "color": "#4294c1", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/6/a/6ae0f119-6c7c-4171-9062-b431459e7c18/Suzuki.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": false, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": "http://localhost:8089/2019/dorsales/3/5687.png", + "portrait": "http://localhost:8089/2019/riders/motogp/grid/original/rider_5687_1560497665.jpg" + } + }, + { + "season": 2020, + "number": 50, + "sponsored_team": "Team SUZUKI ECSTAR", + "team": { + "id": "baac93d0-3068-4c7a-8d3f-ca215b568f77", + "constructor": { + "id": "de2d5a0a-83e3-4114-b5c6-72d10d8a9619", + "name": "Suzuki", + "legacy_id": 2 + }, + "name": "Team SUZUKI ECSTAR", + "legacy_id": 37, + "color": "#4294c1", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/6/a/6ae0f119-6c7c-4171-9062-b431459e7c18/Suzuki.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": false, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": "http://localhost:8089/2019/dorsales/3/5687.png", + "portrait": "http://localhost:8089/2019/riders/motogp/grid/original/rider_5687_1560497665.jpg" + } + }, + { + "season": 2019, + "number": 50, + "sponsored_team": "Team SUZUKI ECSTAR", + "team": { + "id": "baac93d0-3068-4c7a-8d3f-ca215b568f77", + "constructor": { + "id": "de2d5a0a-83e3-4114-b5c6-72d10d8a9619", + "name": "Suzuki", + "legacy_id": 2 + }, + "name": "Team SUZUKI ECSTAR", + "legacy_id": 37, + "color": "#4294c1", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/6/a/6ae0f119-6c7c-4171-9062-b431459e7c18/Suzuki.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": "http://localhost:8089/2019/dorsales/3/5687.png", + "portrait": "http://localhost:8089/2019/riders/motogp/grid/original/rider_5687_1560497665.jpg" + } + }, + { + "season": 2018, + "number": 0, + "sponsored_team": null, + "team": { + "id": "baac93d0-3068-4c7a-8d3f-ca215b568f77", + "constructor": { + "id": "de2d5a0a-83e3-4114-b5c6-72d10d8a9619", + "name": "Suzuki", + "legacy_id": 2 + }, + "name": "Team SUZUKI ECSTAR", + "legacy_id": 37, + "color": "#4294c1", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/6/a/6ae0f119-6c7c-4171-9062-b431459e7c18/Suzuki.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": "http://localhost:8089/2018/dorsales/3/5687.png", + "portrait": "http://localhost:8089/2018/riders/motogp/grid/original/rider_5687_1528994603.jpg" + } + }, + { + "season": 2017, + "number": 50, + "sponsored_team": "Team SUZUKI ECSTAR", + "team": { + "id": "baac93d0-3068-4c7a-8d3f-ca215b568f77", + "constructor": { + "id": "de2d5a0a-83e3-4114-b5c6-72d10d8a9619", + "name": "Suzuki", + "legacy_id": 2 + }, + "name": "Team SUZUKI ECSTAR", + "legacy_id": 37, + "color": "#4294c1", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/6/a/6ae0f119-6c7c-4171-9062-b431459e7c18/Suzuki.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2017/riders/motogp/grid/original/rider_5687_1495288031.jpg" + } + }, + { + "season": 2008, + "number": 50, + "sponsored_team": "Alice Team", + "team": { + "id": "9dfdaea8-7585-4952-9a95-bf0a08e52e7f", + "constructor": { + "id": "38af1078-e2f1-4399-811c-1e98cf6f6150", + "name": "Ducati", + "legacy_id": 110 + }, + "name": "Alice Team", + "legacy_id": 32, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/motogp/original/team_bike_32_1574329095.jpg", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/5687" + } + }, + { + "season": 2007, + "number": 50, + "sponsored_team": "Dunlop Yamaha Tech 3", + "team": { + "id": "4c0e2ab3-2901-4817-a0b8-9561f0b8b493", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "Dunlop Yamaha Tech 3", + "legacy_id": 11, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/motogp/original/team_bike_11_1574329097.jpg", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/5687" + } + }, + { + "season": 2006, + "number": 0, + "sponsored_team": "Equipe GP De France - Scrab", + "team": { + "id": "f196b309-db48-4f61-a565-4352b85c35c5", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "Equipe GP De France - Scrab", + "legacy_id": 206, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto2/original/team_bike_206_1583857092.jpg", + "published": true + }, + "category": { + "id": "f4c00279-2ae2-42fa-8bce-01c5eaedf392", + "name": "250cc", + "legacy_id": 5 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/5687" + } + }, + { + "season": 2005, + "number": 0, + "sponsored_team": "Equipe GP de France - Scrab", + "team": { + "id": "c2c84e98-119d-416a-a0c9-8c8dcfc2f0ce", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "Equipe GP de France - Scrab", + "legacy_id": 208, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto2/original/team_bike_208_1583857103.jpg", + "published": true + }, + "category": { + "id": "f4c00279-2ae2-42fa-8bce-01c5eaedf392", + "name": "250cc", + "legacy_id": 5 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/5687" + } + }, + { + "season": 2004, + "number": 0, + "sponsored_team": "Campetella Racing", + "team": { + "id": "15b652fa-5f8c-4344-8ea8-1991d9d9ae3c", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "Campetella Racing", + "legacy_id": 214, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto2/original/team_bike_214_1583857105.jpg", + "published": true + }, + "category": { + "id": "f4c00279-2ae2-42fa-8bce-01c5eaedf392", + "name": "250cc", + "legacy_id": 5 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/5687" + } + }, + { + "season": 2003, + "number": 0, + "sponsored_team": "Campetella Racing", + "team": { + "id": "15b652fa-5f8c-4344-8ea8-1991d9d9ae3c", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "Campetella Racing", + "legacy_id": 214, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto2/original/team_bike_214_1583857105.jpg", + "published": true + }, + "category": { + "id": "f4c00279-2ae2-42fa-8bce-01c5eaedf392", + "name": "250cc", + "legacy_id": 5 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/5687" + } + }, + { + "season": 2001, + "number": 0, + "sponsored_team": null, + "team": { + "id": "15b652fa-5f8c-4344-8ea8-1991d9d9ae3c", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "Campetella Racing", + "legacy_id": 214, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto2/original/team_bike_214_1583857105.jpg", + "published": true + }, + "category": { + "id": "f4c00279-2ae2-42fa-8bce-01c5eaedf392", + "name": "250cc", + "legacy_id": 5 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/5687" + } + } + ], + "biography": { + "text": "Winner of the French National Open 250cc Championship and third in the European series in 2000, Sylvain Guintoli made his World Championship debut the following season with the Equipe de France GP team. After one season in the 250cc championship for the French team he was given a wildcard ride in MotoGP with the Yamaha Tech 3 team in 2002, debuting at Brno. After four consecutive seasons impressing as a 250cc privateer, Guintoli joined the Yamaha satellite team for a full MotoGP season in 2007, only missing the points three times from seventeen rounds. He made the move to the satellite Alice Ducati team in 2008, finishing the season in 13th.  The Frenchman had another wildcard appearance in 2011 with the satellite Pramac Ducati team at Sachsenring. In 2014 Guintoli took the WorldSBK crown, and returned to the MotoGP™ grid to replace Alex Rins in 2017 at Team Suzuki Ecstar as the Spaniard recovered from a broken wrist.", + "media": { + "video": null, + "picture": null + } + }, + "legend": false, + "legacy_id": 5687, + "merchandise_url": null, + "published": true, + "injured": false, + "banned": false, + "wildcard": false +} \ No newline at end of file diff --git a/src/test/resources/__files/rider/5885.json b/src/test/resources/__files/rider/5885.json new file mode 100644 index 0000000..615c7ab --- /dev/null +++ b/src/test/resources/__files/rider/5885.json @@ -0,0 +1,935 @@ +{ + "id": "fe9fa956-0cd0-4009-9484-25e7cb5bdf88", + "name": "Andrea", + "surname": "Dovizioso", + "nickname": null, + "country": { + "iso": "IT", + "name": "Italy" + }, + "birth_city": "Forlimpopoli ", + "birth_date": "1986-03-23", + "physical_attributes": { + "height": 165, + "weight": 68 + }, + "career": [ + { + "season": 2022, + "number": 4, + "sponsored_team": "WithU Yamaha RNF MotoGP™ Team", + "team": { + "id": "c91950d9-f784-4a16-a8fa-591e7e028dcf", + "constructor": { + "id": "f2e835be-7fab-4782-a26b-de3d583d132c", + "name": "Yamaha", + "legacy_id": 3 + }, + "name": "WithU Yamaha RNF MotoGP™ Team", + "legacy_id": 46, + "color": "#6d6e71", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/b/2/b2036bcc-48c9-441d-9ad0-0405d83065fc/RNF.png", + "published": false + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": false, + "short_nickname": "AD04", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/4/7/47a5a003-e692-4e97-a5e9-0ac4bcfc5ca6/profile/main/04_Andrea_Dovizioso_MotoGP_DS_6569.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/4/7/47a5a003-e692-4e97-a5e9-0ac4bcfc5ca6/bike/main/_0010_04-Andrea-Dovizioso-BikeDSC06482.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/4/7/47a5a003-e692-4e97-a5e9-0ac4bcfc5ca6/helmet/main/04-Andrea-Dovizioso.jpg", + "secondary": null + }, + "number": "http://localhost:8089/riders/a/a/aaaffe16-4dad-45f6-a706-e0cdc6f0f3eb/number/04_Andrea_Dovizioso.png", + "portrait": "http://localhost:8089/riders/2/a/2a73aa8a-629b-4425-8a0a-36aee0fcc103/portrait/04-Andrea-Dovizioso.jpg" + } + }, + { + "season": 2021, + "number": 4, + "sponsored_team": "Petronas Yamaha SRT", + "team": { + "id": "21b54b4c-a6f2-40bb-b4b7-1d8f3b8a431c", + "constructor": { + "id": "f2e835be-7fab-4782-a26b-de3d583d132c", + "name": "Yamaha", + "legacy_id": 3 + }, + "name": "Petronas Yamaha SRT", + "legacy_id": 46, + "color": "#1e4374", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/7/0/7064589f-b982-4976-a29c-9c72737a40cb/Petronas-Yamaha_SRT.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "AD04", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/5/1/5126a93e-5e73-4096-bab6-7c5a3e2d601e/profile/main/04_Andrea-Dovizioso.png", + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": "http://localhost:8089/riders/4/a/4af9663a-e307-4e87-8c54-974e688b1797/number/04_Andrea_Dovizioso.png", + "portrait": "http://localhost:8089/riders/5/1/5126a93e-5e73-4096-bab6-7c5a3e2d601e/portrait/04-Andrea-Dovizioso.jpg" + } + }, + { + "season": 2020, + "number": 4, + "sponsored_team": "Ducati Team", + "team": { + "id": "892fff2f-7402-4fbd-99fb-5fd567d8a80c", + "constructor": { + "id": "38af1078-e2f1-4399-811c-1e98cf6f6150", + "name": "Ducati", + "legacy_id": 110 + }, + "name": "Ducati Lenovo Team", + "legacy_id": 15, + "color": "#cc0000", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/7/d/7da82702-139c-4a2c-8ee3-a1478cb43c37/ducatilenovo.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "AD04", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/f/3/f36b38b7-6159-4a4b-8062-299dbb038fc9/profile/main/1_0000_04-Andrea-Dovizioso-ITA,-Body_DSC7099.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/5/0/50df8983-d3e8-45d8-9957-b021ce2bfb70/bike/main/04-Andrea-Dovizioso.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/9/d/9d031a5e-95a1-498b-97f4-581514e152e4/helmet/main/04-Andrea-Dovizioso.jpg", + "secondary": null + }, + "number": "http://localhost:8089/riders/d/7/d76f48c6-0aa6-4d19-bc04-fb9c11ee8a2b/number/04_Andrea_Dovizioso.png", + "portrait": "http://localhost:8089/riders/c/a/ca1510e2-8203-4f35-a524-11aa3ab339d6/portrait/04_Andrea_Dovizioso.jpg" + } + }, + { + "season": 2019, + "number": 4, + "sponsored_team": "Ducati Team", + "team": { + "id": "892fff2f-7402-4fbd-99fb-5fd567d8a80c", + "constructor": { + "id": "38af1078-e2f1-4399-811c-1e98cf6f6150", + "name": "Ducati", + "legacy_id": 110 + }, + "name": "Ducati Lenovo Team", + "legacy_id": 15, + "color": "#cc0000", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/7/d/7da82702-139c-4a2c-8ee3-a1478cb43c37/ducatilenovo.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2019/riders/motogp/bike/original/rider_5885_1568365169.jpg", + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": "http://localhost:8089/2019/dorsales/3/5885.png", + "portrait": "http://localhost:8089/2019/riders/motogp/grid/original/rider_5885_1583942973.jpg" + } + }, + { + "season": 2018, + "number": 4, + "sponsored_team": "Mission Winnow Ducati", + "team": { + "id": "ed649579-e0e3-427d-bdfc-594936b4e106", + "constructor": { + "id": "38af1078-e2f1-4399-811c-1e98cf6f6150", + "name": "Ducati", + "legacy_id": 110 + }, + "name": "Mission Winnow Ducati", + "legacy_id": 15, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/motogp/original/team_bike_15_1574329098.jpg", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2018/riders/motogp/bike/original/rider_5885_1521313112.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2018/riders/motogp/helmet/original/rider_5885_1521312588.jpg", + "secondary": null + }, + "number": "http://localhost:8089/2018/dorsales/3/5885.png", + "portrait": "http://localhost:8089/2018/riders/motogp/grid/original/rider_5885_1521213940.jpg" + } + }, + { + "season": 2017, + "number": 4, + "sponsored_team": "Ducati Team", + "team": { + "id": "892fff2f-7402-4fbd-99fb-5fd567d8a80c", + "constructor": { + "id": "38af1078-e2f1-4399-811c-1e98cf6f6150", + "name": "Ducati", + "legacy_id": 110 + }, + "name": "Ducati Lenovo Team", + "legacy_id": 15, + "color": "#cc0000", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/7/d/7da82702-139c-4a2c-8ee3-a1478cb43c37/ducatilenovo.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2017/riders/motogp/bike/original/rider_5885_1490378425.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2017/riders/motogp/helmet/original/rider_5885_1490543444.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2017/riders/motogp/grid/original/rider_5885_1490884074.jpg" + } + }, + { + "season": 2016, + "number": 4, + "sponsored_team": "Ducati Team", + "team": { + "id": "892fff2f-7402-4fbd-99fb-5fd567d8a80c", + "constructor": { + "id": "38af1078-e2f1-4399-811c-1e98cf6f6150", + "name": "Ducati", + "legacy_id": 110 + }, + "name": "Ducati Lenovo Team", + "legacy_id": 15, + "color": "#cc0000", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/7/d/7da82702-139c-4a2c-8ee3-a1478cb43c37/ducatilenovo.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2016/riders/motogp/bike/original/rider_5885_1458324145.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2016/riders/motogp/helmet/original/rider_5885_1458324084.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2016/riders/motogp/grid/original/rider_5885_1479299306.jpg" + } + }, + { + "season": 2015, + "number": 4, + "sponsored_team": "Ducati Team", + "team": { + "id": "892fff2f-7402-4fbd-99fb-5fd567d8a80c", + "constructor": { + "id": "38af1078-e2f1-4399-811c-1e98cf6f6150", + "name": "Ducati", + "legacy_id": 110 + }, + "name": "Ducati Lenovo Team", + "legacy_id": 15, + "color": "#cc0000", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/7/d/7da82702-139c-4a2c-8ee3-a1478cb43c37/ducatilenovo.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/5885" + } + }, + { + "season": 2014, + "number": 4, + "sponsored_team": "Ducati Team", + "team": { + "id": "892fff2f-7402-4fbd-99fb-5fd567d8a80c", + "constructor": { + "id": "38af1078-e2f1-4399-811c-1e98cf6f6150", + "name": "Ducati", + "legacy_id": 110 + }, + "name": "Ducati Lenovo Team", + "legacy_id": 15, + "color": "#cc0000", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/7/d/7da82702-139c-4a2c-8ee3-a1478cb43c37/ducatilenovo.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/5885" + } + }, + { + "season": 2013, + "number": 4, + "sponsored_team": "Ducati Team", + "team": { + "id": "892fff2f-7402-4fbd-99fb-5fd567d8a80c", + "constructor": { + "id": "38af1078-e2f1-4399-811c-1e98cf6f6150", + "name": "Ducati", + "legacy_id": 110 + }, + "name": "Ducati Lenovo Team", + "legacy_id": 15, + "color": "#cc0000", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/7/d/7da82702-139c-4a2c-8ee3-a1478cb43c37/ducatilenovo.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/5885" + } + }, + { + "season": 2012, + "number": 4, + "sponsored_team": "Monster Yamaha Tech 3", + "team": { + "id": "d5e2d045-0ed2-4446-89fe-2fd8cf17b1cd", + "constructor": { + "id": "f2e835be-7fab-4782-a26b-de3d583d132c", + "name": "Yamaha", + "legacy_id": 3 + }, + "name": "Monster Yamaha Tech 3", + "legacy_id": 11, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/motogp/original/team_bike_11_1574329097.jpg", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/5885" + } + }, + { + "season": 2011, + "number": 4, + "sponsored_team": "Repsol Honda Team", + "team": { + "id": "ce837bd3-bc07-40ef-83cf-6a8025bededf", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Repsol Honda Team", + "legacy_id": 14, + "color": "#ee8633", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/5885" + } + }, + { + "season": 2010, + "number": 4, + "sponsored_team": "Repsol Honda Team", + "team": { + "id": "ce837bd3-bc07-40ef-83cf-6a8025bededf", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Repsol Honda Team", + "legacy_id": 14, + "color": "#ee8633", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/5885" + } + }, + { + "season": 2009, + "number": 4, + "sponsored_team": "Repsol Honda Team", + "team": { + "id": "ce837bd3-bc07-40ef-83cf-6a8025bededf", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Repsol Honda Team", + "legacy_id": 14, + "color": "#ee8633", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/5885" + } + }, + { + "season": 2008, + "number": 4, + "sponsored_team": "JiR Team Scot MotoGP", + "team": { + "id": "d888cb93-db28-4133-a122-b1d851f6f8a2", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "Kopron Team Scot", + "legacy_id": 207, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto2/original/team_bike_207_1583857094.jpg", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/5885" + } + }, + { + "season": 2007, + "number": 0, + "sponsored_team": "Kopron Team Scot", + "team": { + "id": "d888cb93-db28-4133-a122-b1d851f6f8a2", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "Kopron Team Scot", + "legacy_id": 207, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto2/original/team_bike_207_1583857094.jpg", + "published": true + }, + "category": { + "id": "f4c00279-2ae2-42fa-8bce-01c5eaedf392", + "name": "250cc", + "legacy_id": 5 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/5885" + } + }, + { + "season": 2006, + "number": 0, + "sponsored_team": "Humangest Racing Team", + "team": { + "id": "e37603df-5ac6-40ca-9512-e74835eb5b2b", + "constructor": { + "id": "fe62d196-ff34-409a-aa32-4aae146e2e3c", + "name": "Speed Up", + "legacy_id": 431 + }, + "name": "Humangest Racing Team", + "legacy_id": 107, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto2/original/team_bike_107_1583857096.jpg", + "published": true + }, + "category": { + "id": "f4c00279-2ae2-42fa-8bce-01c5eaedf392", + "name": "250cc", + "legacy_id": 5 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/5885" + } + }, + { + "season": 2005, + "number": 0, + "sponsored_team": "Team Scot", + "team": { + "id": "d888cb93-db28-4133-a122-b1d851f6f8a2", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "Kopron Team Scot", + "legacy_id": 207, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto2/original/team_bike_207_1583857094.jpg", + "published": true + }, + "category": { + "id": "f4c00279-2ae2-42fa-8bce-01c5eaedf392", + "name": "250cc", + "legacy_id": 5 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/5885" + } + }, + { + "season": 2004, + "number": 34, + "sponsored_team": "Kopron Team Scot", + "team": { + "id": "d888cb93-db28-4133-a122-b1d851f6f8a2", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "Kopron Team Scot", + "legacy_id": 207, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto2/original/team_bike_207_1583857094.jpg", + "published": true + }, + "category": { + "id": "578be24b-3cd6-498f-9ed8-f0817be88467", + "name": "125cc", + "legacy_id": 10 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/5885" + } + }, + { + "season": 2003, + "number": 34, + "sponsored_team": "Team Scot", + "team": { + "id": "d888cb93-db28-4133-a122-b1d851f6f8a2", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "Kopron Team Scot", + "legacy_id": 207, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto2/original/team_bike_207_1583857094.jpg", + "published": true + }, + "category": { + "id": "578be24b-3cd6-498f-9ed8-f0817be88467", + "name": "125cc", + "legacy_id": 10 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/5885" + } + }, + { + "season": 2002, + "number": 34, + "sponsored_team": "Scot Racing Team", + "team": { + "id": "d888cb93-db28-4133-a122-b1d851f6f8a2", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "Kopron Team Scot", + "legacy_id": 207, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto2/original/team_bike_207_1583857094.jpg", + "published": true + }, + "category": { + "id": "578be24b-3cd6-498f-9ed8-f0817be88467", + "name": "125cc", + "legacy_id": 10 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/5885" + } + } + ], + "biography": { + "text": "2004 125cc World Champion Andrea Dovizioso has been in MotoGP™ since an incredible rookie season in 2008, where he was the top Independent Team rider and fifth overall. His first victory came at Donington in 2009 when riding for Repsol Honda, before the Italian moved to the Ducati Team following a stint with Monster Yamaha Tech 3. A key part of Ducati’s journey back to the top, ‘DesmoDovi’ is one of the hardest to overtake on the brakes – and one of the cleanest competitors in battle. After long seasons of hard work saw the bike more and more competitive and a consistent frontrunner, 2017 saw the Italian challenge for the World Championship down to the wire in Valencia after a stunning six wins across the season. For 2018, he hit the ground running to win the season opener, endured some harder races and then came back swinging - ending the year runner up once again. 2019 began in similar fashion: a win in Qatar. However, a certain Marquez turned up the wick and proved too much for everyone, with Dovizioso claiming nine podiums - including two wins - on his way to P2 in the overall standings for a third year in a row. Many fancied Dovi for the title during 2020, particularly in the absence of the injured Marc Marquez, however, there was to be no dream send off from Ducati for the Italian, who could only earn one victory during the season, at the Austrian GP, soon after announcing he was to leave the Bologna Bullets. He ended the season 4th in the standings and announced his intention to take a sabbatical from the sport. It was short-lived though, as before the start of the 2021 campaign, Aprilia announced he would test their new RS-GP in Jerez over three days in April. After completing some tests with Aprilia, Dovizioso was called up to step in at Petronas Yamaha SRT for the final five races of 2021, with Dovizioso signing a one-year contract to ride a factory YZR-M1 next season. The experienced Italian spearheaded the WithU Yamaha RNF MotoGP Team's efforts in 2022, but unfortunately, he was unable to recapture his from of years gone by. With 24 World Championship victories, 103 podiums and 20 pole positions, the Dovi decided to call it a day in 2022, retiring at his home Grand Prix in Misano in front of a sea of well-wishers.", + "media": { + "video": null, + "picture": "http://localhost:8089/riders/d/8/d8839e66-5952-451a-a7fb-c4a47b097856/biography/04_Andrea_Dovizioso.jpg" + } + }, + "legend": false, + "legacy_id": 5885, + "merchandise_url": "http://localhost:8089/en/andrea-dovizioso/a-2411765046+z-982483-1897790174?_s=bm-fi-motogp-prtsite-Andrea-Dovizioso-Store-300522-JM", + "published": true, + "injured": false, + "banned": false, + "wildcard": false +} \ No newline at end of file diff --git a/src/test/resources/__files/rider/5938.json b/src/test/resources/__files/rider/5938.json new file mode 100644 index 0000000..f1add0f --- /dev/null +++ b/src/test/resources/__files/rider/5938.json @@ -0,0 +1,978 @@ +{ + "id": "1733dda2-0ead-48c8-8b80-4ebaa82c1024", + "name": "Mika", + "surname": "Kallio", + "nickname": null, + "country": { + "iso": "FI", + "name": "Finland" + }, + "birth_city": "Valkeakoski", + "birth_date": "1982-11-08", + "physical_attributes": { + "height": 166, + "weight": 58 + }, + "career": [ + { + "season": 2022, + "number": 82, + "sponsored_team": "Red Bull KTM Tech 3", + "team": { + "id": "e7de07e2-4309-4a30-8f70-67ead4d6794e", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "Tech3 KTM Factory Racing", + "legacy_id": 11, + "color": "#b52d27", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/8/c/8cbb2dae-cd62-4850-901d-994227434a5c/Tech3KTM.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": false, + "short_nickname": "MK82", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/3/8/38bbf8ac-5610-4657-a961-48c59cb180f0/profile/main/82-Mika-Kallio.png", + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": "http://localhost:8089/riders/3/8/38bbf8ac-5610-4657-a961-48c59cb180f0/number/82_Mika_Kallio_Num.png", + "portrait": "http://localhost:8089/riders/3/8/38bbf8ac-5610-4657-a961-48c59cb180f0/portrait/82-Mika-Kallio-Portrait.jpg" + } + }, + { + "season": 2021, + "number": 82, + "sponsored_team": "Red Bull KTM Tech 3", + "team": { + "id": "e7de07e2-4309-4a30-8f70-67ead4d6794e", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "Tech3 KTM Factory Racing", + "legacy_id": 11, + "color": "#b52d27", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/8/c/8cbb2dae-cd62-4850-901d-994227434a5c/Tech3KTM.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": false, + "short_nickname": "MK82", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/3/8/38bbf8ac-5610-4657-a961-48c59cb180f0/profile/main/82-Mika-Kallio.png", + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": "http://localhost:8089/riders/3/8/38bbf8ac-5610-4657-a961-48c59cb180f0/number/82_Mika_Kallio_Num.png", + "portrait": "http://localhost:8089/riders/3/8/38bbf8ac-5610-4657-a961-48c59cb180f0/portrait/82-Mika-Kallio-Portrait.jpg" + } + }, + { + "season": 2020, + "number": 82, + "sponsored_team": "Red Bull KTM Tech 3", + "team": { + "id": "e7de07e2-4309-4a30-8f70-67ead4d6794e", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "Tech3 KTM Factory Racing", + "legacy_id": 11, + "color": "#b52d27", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/8/c/8cbb2dae-cd62-4850-901d-994227434a5c/Tech3KTM.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "MK82", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/3/8/38bbf8ac-5610-4657-a961-48c59cb180f0/profile/main/82-Mika-Kallio.png", + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": "http://localhost:8089/riders/3/8/38bbf8ac-5610-4657-a961-48c59cb180f0/number/82_Mika_Kallio_Num.png", + "portrait": "http://localhost:8089/riders/3/8/38bbf8ac-5610-4657-a961-48c59cb180f0/portrait/82-Mika-Kallio-Portrait.jpg" + } + }, + { + "season": 2020, + "number": 82, + "sponsored_team": "Red Bull KTM Factory Racing", + "team": { + "id": "0b6cc118-a286-4343-9020-fb53c6f77c1a", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "Red Bull KTM Factory Racing", + "legacy_id": 23, + "color": "#d75d2b", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/4/4/447bf79b-9960-40f0-996d-a2f5ac920650/RedBullKTM.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": false, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": "http://localhost:8089/2019/dorsales/3/5938.png", + "portrait": "http://localhost:8089/2019/riders/motogp/grid/original/rider_5938_1568965762.jpg" + } + }, + { + "season": 2019, + "number": 82, + "sponsored_team": "Red Bull KTM Factory Racing", + "team": { + "id": "0b6cc118-a286-4343-9020-fb53c6f77c1a", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "Red Bull KTM Factory Racing", + "legacy_id": 23, + "color": "#d75d2b", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/4/4/447bf79b-9960-40f0-996d-a2f5ac920650/RedBullKTM.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": "http://localhost:8089/2019/dorsales/3/5938.png", + "portrait": "http://localhost:8089/2019/riders/motogp/grid/original/rider_5938_1568965762.jpg" + } + }, + { + "season": 2018, + "number": 0, + "sponsored_team": null, + "team": { + "id": "0b6cc118-a286-4343-9020-fb53c6f77c1a", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "Red Bull KTM Factory Racing", + "legacy_id": 23, + "color": "#d75d2b", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/4/4/447bf79b-9960-40f0-996d-a2f5ac920650/RedBullKTM.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": "http://localhost:8089/2018/dorsales/3/5938.png", + "portrait": "http://localhost:8089/2018/riders/motogp/grid/original/rider_5938_1525362855.jpg" + } + }, + { + "season": 2017, + "number": 36, + "sponsored_team": "Red Bull KTM Factory Racing", + "team": { + "id": "0b6cc118-a286-4343-9020-fb53c6f77c1a", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "Red Bull KTM Factory Racing", + "legacy_id": 23, + "color": "#d75d2b", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/4/4/447bf79b-9960-40f0-996d-a2f5ac920650/RedBullKTM.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2017/riders/motogp/grid/original/rider_5938_1502453054.jpg" + } + }, + { + "season": 2016, + "number": 36, + "sponsored_team": "Red Bull KTM Factory Racing", + "team": { + "id": "0b6cc118-a286-4343-9020-fb53c6f77c1a", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "Red Bull KTM Factory Racing", + "legacy_id": 23, + "color": "#d75d2b", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/4/4/447bf79b-9960-40f0-996d-a2f5ac920650/RedBullKTM.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2016/riders/motogp/grid/original/rider_5938_1478802192.jpg" + } + }, + { + "season": 2015, + "number": 0, + "sponsored_team": null, + "team": { + "id": "7037b851-2404-4704-b68f-1d433adab430", + "constructor": { + "id": "cdb641bf-2ec0-41cd-9959-e4322000fae9", + "name": "Energica", + "legacy_id": 589 + }, + "name": "Marc VDS Racing Team", + "legacy_id": 216, + "color": null, + "text_color": null, + "picture": null, + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/5938" + } + }, + { + "season": 2014, + "number": 36, + "sponsored_team": "Marc VDS Racing Team", + "team": { + "id": "7037b851-2404-4704-b68f-1d433adab430", + "constructor": { + "id": "cdb641bf-2ec0-41cd-9959-e4322000fae9", + "name": "Energica", + "legacy_id": 589 + }, + "name": "Marc VDS Racing Team", + "legacy_id": 216, + "color": null, + "text_color": null, + "picture": null, + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/5938" + } + }, + { + "season": 2013, + "number": 36, + "sponsored_team": "Marc VDS Racing Team", + "team": { + "id": "7037b851-2404-4704-b68f-1d433adab430", + "constructor": { + "id": "cdb641bf-2ec0-41cd-9959-e4322000fae9", + "name": "Energica", + "legacy_id": 589 + }, + "name": "Marc VDS Racing Team", + "legacy_id": 216, + "color": null, + "text_color": null, + "picture": null, + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/5938" + } + }, + { + "season": 2012, + "number": 36, + "sponsored_team": "Marc VDS Racing Team", + "team": { + "id": "7037b851-2404-4704-b68f-1d433adab430", + "constructor": { + "id": "cdb641bf-2ec0-41cd-9959-e4322000fae9", + "name": "Energica", + "legacy_id": 589 + }, + "name": "Marc VDS Racing Team", + "legacy_id": 216, + "color": null, + "text_color": null, + "picture": null, + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/5938" + } + }, + { + "season": 2011, + "number": 36, + "sponsored_team": "Marc VDS Racing Team", + "team": { + "id": "7037b851-2404-4704-b68f-1d433adab430", + "constructor": { + "id": "cdb641bf-2ec0-41cd-9959-e4322000fae9", + "name": "Energica", + "legacy_id": 589 + }, + "name": "Marc VDS Racing Team", + "legacy_id": 216, + "color": null, + "text_color": null, + "picture": null, + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/5938" + } + }, + { + "season": 2010, + "number": 0, + "sponsored_team": null, + "team": { + "id": "612440fd-90eb-4823-bec9-f9e37520d00f", + "constructor": { + "id": "38af1078-e2f1-4399-811c-1e98cf6f6150", + "name": "Ducati", + "legacy_id": 110 + }, + "name": "Prima Pramac Racing", + "legacy_id": 32, + "color": "#8334c2", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/6/1/617f8c8b-1f8f-4bb2-b7b8-5c5c4b1a4eec/PrimaPramacracing.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/5938" + } + }, + { + "season": 2009, + "number": 36, + "sponsored_team": "Pramac Racing", + "team": { + "id": "612440fd-90eb-4823-bec9-f9e37520d00f", + "constructor": { + "id": "38af1078-e2f1-4399-811c-1e98cf6f6150", + "name": "Ducati", + "legacy_id": 110 + }, + "name": "Prima Pramac Racing", + "legacy_id": 32, + "color": "#8334c2", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/6/1/617f8c8b-1f8f-4bb2-b7b8-5c5c4b1a4eec/PrimaPramacracing.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/5938" + } + }, + { + "season": 2008, + "number": 0, + "sponsored_team": "Red Bull KTM 250", + "team": { + "id": "6eb56d8b-8049-44e0-8a3a-861140dac8c1", + "constructor": { + "id": "fe62d196-ff34-409a-aa32-4aae146e2e3c", + "name": "Speed Up", + "legacy_id": 431 + }, + "name": "Red Bull KTM 250", + "legacy_id": 210, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto2/original/team_bike_210_1583857099.jpg", + "published": true + }, + "category": { + "id": "f4c00279-2ae2-42fa-8bce-01c5eaedf392", + "name": "250cc", + "legacy_id": 5 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/5938" + } + }, + { + "season": 2007, + "number": 0, + "sponsored_team": "Red Bull KTM 250", + "team": { + "id": "6eb56d8b-8049-44e0-8a3a-861140dac8c1", + "constructor": { + "id": "fe62d196-ff34-409a-aa32-4aae146e2e3c", + "name": "Speed Up", + "legacy_id": 431 + }, + "name": "Red Bull KTM 250", + "legacy_id": 210, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto2/original/team_bike_210_1583857099.jpg", + "published": true + }, + "category": { + "id": "f4c00279-2ae2-42fa-8bce-01c5eaedf392", + "name": "250cc", + "legacy_id": 5 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/5938" + } + }, + { + "season": 2006, + "number": 36, + "sponsored_team": "Red Bull KTM GP 125", + "team": { + "id": "466c78ad-fe92-4008-92de-6f8070e647e2", + "constructor": { + "id": "ce40d972-fa4a-421e-b747-d67d3ca1afc6", + "name": "Husqvarna", + "legacy_id": 164 + }, + "name": "Red Bull KTM GP125", + "legacy_id": 116, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_116_1584101125.jpg", + "published": true + }, + "category": { + "id": "578be24b-3cd6-498f-9ed8-f0817be88467", + "name": "125cc", + "legacy_id": 10 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/5938" + } + }, + { + "season": 2005, + "number": 36, + "sponsored_team": "Red Bull KTM GP125", + "team": { + "id": "466c78ad-fe92-4008-92de-6f8070e647e2", + "constructor": { + "id": "ce40d972-fa4a-421e-b747-d67d3ca1afc6", + "name": "Husqvarna", + "legacy_id": 164 + }, + "name": "Red Bull KTM GP125", + "legacy_id": 116, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_116_1584101125.jpg", + "published": true + }, + "category": { + "id": "578be24b-3cd6-498f-9ed8-f0817be88467", + "name": "125cc", + "legacy_id": 10 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/5938" + } + }, + { + "season": 2004, + "number": 36, + "sponsored_team": "Red Bull KTM", + "team": { + "id": "466c78ad-fe92-4008-92de-6f8070e647e2", + "constructor": { + "id": "ce40d972-fa4a-421e-b747-d67d3ca1afc6", + "name": "Husqvarna", + "legacy_id": 164 + }, + "name": "Red Bull KTM GP125", + "legacy_id": 116, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_116_1584101125.jpg", + "published": true + }, + "category": { + "id": "578be24b-3cd6-498f-9ed8-f0817be88467", + "name": "125cc", + "legacy_id": 10 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/5938" + } + }, + { + "season": 2003, + "number": 36, + "sponsored_team": "Ajo Motorsports", + "team": { + "id": "466c78ad-fe92-4008-92de-6f8070e647e2", + "constructor": { + "id": "ce40d972-fa4a-421e-b747-d67d3ca1afc6", + "name": "Husqvarna", + "legacy_id": 164 + }, + "name": "Red Bull KTM GP125", + "legacy_id": 116, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_116_1584101125.jpg", + "published": true + }, + "category": { + "id": "578be24b-3cd6-498f-9ed8-f0817be88467", + "name": "125cc", + "legacy_id": 10 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/5938" + } + }, + { + "season": 2002, + "number": 36, + "sponsored_team": "Red Devil Honda", + "team": { + "id": "466c78ad-fe92-4008-92de-6f8070e647e2", + "constructor": { + "id": "ce40d972-fa4a-421e-b747-d67d3ca1afc6", + "name": "Husqvarna", + "legacy_id": 164 + }, + "name": "Red Bull KTM GP125", + "legacy_id": 116, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_116_1584101125.jpg", + "published": true + }, + "category": { + "id": "578be24b-3cd6-498f-9ed8-f0817be88467", + "name": "125cc", + "legacy_id": 10 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/5938" + } + } + ], + "biography": { + "text": "Kallio's career got off to a successful start in his native Finland where he won the national 125 title for three consecutive seasons, also being crowned national ice racing champion. In 2001 he made his debut in the World Championship as a wildcard, riding a full season the next year for Ajo Motorsport and taking 125cc Rookie of the Year with 11th. Runner-up spot in 2005 and 2006 led to a switch to the 250s, with third place in 2008 earning him a premier class ride for 2009 with Pramac in which he took Rookie of the Year, also filling in for Casey Stoner on the factory Ducati team for three races, but a difficult second season in 2010 led to a step down to Moto2 for 2011. After a tough start to the campaign Kallio's season picked up in the final third and he rounded the year off with a second place podium in Valencia. In 2012 he scored one podium but suffered a few disappointments, despite being almost continuously with the leading group. A first Moto2 victory finally came his way in 2013, in the Czech Republic, and Kallio became a title contender as he pushed his colleague Tito Rabat hard in 2014. Over the course of the year Kallio notched up an impressive 10 podiums and 3 wins and he hopes to be just as competitive having moved to Italtrans Racing Team for 2015. Ahead of the Aragon GP, Kallio and Italtrans parted company and the Finn joined the QMMF team to help continued development on the Speed Up. This season, Kallio has been a Test Rider for the new Red Bull KTM Factory Racing effort. As the Austrian manufacturer prepares to line up full time on the MotoGP™ grid in 2017, Kallio will first ride as a wild card in the 2016 season finale in Valencia - the first race experience for the all-new RC16.", + "media": { + "video": null, + "picture": null + } + }, + "legend": false, + "legacy_id": 5938, + "merchandise_url": null, + "published": true, + "injured": false, + "banned": false, + "wildcard": false +} \ No newline at end of file diff --git a/src/test/resources/__files/rider/6267.json b/src/test/resources/__files/rider/6267.json index 03ebc5a..a3d6d5c 100644 --- a/src/test/resources/__files/rider/6267.json +++ b/src/test/resources/__files/rider/6267.json @@ -29,7 +29,7 @@ "legacy_id": 14, "color": "#ff9912", "text_color": "#ffffff", - "picture": "https://photos.motogp.com/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png", + "picture": "http://localhost:8089/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png", "published": true }, "category": { @@ -42,19 +42,19 @@ "current": false, "pictures": { "profile": { - "main": "https://photos.motogp.com/riders/a/0/a03c6be6-a7b8-4492-ab4e-b1642d34c8df/profile/main/_0001_06_Stefan_Bradl_Rider_DSC6284.png", + "main": "http://localhost:8089/riders/a/0/a03c6be6-a7b8-4492-ab4e-b1642d34c8df/profile/main/_0001_06_Stefan_Bradl_Rider_DSC6284.png", "secondary": null }, "bike": { - "main": "https://photos.motogp.com/riders/d/0/d0ce0337-83b2-4240-bf8b-a844a5a08d3c/bike/main/_0000_06-Stefan-Bradl,-Bike_LG86879.png", + "main": "http://localhost:8089/riders/d/0/d0ce0337-83b2-4240-bf8b-a844a5a08d3c/bike/main/_0000_06-Stefan-Bradl,-Bike_LG86879.png", "secondary": null }, "helmet": { "main": null, "secondary": null }, - "number": "https://photos.motogp.com/riders/7/f/7fd2cbf0-b64d-4936-8756-b0a11c7dfbea/number/ddd.png", - "portrait": "https://photos.motogp.com/riders/c/c/cc1f4bb9-ce93-4261-8b15-4fbb808f6bd4/portrait/_0001_06_Stefan_Bradl_Rider_DSC6278.jpg" + "number": "http://localhost:8089/riders/7/f/7fd2cbf0-b64d-4936-8756-b0a11c7dfbea/number/ddd.png", + "portrait": "http://localhost:8089/riders/c/c/cc1f4bb9-ce93-4261-8b15-4fbb808f6bd4/portrait/_0001_06_Stefan_Bradl_Rider_DSC6278.jpg" } }, { @@ -72,7 +72,7 @@ "legacy_id": 14, "color": "#ff9912", "text_color": "#ffffff", - "picture": "https://photos.motogp.com/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png", + "picture": "http://localhost:8089/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png", "published": true }, "category": { @@ -85,19 +85,19 @@ "current": false, "pictures": { "profile": { - "main": "https://photos.motogp.com/riders/a/0/a03c6be6-a7b8-4492-ab4e-b1642d34c8df/profile/main/_0001_06_Stefan_Bradl_Rider_DSC6284.png", + "main": "http://localhost:8089/riders/a/0/a03c6be6-a7b8-4492-ab4e-b1642d34c8df/profile/main/_0001_06_Stefan_Bradl_Rider_DSC6284.png", "secondary": null }, "bike": { - "main": "https://photos.motogp.com/riders/d/0/d0ce0337-83b2-4240-bf8b-a844a5a08d3c/bike/main/_0000_06-Stefan-Bradl,-Bike_LG86879.png", + "main": "http://localhost:8089/riders/d/0/d0ce0337-83b2-4240-bf8b-a844a5a08d3c/bike/main/_0000_06-Stefan-Bradl,-Bike_LG86879.png", "secondary": null }, "helmet": { "main": null, "secondary": null }, - "number": "https://photos.motogp.com/riders/7/f/7fd2cbf0-b64d-4936-8756-b0a11c7dfbea/number/ddd.png", - "portrait": "https://photos.motogp.com/riders/c/c/cc1f4bb9-ce93-4261-8b15-4fbb808f6bd4/portrait/_0001_06_Stefan_Bradl_Rider_DSC6278.jpg" + "number": "http://localhost:8089/riders/7/f/7fd2cbf0-b64d-4936-8756-b0a11c7dfbea/number/ddd.png", + "portrait": "http://localhost:8089/riders/c/c/cc1f4bb9-ce93-4261-8b15-4fbb808f6bd4/portrait/_0001_06_Stefan_Bradl_Rider_DSC6278.jpg" } }, { @@ -115,7 +115,7 @@ "legacy_id": 14, "color": "#ff9912", "text_color": "#ffffff", - "picture": "https://photos.motogp.com/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png", + "picture": "http://localhost:8089/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png", "published": true }, "category": { @@ -128,7 +128,7 @@ "current": false, "pictures": { "profile": { - "main": "https://photos.motogp.com/riders/9/4/94ebf85a-4b58-4642-a010-dee9708ba263/profile/main/Bradl-06.png", + "main": "http://localhost:8089/riders/9/4/94ebf85a-4b58-4642-a010-dee9708ba263/profile/main/Bradl-06.png", "secondary": null }, "bike": { @@ -139,8 +139,8 @@ "main": null, "secondary": null }, - "number": "https://photos.motogp.com/riders/7/f/7fd2cbf0-b64d-4936-8756-b0a11c7dfbea/number/ddd.png", - "portrait": "https://photos.motogp.com/riders/9/4/94ebf85a-4b58-4642-a010-dee9708ba263/portrait/_0001_06_Stefan_Bradl_GER_DSC9105.jpg" + "number": "http://localhost:8089/riders/7/f/7fd2cbf0-b64d-4936-8756-b0a11c7dfbea/number/ddd.png", + "portrait": "http://localhost:8089/riders/9/4/94ebf85a-4b58-4642-a010-dee9708ba263/portrait/_0001_06_Stefan_Bradl_GER_DSC9105.jpg" } }, { @@ -158,7 +158,7 @@ "legacy_id": 10, "color": "#9baee4", "text_color": "#323232", - "picture": "https://photos.motogp.com/teams/a/7/a7b1c4d6-3da3-482d-8de5-5d8299cec022/Aprilia-Racing-Team.png", + "picture": "http://localhost:8089/teams/a/7/a7b1c4d6-3da3-482d-8de5-5d8299cec022/Aprilia-Racing-Team.png", "published": true }, "category": { @@ -182,8 +182,8 @@ "main": null, "secondary": null }, - "number": "https://photos.motogp.com/2019/dorsales/3/6267.png", - "portrait": "https://photos.motogp.com/2019/riders/motogp/grid/original/rider_6267_1562250014.jpg" + "number": "http://localhost:8089/2019/dorsales/3/6267.png", + "portrait": "http://localhost:8089/2019/riders/motogp/grid/original/rider_6267_1562250014.jpg" } }, { @@ -201,7 +201,7 @@ "legacy_id": 10, "color": "#9baee4", "text_color": "#323232", - "picture": "https://photos.motogp.com/teams/a/7/a7b1c4d6-3da3-482d-8de5-5d8299cec022/Aprilia-Racing-Team.png", + "picture": "http://localhost:8089/teams/a/7/a7b1c4d6-3da3-482d-8de5-5d8299cec022/Aprilia-Racing-Team.png", "published": true }, "category": { @@ -225,8 +225,8 @@ "main": null, "secondary": null }, - "number": "https://photos.motogp.com/2019/dorsales/3/6267.png", - "portrait": "https://photos.motogp.com/2019/riders/motogp/grid/original/rider_6267_1562250014.jpg" + "number": "http://localhost:8089/2019/dorsales/3/6267.png", + "portrait": "http://localhost:8089/2019/riders/motogp/grid/original/rider_6267_1562250014.jpg" } }, { @@ -244,7 +244,7 @@ "legacy_id": 10, "color": "#9baee4", "text_color": "#323232", - "picture": "https://photos.motogp.com/teams/a/7/a7b1c4d6-3da3-482d-8de5-5d8299cec022/Aprilia-Racing-Team.png", + "picture": "http://localhost:8089/teams/a/7/a7b1c4d6-3da3-482d-8de5-5d8299cec022/Aprilia-Racing-Team.png", "published": true }, "category": { @@ -268,8 +268,8 @@ "main": null, "secondary": null }, - "number": "https://photos.motogp.com/2018/dorsales/3/6267.png", - "portrait": "https://photos.motogp.com/2018/riders/motogp/grid/original/rider_6267_1541296271.jpg" + "number": "http://localhost:8089/2018/dorsales/3/6267.png", + "portrait": "http://localhost:8089/2018/riders/motogp/grid/original/rider_6267_1541296271.jpg" } }, { @@ -287,7 +287,7 @@ "legacy_id": 10, "color": "#9baee4", "text_color": "#323232", - "picture": "https://photos.motogp.com/teams/a/7/a7b1c4d6-3da3-482d-8de5-5d8299cec022/Aprilia-Racing-Team.png", + "picture": "http://localhost:8089/teams/a/7/a7b1c4d6-3da3-482d-8de5-5d8299cec022/Aprilia-Racing-Team.png", "published": true }, "category": { @@ -304,15 +304,15 @@ "secondary": null }, "bike": { - "main": "https://photos.motogp.com/2016/riders/motogp/bike/original/rider_6267_1458324177.jpg", + "main": "http://localhost:8089/2016/riders/motogp/bike/original/rider_6267_1458324177.jpg", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/2016/riders/motogp/helmet/original/rider_6267_1458324112.jpg", + "main": "http://localhost:8089/2016/riders/motogp/helmet/original/rider_6267_1458324112.jpg", "secondary": null }, "number": null, - "portrait": "https://photos.motogp.com/2016/riders/motogp/grid/original/rider_6267_1464880335.jpg" + "portrait": "http://localhost:8089/2016/riders/motogp/grid/original/rider_6267_1464880335.jpg" } }, { @@ -330,7 +330,7 @@ "legacy_id": 10, "color": "#9baee4", "text_color": "#323232", - "picture": "https://photos.motogp.com/teams/a/7/a7b1c4d6-3da3-482d-8de5-5d8299cec022/Aprilia-Racing-Team.png", + "picture": "http://localhost:8089/teams/a/7/a7b1c4d6-3da3-482d-8de5-5d8299cec022/Aprilia-Racing-Team.png", "published": true }, "category": { @@ -355,7 +355,7 @@ "secondary": null }, "number": null, - "portrait": "https://www.motogp.com/en/api/rider/photo/grid/old/6267" + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/6267" } }, { @@ -373,7 +373,7 @@ "legacy_id": 17, "color": null, "text_color": null, - "picture": "https://photos.motogp.com/2020/teams/motogp/original/team_bike_17_1574329096.jpg", + "picture": "http://localhost:8089/2020/teams/motogp/original/team_bike_17_1574329096.jpg", "published": true }, "category": { @@ -398,7 +398,7 @@ "secondary": null }, "number": null, - "portrait": "https://www.motogp.com/en/api/rider/photo/grid/old/6267" + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/6267" } }, { @@ -416,7 +416,7 @@ "legacy_id": 17, "color": null, "text_color": null, - "picture": "https://photos.motogp.com/2020/teams/motogp/original/team_bike_17_1574329096.jpg", + "picture": "http://localhost:8089/2020/teams/motogp/original/team_bike_17_1574329096.jpg", "published": true }, "category": { @@ -441,7 +441,7 @@ "secondary": null }, "number": null, - "portrait": "https://www.motogp.com/en/api/rider/photo/grid/old/6267" + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/6267" } }, { @@ -459,7 +459,7 @@ "legacy_id": 17, "color": null, "text_color": null, - "picture": "https://photos.motogp.com/2020/teams/motogp/original/team_bike_17_1574329096.jpg", + "picture": "http://localhost:8089/2020/teams/motogp/original/team_bike_17_1574329096.jpg", "published": true }, "category": { @@ -484,7 +484,7 @@ "secondary": null }, "number": null, - "portrait": "https://www.motogp.com/en/api/rider/photo/grid/old/6267" + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/6267" } }, { @@ -527,7 +527,7 @@ "secondary": null }, "number": null, - "portrait": "https://www.motogp.com/en/api/rider/photo/grid/old/6267" + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/6267" } }, { @@ -570,7 +570,7 @@ "secondary": null }, "number": null, - "portrait": "https://www.motogp.com/en/api/rider/photo/grid/old/6267" + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/6267" } }, { @@ -613,7 +613,7 @@ "secondary": null }, "number": null, - "portrait": "https://www.motogp.com/en/api/rider/photo/grid/old/6267" + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/6267" } }, { @@ -631,7 +631,7 @@ "legacy_id": 108, "color": null, "text_color": null, - "picture": "https://photos.motogp.com/2020/teams/moto3/original/team_bike_108_1584101112.jpg", + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_108_1584101112.jpg", "published": true }, "category": { @@ -656,7 +656,7 @@ "secondary": null }, "number": null, - "portrait": "https://www.motogp.com/en/api/rider/photo/grid/old/6267" + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/6267" } }, { @@ -674,7 +674,7 @@ "legacy_id": 105, "color": null, "text_color": null, - "picture": "https://photos.motogp.com/2020/teams/moto3/original/team_bike_105_1584101122.jpg", + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_105_1584101122.jpg", "published": true }, "category": { @@ -699,7 +699,7 @@ "secondary": null }, "number": null, - "portrait": "https://www.motogp.com/en/api/rider/photo/grid/old/6267" + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/6267" } }, { @@ -717,7 +717,7 @@ "legacy_id": 105, "color": null, "text_color": null, - "picture": "https://photos.motogp.com/2020/teams/moto3/original/team_bike_105_1584101122.jpg", + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_105_1584101122.jpg", "published": true }, "category": { @@ -742,7 +742,7 @@ "secondary": null }, "number": null, - "portrait": "https://www.motogp.com/en/api/rider/photo/grid/old/6267" + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/6267" } }, { @@ -760,7 +760,7 @@ "legacy_id": 105, "color": null, "text_color": null, - "picture": "https://photos.motogp.com/2020/teams/moto3/original/team_bike_105_1584101122.jpg", + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_105_1584101122.jpg", "published": true }, "category": { @@ -785,7 +785,7 @@ "secondary": null }, "number": null, - "portrait": "https://www.motogp.com/en/api/rider/photo/grid/old/6267" + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/6267" } }, { @@ -803,7 +803,7 @@ "legacy_id": 105, "color": null, "text_color": null, - "picture": "https://photos.motogp.com/2020/teams/moto3/original/team_bike_105_1584101122.jpg", + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_105_1584101122.jpg", "published": true }, "category": { @@ -828,7 +828,7 @@ "secondary": null }, "number": null, - "portrait": "https://www.motogp.com/en/api/rider/photo/grid/old/6267" + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/6267" } }, { @@ -846,7 +846,7 @@ "legacy_id": 105, "color": null, "text_color": null, - "picture": "https://photos.motogp.com/2020/teams/moto3/original/team_bike_105_1584101122.jpg", + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_105_1584101122.jpg", "published": true }, "category": { @@ -871,7 +871,7 @@ "secondary": null }, "number": null, - "portrait": "https://www.motogp.com/en/api/rider/photo/grid/old/6267" + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/6267" } }, { @@ -889,7 +889,7 @@ "legacy_id": 105, "color": null, "text_color": null, - "picture": "https://photos.motogp.com/2020/teams/moto3/original/team_bike_105_1584101122.jpg", + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_105_1584101122.jpg", "published": true }, "category": { @@ -914,7 +914,7 @@ "secondary": null }, "number": null, - "portrait": "https://www.motogp.com/en/api/rider/photo/grid/old/6267" + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/6267" } }, { @@ -957,7 +957,7 @@ "secondary": null }, "number": null, - "portrait": "https://www.motogp.com/en/api/rider/photo/grid/old/6267" + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/6267" } } ], @@ -965,7 +965,7 @@ "text": "Son of former 250 rider Helmut Bradl, Stefan started out in the World Championship in 2006 in the 125 class, his breakthrough season coming in 2008 when he won two races and placed fourth overall. In 2010 he stepped into the new Moto2™ category, ending the year ninth in the standings with an impressive victory at Estoril. Bradl was confirmed as the 2011 Moto2™ World Champion at the final round of the season in Valencia, beating Marc Marquez to the title. He joined the LCR Team aboard a Honda in 2012 for his first venture in the MotoGP™ class, which saw him win the Rookie of the Year title after some strong performances. The next year, Bradl finished on the podium from a career-first pole position at Laguna Seca, but his season ended early after he broke an ankle in Malaysia. In 2014 he did not return to the podium and in 2015 he enjoyed a new challenge with Forward Racing on the Forward Yamaha. Bradl experienced a difficult start to the season, only managing to finish in the points twice in the first nine races, with a best-placed finish of eighth at the Catalan GP. After nine races, Bradl was released from his contract at Forward Racing and took on a new challenge by joining the Factory Aprilia Racing Team Gresini for the second half of the season. Bradl would stay with Aprilia in 2016 as they brought in an all new prototype machine, but a P7 in Argentina was his best result as the German finished his final full-time MotoGP™ racing season in 16th. After a brief stint in World SBK, Bradl returned to MotoGP™ as a replacement rider for Franco Morbidelli at his home Grand Prix at the Sachsenring. Two more wildcard appearances followed at Czech and San Marino GPs for the HRC Honda team before he once again provided injury cover, this time for Cal Crutchlow in the closing two races of the season. 2019 saw him take up the test rider role with Honda, making four appearances throughout the course of the year. In 2020 he had to step up a level as he replaced the injured reigning Champion Marc Marquez after the Jerez round, with the German ending the season 19th overall. Bradl continued his injury cover during the opening rounds of 2021 in Qatar, before eventually handing back the reigns to Marquez. He didn’t have to wait long for another premier class appearance though, as he was handed a wildcard appearance at Jerez. Bradl finished the year once again covering for Marquez in Portimao and remains as HRC's Test Rider for 2022.", "media": { "video": null, - "picture": "https://photos.motogp.com/riders/3/6/36c0c742-af02-443c-80db-d13ec31f4e2b/biography/06_Stefan_Bradl_DSC8102.jpg" + "picture": "http://localhost:8089/riders/3/6/36c0c742-af02-443c-80db-d13ec31f4e2b/biography/06_Stefan_Bradl_DSC8102.jpg" } }, "legend": false, diff --git a/src/test/resources/__files/rider/6854.json b/src/test/resources/__files/rider/6854.json index 99a9378..b842f0d 100644 --- a/src/test/resources/__files/rider/6854.json +++ b/src/test/resources/__files/rider/6854.json @@ -1 +1,849 @@ -{"id":"a2f51450-cb43-4d32-8eef-bda9ebb435ed","name":"Aleix","surname":"Espargaro","nickname":null,"country":{"iso":"ES","name":"Spain"},"birth_city":"Granollers","birth_date":"1989-07-30","physical_attributes":{"height":180,"weight":66},"career":[{"season":2022,"number":41,"sponsored_team":"Aprilia Racing","team":{"id":"11d18b37-baba-400a-80c2-f8ddf040f97e","constructor":{"id":"21fbe597-b587-42e1-b571-a06af5cc2487","name":"Aprilia","legacy_id":7},"name":"Aprilia Racing","legacy_id":21,"color":"#2db914","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/0/a/0a912f7c-da05-4942-9fd3-282d0a15f10b/Apriliaracing.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":"AE41","current":false,"pictures":{"profile":{"main":"https://photos.motogp.com/riders/1/3/131debbc-5003-4aa0-aec6-8d11d29f76b9/profile/main/41-Aleix-Espargaro-Rider_DS_5304.png","secondary":null},"bike":{"main":"https://photos.motogp.com/riders/1/3/131debbc-5003-4aa0-aec6-8d11d29f76b9/bike/main/_0005_41-Aleix-Espargaro_Bike45.png","secondary":null},"helmet":{"main":"https://photos.motogp.com/riders/8/5/8541cc48-6bb2-46dd-8d9c-4b83ebda5bcb/helmet/main/_0003_41-Aleix-Espargaro,-Helmet_LG60769.png","secondary":null},"number":"https://photos.motogp.com/riders/1/7/17ee53ff-ddd2-4b11-a59d-5310d36e232e/number/41-Aleix-Espargaro.png","portrait":"https://photos.motogp.com/riders/1/3/131debbc-5003-4aa0-aec6-8d11d29f76b9/portrait/41-Aleix-Espargaro-Rider_DS_5300.jpg"}},{"season":2021,"number":41,"sponsored_team":"Aprilia Racing Team Gresini","team":{"id":"01736702-c133-4918-90f9-2ddba33af122","constructor":{"id":"21fbe597-b587-42e1-b571-a06af5cc2487","name":"Aprilia","legacy_id":7},"name":"Aprilia Racing Team Gresini","legacy_id":10,"color":"#9baee4","text_color":"#323232","picture":"https://photos.motogp.com/teams/a/7/a7b1c4d6-3da3-482d-8de5-5d8299cec022/Aprilia-Racing-Team.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":"AE41","current":false,"pictures":{"profile":{"main":"https://photos.motogp.com/riders/e/4/e4f020e5-51d6-407a-9211-34c1c6fec1ba/profile/main/_0006_41-Aleix-Espargaro_Rider_A7R0918.png","secondary":null},"bike":{"main":"https://photos.motogp.com/riders/8/5/8541cc48-6bb2-46dd-8d9c-4b83ebda5bcb/bike/main/_0004_41-Aleix-Espargaro,-Bike_LG86752.png","secondary":null},"helmet":{"main":"https://photos.motogp.com/riders/8/5/8541cc48-6bb2-46dd-8d9c-4b83ebda5bcb/helmet/main/_0003_41-Aleix-Espargaro,-Helmet_LG60769.png","secondary":null},"number":"https://photos.motogp.com/riders/1/7/17ee53ff-ddd2-4b11-a59d-5310d36e232e/number/41-Aleix-Espargaro.png","portrait":"https://photos.motogp.com/riders/2/d/2d2f8b62-cb89-46fd-a334-1423a28c07f4/portrait/aa.jpg"}},{"season":2020,"number":41,"sponsored_team":"Aprilia Racing Team Gresini","team":{"id":"01736702-c133-4918-90f9-2ddba33af122","constructor":{"id":"21fbe597-b587-42e1-b571-a06af5cc2487","name":"Aprilia","legacy_id":7},"name":"Aprilia Racing Team Gresini","legacy_id":10,"color":"#9baee4","text_color":"#323232","picture":"https://photos.motogp.com/teams/a/7/a7b1c4d6-3da3-482d-8de5-5d8299cec022/Aprilia-Racing-Team.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":"AE41","current":false,"pictures":{"profile":{"main":"https://photos.motogp.com/riders/3/3/33840a68-98d9-4993-939f-b673fe9f9a28/profile/main/1_0012_41-Aleix-Espargaro-ESP,-Body_DSC5985.png","secondary":null},"bike":{"main":"https://photos.motogp.com/riders/3/7/37ab0dc0-b1cd-440a-85f6-ded34b3871dc/bike/main/41-Aleix-Espargaro.png","secondary":null},"helmet":{"main":"https://photos.motogp.com/riders/a/4/a457a33c-eb5a-43d5-9ead-43554bf6ff64/helmet/main/41-Aleix-Espargaro.jpg","secondary":null},"number":"https://photos.motogp.com/2019/dorsales/3/6854.png","portrait":"https://photos.motogp.com/riders/e/a/ea47b5cc-5bfa-4ff8-b41e-4b67d91cfea6/portrait/41_Aleix_Espargaro.jpg"}},{"season":2019,"number":41,"sponsored_team":"Aprilia Racing Team Gresini","team":{"id":"01736702-c133-4918-90f9-2ddba33af122","constructor":{"id":"21fbe597-b587-42e1-b571-a06af5cc2487","name":"Aprilia","legacy_id":7},"name":"Aprilia Racing Team Gresini","legacy_id":10,"color":"#9baee4","text_color":"#323232","picture":"https://photos.motogp.com/teams/a/7/a7b1c4d6-3da3-482d-8de5-5d8299cec022/Aprilia-Racing-Team.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2019/riders/motogp/bike/original/rider_6854_1552058430.jpg","secondary":null},"helmet":{"main":null,"secondary":null},"number":"https://photos.motogp.com/2019/dorsales/3/6854.png","portrait":"https://photos.motogp.com/2019/riders/motogp/grid/original/rider_6854_1562312179.jpg"}},{"season":2018,"number":41,"sponsored_team":"Aprilia Racing Team Gresini","team":{"id":"01736702-c133-4918-90f9-2ddba33af122","constructor":{"id":"21fbe597-b587-42e1-b571-a06af5cc2487","name":"Aprilia","legacy_id":7},"name":"Aprilia Racing Team Gresini","legacy_id":10,"color":"#9baee4","text_color":"#323232","picture":"https://photos.motogp.com/teams/a/7/a7b1c4d6-3da3-482d-8de5-5d8299cec022/Aprilia-Racing-Team.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2018/riders/motogp/bike/original/rider_6854_1521313097.jpg","secondary":null},"helmet":{"main":"https://photos.motogp.com/2018/riders/motogp/helmet/original/rider_6854_1521312573.jpg","secondary":null},"number":"https://photos.motogp.com/2018/dorsales/3/6854.png","portrait":"https://photos.motogp.com/2018/riders/motogp/grid/original/rider_6854_1521213917.jpg"}},{"season":2017,"number":41,"sponsored_team":"Aprilia Racing Team Gresini","team":{"id":"01736702-c133-4918-90f9-2ddba33af122","constructor":{"id":"21fbe597-b587-42e1-b571-a06af5cc2487","name":"Aprilia","legacy_id":7},"name":"Aprilia Racing Team Gresini","legacy_id":10,"color":"#9baee4","text_color":"#323232","picture":"https://photos.motogp.com/teams/a/7/a7b1c4d6-3da3-482d-8de5-5d8299cec022/Aprilia-Racing-Team.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2017/riders/motogp/bike/original/rider_6854_1490378897.jpg","secondary":null},"helmet":{"main":"https://photos.motogp.com/2017/riders/motogp/helmet/original/rider_6854_1490543430.jpg","secondary":null},"number":null,"portrait":"https://photos.motogp.com/2017/riders/motogp/grid/original/rider_6854_1490884060.jpg"}},{"season":2016,"number":41,"sponsored_team":"Team SUZUKI ECSTAR","team":{"id":"baac93d0-3068-4c7a-8d3f-ca215b568f77","constructor":{"id":"de2d5a0a-83e3-4114-b5c6-72d10d8a9619","name":"Suzuki","legacy_id":2},"name":"Team SUZUKI ECSTAR","legacy_id":37,"color":"#4294c1","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/6/a/6ae0f119-6c7c-4171-9062-b431459e7c18/Suzuki.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2016/riders/motogp/bike/original/rider_6854_1458324171.jpg","secondary":null},"helmet":{"main":"https://photos.motogp.com/2016/riders/motogp/helmet/original/rider_6854_1458324106.jpg","secondary":null},"number":null,"portrait":"https://photos.motogp.com/2016/riders/motogp/grid/original/rider_6854_1479299292.jpg"}},{"season":2015,"number":41,"sponsored_team":"Team SUZUKI ECSTAR","team":{"id":"baac93d0-3068-4c7a-8d3f-ca215b568f77","constructor":{"id":"de2d5a0a-83e3-4114-b5c6-72d10d8a9619","name":"Suzuki","legacy_id":2},"name":"Team SUZUKI ECSTAR","legacy_id":37,"color":"#4294c1","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/6/a/6ae0f119-6c7c-4171-9062-b431459e7c18/Suzuki.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/6854"}},{"season":2014,"number":41,"sponsored_team":"NGM Forward Racing","team":{"id":"8bef58dd-3b18-4504-8323-5afd4a29c92a","constructor":{"id":"5fe6c749-0a3c-43e7-a079-555d0fc53689","name":"NTS","legacy_id":550},"name":"NGM Forward Racing","legacy_id":203,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/moto2/original/team_bike_203_1583857101.jpg","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/6854"}},{"season":2013,"number":41,"sponsored_team":"Power Electronics Aspar","team":{"id":"8a97d771-4e6a-4ac6-9afa-355fb459fa56","constructor":{"id":"38af1078-e2f1-4399-811c-1e98cf6f6150","name":"Ducati","legacy_id":110},"name":"Pramac Racing Team","legacy_id":32,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/motogp/original/team_bike_32_1574329095.jpg","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/6854"}},{"season":2012,"number":41,"sponsored_team":"Power Electronics Aspar","team":{"id":"8a97d771-4e6a-4ac6-9afa-355fb459fa56","constructor":{"id":"38af1078-e2f1-4399-811c-1e98cf6f6150","name":"Ducati","legacy_id":110},"name":"Pramac Racing Team","legacy_id":32,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/motogp/original/team_bike_32_1574329095.jpg","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/6854"}},{"season":2011,"number":40,"sponsored_team":"Pons HP 40","team":{"id":"8a97d771-4e6a-4ac6-9afa-355fb459fa56","constructor":{"id":"38af1078-e2f1-4399-811c-1e98cf6f6150","name":"Ducati","legacy_id":110},"name":"Pramac Racing Team","legacy_id":32,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/motogp/original/team_bike_32_1574329095.jpg","published":true},"category":{"id":"ea854a67-73a4-4a28-ac77-d67b3b2a530a","name":"Moto2","legacy_id":2},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/6854"}},{"season":2010,"number":41,"sponsored_team":"Pramac Racing Team","team":{"id":"8a97d771-4e6a-4ac6-9afa-355fb459fa56","constructor":{"id":"38af1078-e2f1-4399-811c-1e98cf6f6150","name":"Ducati","legacy_id":110},"name":"Pramac Racing Team","legacy_id":32,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/motogp/original/team_bike_32_1574329095.jpg","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/6854"}},{"season":2009,"number":0,"sponsored_team":null,"team":{"id":"005ef2f6-e9f3-4812-b7ce-0772de4bdd50","constructor":{"id":"5fe6c749-0a3c-43e7-a079-555d0fc53689","name":"NTS","legacy_id":550},"name":"Lotus Aprilia","legacy_id":203,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/moto2/original/team_bike_203_1583857101.jpg","published":true},"category":{"id":"f4c00279-2ae2-42fa-8bce-01c5eaedf392","name":"250cc","legacy_id":5},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/6854"}},{"season":2009,"number":0,"sponsored_team":null,"team":{"id":"005ef2f6-e9f3-4812-b7ce-0772de4bdd50","constructor":{"id":"5fe6c749-0a3c-43e7-a079-555d0fc53689","name":"NTS","legacy_id":550},"name":"Lotus Aprilia","legacy_id":203,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/moto2/original/team_bike_203_1583857101.jpg","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/6854"}},{"season":2008,"number":0,"sponsored_team":"Lotus Aprilia","team":{"id":"005ef2f6-e9f3-4812-b7ce-0772de4bdd50","constructor":{"id":"5fe6c749-0a3c-43e7-a079-555d0fc53689","name":"NTS","legacy_id":550},"name":"Lotus Aprilia","legacy_id":203,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/moto2/original/team_bike_203_1583857101.jpg","published":true},"category":{"id":"f4c00279-2ae2-42fa-8bce-01c5eaedf392","name":"250cc","legacy_id":5},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/6854"}},{"season":2007,"number":0,"sponsored_team":"Blusens Aprilia","team":{"id":"4d4d1063-076d-49a5-879d-f38109e9880b","constructor":{"id":"cdb641bf-2ec0-41cd-9959-e4322000fae9","name":"Energica","legacy_id":589},"name":"Blusens Aprilia","legacy_id":216,"color":null,"text_color":null,"picture":null,"published":true},"category":{"id":"f4c00279-2ae2-42fa-8bce-01c5eaedf392","name":"250cc","legacy_id":5},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/6854"}},{"season":2006,"number":0,"sponsored_team":"Wurth Honda BQR","team":{"id":"854c70a7-523f-4993-952f-2c7bb896ef1a","constructor":{"id":"cdb641bf-2ec0-41cd-9959-e4322000fae9","name":"Energica","legacy_id":589},"name":"Wurth Honda BQR","legacy_id":218,"color":null,"text_color":null,"picture":null,"published":true},"category":{"id":"f4c00279-2ae2-42fa-8bce-01c5eaedf392","name":"250cc","legacy_id":5},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/6854"}},{"season":2005,"number":41,"sponsored_team":"Seedorf RC3 - Tiempo Holidays","team":{"id":"854c70a7-523f-4993-952f-2c7bb896ef1a","constructor":{"id":"cdb641bf-2ec0-41cd-9959-e4322000fae9","name":"Energica","legacy_id":589},"name":"Wurth Honda BQR","legacy_id":218,"color":null,"text_color":null,"picture":null,"published":true},"category":{"id":"578be24b-3cd6-498f-9ed8-f0817be88467","name":"125cc","legacy_id":10},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/6854"}}],"biography":{"text":"Aleix Espargaro was the youngest ever rider to win the 125cc Spanish National Championship when he claimed the title in 2004, before moving onto the world stage the year after. After taking his first World Championship podium in Moto2™ in 2011, 2012 saw Espargaro graduate to MotoGP™ and claim the title of Champion in the CRT category – before repeating the feat in 2013. Top “Open” rider the year after, and on the podium at MotorLand Aragon, Espargaro then joined the factory Suzuki team in 2015, hauling more points and a pole position at the Catalan GP. In 2017, Espargaro moved to Aprilia Racing Team Gresini and took some top results for the Noale factory, including a best of sixth in both Qatar and Aragon. Progressively cutting the gap to the front, Espargaro remained with Aprilia in 2018 but it was off to a tough start before they made some big progress in the latter half of the year. Remaining with the team in 2019, Espargaro earned a best result of P7 on an unfavoured RS-GP, a result he couldn’t quite match during 2020, as despite being a consistent Top 10 challenger, he finished 17th overall in the Championship. He continued for a fifth season with Aprilia in 2021 and his hard work was rewarded with a much-improved RS-GP. He later became the Noale squad's history-maker by taking their debut MotoGP™ podium in Silverstone. Can Espargaro back that up with further rostrums throughout 2022?","media":{"video":null,"picture":"https://photos.motogp.com/riders/0/6/0684589f-8b85-4e43-92b6-41058e8c00cc/biography/41_Aleix_Espargaro_DSC7874.jpg"}},"legend":false,"legacy_id":6854,"merchandise_url":"","published":true,"injured":false,"banned":false,"wildcard":false} \ No newline at end of file +{ + "id": "a2f51450-cb43-4d32-8eef-bda9ebb435ed", + "name": "Aleix", + "surname": "Espargaro", + "nickname": null, + "country": { + "iso": "ES", + "name": "Spain" + }, + "birth_city": "Granollers", + "birth_date": "1989-07-30", + "physical_attributes": { + "height": 180, + "weight": 66 + }, + "career": [ + { + "season": 2022, + "number": 41, + "sponsored_team": "Aprilia Racing", + "team": { + "id": "11d18b37-baba-400a-80c2-f8ddf040f97e", + "constructor": { + "id": "21fbe597-b587-42e1-b571-a06af5cc2487", + "name": "Aprilia", + "legacy_id": 7 + }, + "name": "Aprilia Racing", + "legacy_id": 21, + "color": "#2db914", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/0/a/0a912f7c-da05-4942-9fd3-282d0a15f10b/Apriliaracing.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "AE41", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/1/3/131debbc-5003-4aa0-aec6-8d11d29f76b9/profile/main/41-Aleix-Espargaro-Rider_DS_5304.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/1/3/131debbc-5003-4aa0-aec6-8d11d29f76b9/bike/main/_0005_41-Aleix-Espargaro_Bike45.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/8/5/8541cc48-6bb2-46dd-8d9c-4b83ebda5bcb/helmet/main/_0003_41-Aleix-Espargaro,-Helmet_LG60769.png", + "secondary": null + }, + "number": "http://localhost:8089/riders/1/7/17ee53ff-ddd2-4b11-a59d-5310d36e232e/number/41-Aleix-Espargaro.png", + "portrait": "http://localhost:8089/riders/1/3/131debbc-5003-4aa0-aec6-8d11d29f76b9/portrait/41-Aleix-Espargaro-Rider_DS_5300.jpg" + } + }, + { + "season": 2021, + "number": 41, + "sponsored_team": "Aprilia Racing Team Gresini", + "team": { + "id": "01736702-c133-4918-90f9-2ddba33af122", + "constructor": { + "id": "21fbe597-b587-42e1-b571-a06af5cc2487", + "name": "Aprilia", + "legacy_id": 7 + }, + "name": "Aprilia Racing Team Gresini", + "legacy_id": 10, + "color": "#9baee4", + "text_color": "#323232", + "picture": "http://localhost:8089/teams/a/7/a7b1c4d6-3da3-482d-8de5-5d8299cec022/Aprilia-Racing-Team.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "AE41", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/e/4/e4f020e5-51d6-407a-9211-34c1c6fec1ba/profile/main/_0006_41-Aleix-Espargaro_Rider_A7R0918.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/8/5/8541cc48-6bb2-46dd-8d9c-4b83ebda5bcb/bike/main/_0004_41-Aleix-Espargaro,-Bike_LG86752.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/8/5/8541cc48-6bb2-46dd-8d9c-4b83ebda5bcb/helmet/main/_0003_41-Aleix-Espargaro,-Helmet_LG60769.png", + "secondary": null + }, + "number": "http://localhost:8089/riders/1/7/17ee53ff-ddd2-4b11-a59d-5310d36e232e/number/41-Aleix-Espargaro.png", + "portrait": "http://localhost:8089/riders/2/d/2d2f8b62-cb89-46fd-a334-1423a28c07f4/portrait/aa.jpg" + } + }, + { + "season": 2020, + "number": 41, + "sponsored_team": "Aprilia Racing Team Gresini", + "team": { + "id": "01736702-c133-4918-90f9-2ddba33af122", + "constructor": { + "id": "21fbe597-b587-42e1-b571-a06af5cc2487", + "name": "Aprilia", + "legacy_id": 7 + }, + "name": "Aprilia Racing Team Gresini", + "legacy_id": 10, + "color": "#9baee4", + "text_color": "#323232", + "picture": "http://localhost:8089/teams/a/7/a7b1c4d6-3da3-482d-8de5-5d8299cec022/Aprilia-Racing-Team.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "AE41", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/3/3/33840a68-98d9-4993-939f-b673fe9f9a28/profile/main/1_0012_41-Aleix-Espargaro-ESP,-Body_DSC5985.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/3/7/37ab0dc0-b1cd-440a-85f6-ded34b3871dc/bike/main/41-Aleix-Espargaro.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/a/4/a457a33c-eb5a-43d5-9ead-43554bf6ff64/helmet/main/41-Aleix-Espargaro.jpg", + "secondary": null + }, + "number": "http://localhost:8089/2019/dorsales/3/6854.png", + "portrait": "http://localhost:8089/riders/e/a/ea47b5cc-5bfa-4ff8-b41e-4b67d91cfea6/portrait/41_Aleix_Espargaro.jpg" + } + }, + { + "season": 2019, + "number": 41, + "sponsored_team": "Aprilia Racing Team Gresini", + "team": { + "id": "01736702-c133-4918-90f9-2ddba33af122", + "constructor": { + "id": "21fbe597-b587-42e1-b571-a06af5cc2487", + "name": "Aprilia", + "legacy_id": 7 + }, + "name": "Aprilia Racing Team Gresini", + "legacy_id": 10, + "color": "#9baee4", + "text_color": "#323232", + "picture": "http://localhost:8089/teams/a/7/a7b1c4d6-3da3-482d-8de5-5d8299cec022/Aprilia-Racing-Team.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2019/riders/motogp/bike/original/rider_6854_1552058430.jpg", + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": "http://localhost:8089/2019/dorsales/3/6854.png", + "portrait": "http://localhost:8089/2019/riders/motogp/grid/original/rider_6854_1562312179.jpg" + } + }, + { + "season": 2018, + "number": 41, + "sponsored_team": "Aprilia Racing Team Gresini", + "team": { + "id": "01736702-c133-4918-90f9-2ddba33af122", + "constructor": { + "id": "21fbe597-b587-42e1-b571-a06af5cc2487", + "name": "Aprilia", + "legacy_id": 7 + }, + "name": "Aprilia Racing Team Gresini", + "legacy_id": 10, + "color": "#9baee4", + "text_color": "#323232", + "picture": "http://localhost:8089/teams/a/7/a7b1c4d6-3da3-482d-8de5-5d8299cec022/Aprilia-Racing-Team.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2018/riders/motogp/bike/original/rider_6854_1521313097.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2018/riders/motogp/helmet/original/rider_6854_1521312573.jpg", + "secondary": null + }, + "number": "http://localhost:8089/2018/dorsales/3/6854.png", + "portrait": "http://localhost:8089/2018/riders/motogp/grid/original/rider_6854_1521213917.jpg" + } + }, + { + "season": 2017, + "number": 41, + "sponsored_team": "Aprilia Racing Team Gresini", + "team": { + "id": "01736702-c133-4918-90f9-2ddba33af122", + "constructor": { + "id": "21fbe597-b587-42e1-b571-a06af5cc2487", + "name": "Aprilia", + "legacy_id": 7 + }, + "name": "Aprilia Racing Team Gresini", + "legacy_id": 10, + "color": "#9baee4", + "text_color": "#323232", + "picture": "http://localhost:8089/teams/a/7/a7b1c4d6-3da3-482d-8de5-5d8299cec022/Aprilia-Racing-Team.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2017/riders/motogp/bike/original/rider_6854_1490378897.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2017/riders/motogp/helmet/original/rider_6854_1490543430.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2017/riders/motogp/grid/original/rider_6854_1490884060.jpg" + } + }, + { + "season": 2016, + "number": 41, + "sponsored_team": "Team SUZUKI ECSTAR", + "team": { + "id": "baac93d0-3068-4c7a-8d3f-ca215b568f77", + "constructor": { + "id": "de2d5a0a-83e3-4114-b5c6-72d10d8a9619", + "name": "Suzuki", + "legacy_id": 2 + }, + "name": "Team SUZUKI ECSTAR", + "legacy_id": 37, + "color": "#4294c1", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/6/a/6ae0f119-6c7c-4171-9062-b431459e7c18/Suzuki.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2016/riders/motogp/bike/original/rider_6854_1458324171.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2016/riders/motogp/helmet/original/rider_6854_1458324106.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2016/riders/motogp/grid/original/rider_6854_1479299292.jpg" + } + }, + { + "season": 2015, + "number": 41, + "sponsored_team": "Team SUZUKI ECSTAR", + "team": { + "id": "baac93d0-3068-4c7a-8d3f-ca215b568f77", + "constructor": { + "id": "de2d5a0a-83e3-4114-b5c6-72d10d8a9619", + "name": "Suzuki", + "legacy_id": 2 + }, + "name": "Team SUZUKI ECSTAR", + "legacy_id": 37, + "color": "#4294c1", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/6/a/6ae0f119-6c7c-4171-9062-b431459e7c18/Suzuki.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/6854" + } + }, + { + "season": 2014, + "number": 41, + "sponsored_team": "NGM Forward Racing", + "team": { + "id": "8bef58dd-3b18-4504-8323-5afd4a29c92a", + "constructor": { + "id": "5fe6c749-0a3c-43e7-a079-555d0fc53689", + "name": "NTS", + "legacy_id": 550 + }, + "name": "NGM Forward Racing", + "legacy_id": 203, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto2/original/team_bike_203_1583857101.jpg", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/6854" + } + }, + { + "season": 2013, + "number": 41, + "sponsored_team": "Power Electronics Aspar", + "team": { + "id": "8a97d771-4e6a-4ac6-9afa-355fb459fa56", + "constructor": { + "id": "38af1078-e2f1-4399-811c-1e98cf6f6150", + "name": "Ducati", + "legacy_id": 110 + }, + "name": "Pramac Racing Team", + "legacy_id": 32, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/motogp/original/team_bike_32_1574329095.jpg", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/6854" + } + }, + { + "season": 2012, + "number": 41, + "sponsored_team": "Power Electronics Aspar", + "team": { + "id": "8a97d771-4e6a-4ac6-9afa-355fb459fa56", + "constructor": { + "id": "38af1078-e2f1-4399-811c-1e98cf6f6150", + "name": "Ducati", + "legacy_id": 110 + }, + "name": "Pramac Racing Team", + "legacy_id": 32, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/motogp/original/team_bike_32_1574329095.jpg", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/6854" + } + }, + { + "season": 2011, + "number": 40, + "sponsored_team": "Pons HP 40", + "team": { + "id": "8a97d771-4e6a-4ac6-9afa-355fb459fa56", + "constructor": { + "id": "38af1078-e2f1-4399-811c-1e98cf6f6150", + "name": "Ducati", + "legacy_id": 110 + }, + "name": "Pramac Racing Team", + "legacy_id": 32, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/motogp/original/team_bike_32_1574329095.jpg", + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/6854" + } + }, + { + "season": 2010, + "number": 41, + "sponsored_team": "Pramac Racing Team", + "team": { + "id": "8a97d771-4e6a-4ac6-9afa-355fb459fa56", + "constructor": { + "id": "38af1078-e2f1-4399-811c-1e98cf6f6150", + "name": "Ducati", + "legacy_id": 110 + }, + "name": "Pramac Racing Team", + "legacy_id": 32, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/motogp/original/team_bike_32_1574329095.jpg", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/6854" + } + }, + { + "season": 2009, + "number": 0, + "sponsored_team": null, + "team": { + "id": "005ef2f6-e9f3-4812-b7ce-0772de4bdd50", + "constructor": { + "id": "5fe6c749-0a3c-43e7-a079-555d0fc53689", + "name": "NTS", + "legacy_id": 550 + }, + "name": "Lotus Aprilia", + "legacy_id": 203, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto2/original/team_bike_203_1583857101.jpg", + "published": true + }, + "category": { + "id": "f4c00279-2ae2-42fa-8bce-01c5eaedf392", + "name": "250cc", + "legacy_id": 5 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/6854" + } + }, + { + "season": 2009, + "number": 0, + "sponsored_team": null, + "team": { + "id": "005ef2f6-e9f3-4812-b7ce-0772de4bdd50", + "constructor": { + "id": "5fe6c749-0a3c-43e7-a079-555d0fc53689", + "name": "NTS", + "legacy_id": 550 + }, + "name": "Lotus Aprilia", + "legacy_id": 203, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto2/original/team_bike_203_1583857101.jpg", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/6854" + } + }, + { + "season": 2008, + "number": 0, + "sponsored_team": "Lotus Aprilia", + "team": { + "id": "005ef2f6-e9f3-4812-b7ce-0772de4bdd50", + "constructor": { + "id": "5fe6c749-0a3c-43e7-a079-555d0fc53689", + "name": "NTS", + "legacy_id": 550 + }, + "name": "Lotus Aprilia", + "legacy_id": 203, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto2/original/team_bike_203_1583857101.jpg", + "published": true + }, + "category": { + "id": "f4c00279-2ae2-42fa-8bce-01c5eaedf392", + "name": "250cc", + "legacy_id": 5 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/6854" + } + }, + { + "season": 2007, + "number": 0, + "sponsored_team": "Blusens Aprilia", + "team": { + "id": "4d4d1063-076d-49a5-879d-f38109e9880b", + "constructor": { + "id": "cdb641bf-2ec0-41cd-9959-e4322000fae9", + "name": "Energica", + "legacy_id": 589 + }, + "name": "Blusens Aprilia", + "legacy_id": 216, + "color": null, + "text_color": null, + "picture": null, + "published": true + }, + "category": { + "id": "f4c00279-2ae2-42fa-8bce-01c5eaedf392", + "name": "250cc", + "legacy_id": 5 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/6854" + } + }, + { + "season": 2006, + "number": 0, + "sponsored_team": "Wurth Honda BQR", + "team": { + "id": "854c70a7-523f-4993-952f-2c7bb896ef1a", + "constructor": { + "id": "cdb641bf-2ec0-41cd-9959-e4322000fae9", + "name": "Energica", + "legacy_id": 589 + }, + "name": "Wurth Honda BQR", + "legacy_id": 218, + "color": null, + "text_color": null, + "picture": null, + "published": true + }, + "category": { + "id": "f4c00279-2ae2-42fa-8bce-01c5eaedf392", + "name": "250cc", + "legacy_id": 5 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/6854" + } + }, + { + "season": 2005, + "number": 41, + "sponsored_team": "Seedorf RC3 - Tiempo Holidays", + "team": { + "id": "854c70a7-523f-4993-952f-2c7bb896ef1a", + "constructor": { + "id": "cdb641bf-2ec0-41cd-9959-e4322000fae9", + "name": "Energica", + "legacy_id": 589 + }, + "name": "Wurth Honda BQR", + "legacy_id": 218, + "color": null, + "text_color": null, + "picture": null, + "published": true + }, + "category": { + "id": "578be24b-3cd6-498f-9ed8-f0817be88467", + "name": "125cc", + "legacy_id": 10 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/6854" + } + } + ], + "biography": { + "text": "Aleix Espargaro was the youngest ever rider to win the 125cc Spanish National Championship when he claimed the title in 2004, before moving onto the world stage the year after. After taking his first World Championship podium in Moto2™ in 2011, 2012 saw Espargaro graduate to MotoGP™ and claim the title of Champion in the CRT category – before repeating the feat in 2013. Top “Open” rider the year after, and on the podium at MotorLand Aragon, Espargaro then joined the factory Suzuki team in 2015, hauling more points and a pole position at the Catalan GP. In 2017, Espargaro moved to Aprilia Racing Team Gresini and took some top results for the Noale factory, including a best of sixth in both Qatar and Aragon. Progressively cutting the gap to the front, Espargaro remained with Aprilia in 2018 but it was off to a tough start before they made some big progress in the latter half of the year. Remaining with the team in 2019, Espargaro earned a best result of P7 on an unfavoured RS-GP, a result he couldn’t quite match during 2020, as despite being a consistent Top 10 challenger, he finished 17th overall in the Championship. He continued for a fifth season with Aprilia in 2021 and his hard work was rewarded with a much-improved RS-GP. He later became the Noale squad's history-maker by taking their debut MotoGP™ podium in Silverstone. Can Espargaro back that up with further rostrums throughout 2022?", + "media": { + "video": null, + "picture": "http://localhost:8089/riders/0/6/0684589f-8b85-4e43-92b6-41058e8c00cc/biography/41_Aleix_Espargaro_DSC7874.jpg" + } + }, + "legend": false, + "legacy_id": 6854, + "merchandise_url": "", + "published": true, + "injured": false, + "banned": false, + "wildcard": false +} \ No newline at end of file diff --git a/src/test/resources/__files/rider/6976.json b/src/test/resources/__files/rider/6976.json index fd90f8f..f4ffa4c 100644 --- a/src/test/resources/__files/rider/6976.json +++ b/src/test/resources/__files/rider/6976.json @@ -1 +1,591 @@ -{"id":"a7b4d63f-45b3-402e-b66c-001ed8a62934","name":"Takaaki","surname":"Nakagami","nickname":null,"country":{"iso":"JP","name":"Japan"},"birth_city":"Chiba","birth_date":"1992-02-09","physical_attributes":{"height":175,"weight":70},"career":[{"season":2022,"number":30,"sponsored_team":"LCR Honda IDEMITSU","team":{"id":"77a0174a-c84d-4955-a722-b39e4d8e4ce5","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"LCR Honda","legacy_id":17,"color":"#fafafa","text_color":"#323232","picture":"https://photos.motogp.com/teams/6/a/6ad36fc5-ecaa-437a-9324-f45420b4198b/LCR.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":"TN30","current":false,"pictures":{"profile":{"main":"https://photos.motogp.com/riders/7/2/72f9d48b-1654-4d7e-88d2-a70cfc7ff024/profile/main/30-Takaaki_Nakagami.png","secondary":null},"bike":{"main":"https://photos.motogp.com/riders/e/c/ecd23d47-976e-4485-ade3-a61a8036bdc5/bike/main/_0001_30-Takaaki-Nakagami-Bike-MotoGPDSC04135.png","secondary":null},"helmet":{"main":"https://photos.motogp.com/riders/7/2/72f9d48b-1654-4d7e-88d2-a70cfc7ff024/helmet/main/30-Takaaki-Nakagami.jpg","secondary":null},"number":"https://photos.motogp.com/riders/1/7/17548035-38d8-4f77-870b-1c86712e1095/number/30-Takaaki-Nakagami.png","portrait":"https://photos.motogp.com/riders/7/2/72f9d48b-1654-4d7e-88d2-a70cfc7ff024/portrait/30-Takkaki_Nakagami.jpg"}},{"season":2021,"number":30,"sponsored_team":"LCR Honda IDEMITSU","team":{"id":"77a0174a-c84d-4955-a722-b39e4d8e4ce5","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"LCR Honda","legacy_id":17,"color":"#fafafa","text_color":"#323232","picture":"https://photos.motogp.com/teams/6/a/6ad36fc5-ecaa-437a-9324-f45420b4198b/LCR.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":"TN30","current":false,"pictures":{"profile":{"main":"https://photos.motogp.com/riders/4/f/4fd7b3ff-b3f1-4fa1-89df-e6a0f2d6aa72/profile/main/_0008_30-Takaaki-Nakagami,-Rider_A7R0588.png","secondary":null},"bike":{"main":"https://photos.motogp.com/riders/4/f/4fd7b3ff-b3f1-4fa1-89df-e6a0f2d6aa72/bike/main/_0005_30-Takaaki-Nakagami,-Bike_LG86569.png","secondary":null},"helmet":{"main":"https://photos.motogp.com/riders/4/f/4fd7b3ff-b3f1-4fa1-89df-e6a0f2d6aa72/helmet/main/_0004_30-Takaaki-Nakagami,-Helmet_LG60512.png","secondary":null},"number":"https://photos.motogp.com/riders/1/7/17548035-38d8-4f77-870b-1c86712e1095/number/30-Takaaki-Nakagami.png","portrait":"https://photos.motogp.com/riders/4/f/4fd7b3ff-b3f1-4fa1-89df-e6a0f2d6aa72/portrait/_0004_30-Takaaki-Nakagami,-Rider_A7R0582.jpg"}},{"season":2020,"number":30,"sponsored_team":"LCR Honda IDEMITSU","team":{"id":"77a0174a-c84d-4955-a722-b39e4d8e4ce5","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"LCR Honda","legacy_id":17,"color":"#fafafa","text_color":"#323232","picture":"https://photos.motogp.com/teams/6/a/6ad36fc5-ecaa-437a-9324-f45420b4198b/LCR.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":"TN30","current":false,"pictures":{"profile":{"main":"https://photos.motogp.com/riders/8/8/88753d54-35cf-4f04-8220-a28ec7858942/profile/main/1_0007_30-Takaaki-Nakagami-JPN,-Body_DSC6599.png","secondary":null},"bike":{"main":"https://photos.motogp.com/riders/5/6/569a4b62-3e2e-4b91-8c48-dd5584d5e0d4/bike/main/30-Takaaki-Nakagami.png","secondary":null},"helmet":{"main":"https://photos.motogp.com/riders/a/8/a8c783e9-94bb-4623-ba28-9e2b4ef6c235/helmet/main/30-Takaaki-Nakagami.jpg","secondary":null},"number":"https://photos.motogp.com/riders/d/3/d34e6162-a9c9-4ec0-af7a-fd1a7b997e60/number/30_Takaaki_Nakagami.png","portrait":"https://photos.motogp.com/riders/8/5/857a5b73-6655-42e6-9778-316c3030d4b5/portrait/30_Takaaki_Nakagami.jpg"}},{"season":2019,"number":30,"sponsored_team":"LCR Honda IDEMITSU","team":{"id":"77a0174a-c84d-4955-a722-b39e4d8e4ce5","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"LCR Honda","legacy_id":17,"color":"#fafafa","text_color":"#323232","picture":"https://photos.motogp.com/teams/6/a/6ad36fc5-ecaa-437a-9324-f45420b4198b/LCR.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2019/riders/motogp/bike/original/rider_6976_1552058435.jpg","secondary":null},"helmet":{"main":null,"secondary":null},"number":"https://photos.motogp.com/2019/dorsales/3/6976.png","portrait":"https://photos.motogp.com/2019/riders/motogp/grid/original/rider_6976_1554806193.jpg"}},{"season":2018,"number":30,"sponsored_team":"LCR Honda IDEMITSU","team":{"id":"77a0174a-c84d-4955-a722-b39e4d8e4ce5","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"LCR Honda","legacy_id":17,"color":"#fafafa","text_color":"#323232","picture":"https://photos.motogp.com/teams/6/a/6ad36fc5-ecaa-437a-9324-f45420b4198b/LCR.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2018/riders/motogp/bike/original/rider_6976_1521313189.jpg","secondary":null},"helmet":{"main":"https://photos.motogp.com/2018/riders/motogp/helmet/original/rider_6976_1521312842.jpg","secondary":null},"number":"https://photos.motogp.com/2018/dorsales/3/6976.png","portrait":"https://photos.motogp.com/2018/riders/motogp/grid/original/rider_6976_1521213878.jpg"}},{"season":2017,"number":30,"sponsored_team":"IDEMITSU Honda Team Asia","team":{"id":"b208e1d8-b4cf-4cb8-a912-0dba179dd7cf","constructor":{"id":"791160c2-6d2f-47ad-8d87-29e4f729073a","name":"Kalex","legacy_id":447},"name":"IDEMITSU Honda Team Asia","legacy_id":null,"color":"#026603","text_color":null,"picture":"https://photos.motogp.com/teams/5/2/523b4ee8-d9ff-465c-b92c-39deb6df4f8d/team_213_moto2_2020.png","published":true},"category":{"id":"ea854a67-73a4-4a28-ac77-d67b3b2a530a","name":"Moto2","legacy_id":2},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2017/riders/moto2/bike/original/rider_6976_1490204501.jpg","secondary":null},"helmet":{"main":"https://photos.motogp.com/2017/riders/moto2/helmet/original/rider_6976_1490546678.jpg","secondary":null},"number":null,"portrait":"https://photos.motogp.com/2017/riders/moto2/grid/original/rider_6976_1490198476.jpg"}},{"season":2016,"number":30,"sponsored_team":"IDEMITSU Honda Team Asia","team":{"id":"b208e1d8-b4cf-4cb8-a912-0dba179dd7cf","constructor":{"id":"791160c2-6d2f-47ad-8d87-29e4f729073a","name":"Kalex","legacy_id":447},"name":"IDEMITSU Honda Team Asia","legacy_id":null,"color":"#026603","text_color":null,"picture":"https://photos.motogp.com/teams/5/2/523b4ee8-d9ff-465c-b92c-39deb6df4f8d/team_213_moto2_2020.png","published":true},"category":{"id":"ea854a67-73a4-4a28-ac77-d67b3b2a530a","name":"Moto2","legacy_id":2},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2016/riders/moto2/bike/original/rider_6976_1458824220.jpg","secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://photos.motogp.com/2016/riders/moto2/grid/original/rider_6976_1458821418.jpg"}},{"season":2015,"number":30,"sponsored_team":"IDEMITSU Honda Team Asia","team":{"id":"b208e1d8-b4cf-4cb8-a912-0dba179dd7cf","constructor":{"id":"791160c2-6d2f-47ad-8d87-29e4f729073a","name":"Kalex","legacy_id":447},"name":"IDEMITSU Honda Team Asia","legacy_id":null,"color":"#026603","text_color":null,"picture":"https://photos.motogp.com/teams/5/2/523b4ee8-d9ff-465c-b92c-39deb6df4f8d/team_213_moto2_2020.png","published":true},"category":{"id":"ea854a67-73a4-4a28-ac77-d67b3b2a530a","name":"Moto2","legacy_id":2},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/6976"}},{"season":2014,"number":30,"sponsored_team":"IDEMITSU Honda Team Asia","team":{"id":"b208e1d8-b4cf-4cb8-a912-0dba179dd7cf","constructor":{"id":"791160c2-6d2f-47ad-8d87-29e4f729073a","name":"Kalex","legacy_id":447},"name":"IDEMITSU Honda Team Asia","legacy_id":null,"color":"#026603","text_color":null,"picture":"https://photos.motogp.com/teams/5/2/523b4ee8-d9ff-465c-b92c-39deb6df4f8d/team_213_moto2_2020.png","published":true},"category":{"id":"ea854a67-73a4-4a28-ac77-d67b3b2a530a","name":"Moto2","legacy_id":2},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/6976"}},{"season":2013,"number":30,"sponsored_team":"Italtrans Racing Team","team":{"id":"127d130a-5b40-4fb2-ab02-c74342be3ac9","constructor":{"id":"791160c2-6d2f-47ad-8d87-29e4f729073a","name":"Kalex","legacy_id":447},"name":"Italtrans Racing Team","legacy_id":null,"color":"#ff8600","text_color":null,"picture":"https://photos.motogp.com/teams/b/5/b5442dd5-0102-493a-909a-25d9dc015aae/team_bike_209_1583857097-.jpg","published":true},"category":{"id":"ea854a67-73a4-4a28-ac77-d67b3b2a530a","name":"Moto2","legacy_id":2},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/6976"}},{"season":2012,"number":30,"sponsored_team":"Italtrans Racing Team","team":{"id":"127d130a-5b40-4fb2-ab02-c74342be3ac9","constructor":{"id":"791160c2-6d2f-47ad-8d87-29e4f729073a","name":"Kalex","legacy_id":447},"name":"Italtrans Racing Team","legacy_id":null,"color":"#ff8600","text_color":null,"picture":"https://photos.motogp.com/teams/b/5/b5442dd5-0102-493a-909a-25d9dc015aae/team_bike_209_1583857097-.jpg","published":true},"category":{"id":"ea854a67-73a4-4a28-ac77-d67b3b2a530a","name":"Moto2","legacy_id":2},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/6976"}},{"season":2009,"number":73,"sponsored_team":"Ongetta Team I.S.P.A.","team":{"id":"25c36eaa-9450-430e-8916-62dfb6331759","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"I.C. Team","legacy_id":112,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/moto3/original/team_bike_112_1584101123.jpg","published":true},"category":{"id":"578be24b-3cd6-498f-9ed8-f0817be88467","name":"125cc","legacy_id":10},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/6976"}},{"season":2008,"number":73,"sponsored_team":"I.C. Team","team":{"id":"25c36eaa-9450-430e-8916-62dfb6331759","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"I.C. Team","legacy_id":112,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/moto3/original/team_bike_112_1584101123.jpg","published":true},"category":{"id":"578be24b-3cd6-498f-9ed8-f0817be88467","name":"125cc","legacy_id":10},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/6976"}}],"biography":{"text":"A product of the Red Bull MotoGP Academy initiative, Nakagami became the youngest ever winner of the Japanese 125cc Championship in 2006, and in 2007 he entered the Spanish series under the Academy banner. In the World Championship in 2008, he achieved his best result of the year with a top ten finish at Donington and he continued in the Championship in 2009. Stepping away from the World Championship for two years, he won the Japanese Moto2™ title in 2011 and was drafted in by the Italtrans team at the Japan GP as a substitute rider. The team offered him a full-time seat for 2012, and in 2013 just missed out on a maiden race victory on numerous occasions - not least when he scored four consecutive second place finishes in the middle of the season. He switched to Idemitsu Honda Team Asia for 2014 but had a tough year, before a return to the podium with third in Misano the following year. He remained with the team in 2016 and took his first win in Assen at the Dutch GP, and by the end of 2017 had garnered eight podiums and two poles. For 2018 Nakagami graduated to the premier class to ride with LCR Honda Idemitsu, and was the best qualifying rookie with several appearances in Q2. 2019 saw Nakagami stay with LCR Honda Idemitsu on a 2018 RC213V, and the Japanese rider strung a solid season together, claiming nine Top 10s and a best finish of P5 at Mugello. Shoulder surgery ended Nakagami’s season after the Japanese GP. His fourth season in the premier class saw him improve even further, placing inside the Top 10 in every race with the exception of Teruel, where he earned a first pole position, and the Valencia GPs. Another year with LCR but it was another of missed opportunity for Nakagami. HRC's struggles certainly didn't help but crashes in key moments saw the Japanese rider end the year with two top five finishes. A crucial year lies ahead in 2022 for Nakagami.","media":{"video":null,"picture":"https://photos.motogp.com/riders/a/8/a82fdd9a-3868-4691-a934-32243a9e0ac1/biography/30_Takaaki_Nakagami_DSC1332.jpg"}},"legend":false,"legacy_id":6976,"merchandise_url":null,"published":true,"injured":false,"banned":false,"wildcard":false} \ No newline at end of file +{ + "id": "a7b4d63f-45b3-402e-b66c-001ed8a62934", + "name": "Takaaki", + "surname": "Nakagami", + "nickname": null, + "country": { + "iso": "JP", + "name": "Japan" + }, + "birth_city": "Chiba", + "birth_date": "1992-02-09", + "physical_attributes": { + "height": 175, + "weight": 70 + }, + "career": [ + { + "season": 2022, + "number": 30, + "sponsored_team": "LCR Honda IDEMITSU", + "team": { + "id": "77a0174a-c84d-4955-a722-b39e4d8e4ce5", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "LCR Honda", + "legacy_id": 17, + "color": "#fafafa", + "text_color": "#323232", + "picture": "http://localhost:8089/teams/6/a/6ad36fc5-ecaa-437a-9324-f45420b4198b/LCR.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "TN30", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/7/2/72f9d48b-1654-4d7e-88d2-a70cfc7ff024/profile/main/30-Takaaki_Nakagami.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/e/c/ecd23d47-976e-4485-ade3-a61a8036bdc5/bike/main/_0001_30-Takaaki-Nakagami-Bike-MotoGPDSC04135.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/7/2/72f9d48b-1654-4d7e-88d2-a70cfc7ff024/helmet/main/30-Takaaki-Nakagami.jpg", + "secondary": null + }, + "number": "http://localhost:8089/riders/1/7/17548035-38d8-4f77-870b-1c86712e1095/number/30-Takaaki-Nakagami.png", + "portrait": "http://localhost:8089/riders/7/2/72f9d48b-1654-4d7e-88d2-a70cfc7ff024/portrait/30-Takkaki_Nakagami.jpg" + } + }, + { + "season": 2021, + "number": 30, + "sponsored_team": "LCR Honda IDEMITSU", + "team": { + "id": "77a0174a-c84d-4955-a722-b39e4d8e4ce5", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "LCR Honda", + "legacy_id": 17, + "color": "#fafafa", + "text_color": "#323232", + "picture": "http://localhost:8089/teams/6/a/6ad36fc5-ecaa-437a-9324-f45420b4198b/LCR.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "TN30", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/4/f/4fd7b3ff-b3f1-4fa1-89df-e6a0f2d6aa72/profile/main/_0008_30-Takaaki-Nakagami,-Rider_A7R0588.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/4/f/4fd7b3ff-b3f1-4fa1-89df-e6a0f2d6aa72/bike/main/_0005_30-Takaaki-Nakagami,-Bike_LG86569.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/4/f/4fd7b3ff-b3f1-4fa1-89df-e6a0f2d6aa72/helmet/main/_0004_30-Takaaki-Nakagami,-Helmet_LG60512.png", + "secondary": null + }, + "number": "http://localhost:8089/riders/1/7/17548035-38d8-4f77-870b-1c86712e1095/number/30-Takaaki-Nakagami.png", + "portrait": "http://localhost:8089/riders/4/f/4fd7b3ff-b3f1-4fa1-89df-e6a0f2d6aa72/portrait/_0004_30-Takaaki-Nakagami,-Rider_A7R0582.jpg" + } + }, + { + "season": 2020, + "number": 30, + "sponsored_team": "LCR Honda IDEMITSU", + "team": { + "id": "77a0174a-c84d-4955-a722-b39e4d8e4ce5", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "LCR Honda", + "legacy_id": 17, + "color": "#fafafa", + "text_color": "#323232", + "picture": "http://localhost:8089/teams/6/a/6ad36fc5-ecaa-437a-9324-f45420b4198b/LCR.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "TN30", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/8/8/88753d54-35cf-4f04-8220-a28ec7858942/profile/main/1_0007_30-Takaaki-Nakagami-JPN,-Body_DSC6599.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/5/6/569a4b62-3e2e-4b91-8c48-dd5584d5e0d4/bike/main/30-Takaaki-Nakagami.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/a/8/a8c783e9-94bb-4623-ba28-9e2b4ef6c235/helmet/main/30-Takaaki-Nakagami.jpg", + "secondary": null + }, + "number": "http://localhost:8089/riders/d/3/d34e6162-a9c9-4ec0-af7a-fd1a7b997e60/number/30_Takaaki_Nakagami.png", + "portrait": "http://localhost:8089/riders/8/5/857a5b73-6655-42e6-9778-316c3030d4b5/portrait/30_Takaaki_Nakagami.jpg" + } + }, + { + "season": 2019, + "number": 30, + "sponsored_team": "LCR Honda IDEMITSU", + "team": { + "id": "77a0174a-c84d-4955-a722-b39e4d8e4ce5", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "LCR Honda", + "legacy_id": 17, + "color": "#fafafa", + "text_color": "#323232", + "picture": "http://localhost:8089/teams/6/a/6ad36fc5-ecaa-437a-9324-f45420b4198b/LCR.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2019/riders/motogp/bike/original/rider_6976_1552058435.jpg", + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": "http://localhost:8089/2019/dorsales/3/6976.png", + "portrait": "http://localhost:8089/2019/riders/motogp/grid/original/rider_6976_1554806193.jpg" + } + }, + { + "season": 2018, + "number": 30, + "sponsored_team": "LCR Honda IDEMITSU", + "team": { + "id": "77a0174a-c84d-4955-a722-b39e4d8e4ce5", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "LCR Honda", + "legacy_id": 17, + "color": "#fafafa", + "text_color": "#323232", + "picture": "http://localhost:8089/teams/6/a/6ad36fc5-ecaa-437a-9324-f45420b4198b/LCR.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2018/riders/motogp/bike/original/rider_6976_1521313189.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2018/riders/motogp/helmet/original/rider_6976_1521312842.jpg", + "secondary": null + }, + "number": "http://localhost:8089/2018/dorsales/3/6976.png", + "portrait": "http://localhost:8089/2018/riders/motogp/grid/original/rider_6976_1521213878.jpg" + } + }, + { + "season": 2017, + "number": 30, + "sponsored_team": "IDEMITSU Honda Team Asia", + "team": { + "id": "b208e1d8-b4cf-4cb8-a912-0dba179dd7cf", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "IDEMITSU Honda Team Asia", + "legacy_id": null, + "color": "#026603", + "text_color": null, + "picture": "http://localhost:8089/teams/5/2/523b4ee8-d9ff-465c-b92c-39deb6df4f8d/team_213_moto2_2020.png", + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2017/riders/moto2/bike/original/rider_6976_1490204501.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2017/riders/moto2/helmet/original/rider_6976_1490546678.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2017/riders/moto2/grid/original/rider_6976_1490198476.jpg" + } + }, + { + "season": 2016, + "number": 30, + "sponsored_team": "IDEMITSU Honda Team Asia", + "team": { + "id": "b208e1d8-b4cf-4cb8-a912-0dba179dd7cf", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "IDEMITSU Honda Team Asia", + "legacy_id": null, + "color": "#026603", + "text_color": null, + "picture": "http://localhost:8089/teams/5/2/523b4ee8-d9ff-465c-b92c-39deb6df4f8d/team_213_moto2_2020.png", + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2016/riders/moto2/bike/original/rider_6976_1458824220.jpg", + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2016/riders/moto2/grid/original/rider_6976_1458821418.jpg" + } + }, + { + "season": 2015, + "number": 30, + "sponsored_team": "IDEMITSU Honda Team Asia", + "team": { + "id": "b208e1d8-b4cf-4cb8-a912-0dba179dd7cf", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "IDEMITSU Honda Team Asia", + "legacy_id": null, + "color": "#026603", + "text_color": null, + "picture": "http://localhost:8089/teams/5/2/523b4ee8-d9ff-465c-b92c-39deb6df4f8d/team_213_moto2_2020.png", + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/6976" + } + }, + { + "season": 2014, + "number": 30, + "sponsored_team": "IDEMITSU Honda Team Asia", + "team": { + "id": "b208e1d8-b4cf-4cb8-a912-0dba179dd7cf", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "IDEMITSU Honda Team Asia", + "legacy_id": null, + "color": "#026603", + "text_color": null, + "picture": "http://localhost:8089/teams/5/2/523b4ee8-d9ff-465c-b92c-39deb6df4f8d/team_213_moto2_2020.png", + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/6976" + } + }, + { + "season": 2013, + "number": 30, + "sponsored_team": "Italtrans Racing Team", + "team": { + "id": "127d130a-5b40-4fb2-ab02-c74342be3ac9", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "Italtrans Racing Team", + "legacy_id": null, + "color": "#ff8600", + "text_color": null, + "picture": "http://localhost:8089/teams/b/5/b5442dd5-0102-493a-909a-25d9dc015aae/team_bike_209_1583857097-.jpg", + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/6976" + } + }, + { + "season": 2012, + "number": 30, + "sponsored_team": "Italtrans Racing Team", + "team": { + "id": "127d130a-5b40-4fb2-ab02-c74342be3ac9", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "Italtrans Racing Team", + "legacy_id": null, + "color": "#ff8600", + "text_color": null, + "picture": "http://localhost:8089/teams/b/5/b5442dd5-0102-493a-909a-25d9dc015aae/team_bike_209_1583857097-.jpg", + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/6976" + } + }, + { + "season": 2009, + "number": 73, + "sponsored_team": "Ongetta Team I.S.P.A.", + "team": { + "id": "25c36eaa-9450-430e-8916-62dfb6331759", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "I.C. Team", + "legacy_id": 112, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_112_1584101123.jpg", + "published": true + }, + "category": { + "id": "578be24b-3cd6-498f-9ed8-f0817be88467", + "name": "125cc", + "legacy_id": 10 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/6976" + } + }, + { + "season": 2008, + "number": 73, + "sponsored_team": "I.C. Team", + "team": { + "id": "25c36eaa-9450-430e-8916-62dfb6331759", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "I.C. Team", + "legacy_id": 112, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_112_1584101123.jpg", + "published": true + }, + "category": { + "id": "578be24b-3cd6-498f-9ed8-f0817be88467", + "name": "125cc", + "legacy_id": 10 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/6976" + } + } + ], + "biography": { + "text": "A product of the Red Bull MotoGP Academy initiative, Nakagami became the youngest ever winner of the Japanese 125cc Championship in 2006, and in 2007 he entered the Spanish series under the Academy banner. In the World Championship in 2008, he achieved his best result of the year with a top ten finish at Donington and he continued in the Championship in 2009. Stepping away from the World Championship for two years, he won the Japanese Moto2™ title in 2011 and was drafted in by the Italtrans team at the Japan GP as a substitute rider. The team offered him a full-time seat for 2012, and in 2013 just missed out on a maiden race victory on numerous occasions - not least when he scored four consecutive second place finishes in the middle of the season. He switched to Idemitsu Honda Team Asia for 2014 but had a tough year, before a return to the podium with third in Misano the following year. He remained with the team in 2016 and took his first win in Assen at the Dutch GP, and by the end of 2017 had garnered eight podiums and two poles. For 2018 Nakagami graduated to the premier class to ride with LCR Honda Idemitsu, and was the best qualifying rookie with several appearances in Q2. 2019 saw Nakagami stay with LCR Honda Idemitsu on a 2018 RC213V, and the Japanese rider strung a solid season together, claiming nine Top 10s and a best finish of P5 at Mugello. Shoulder surgery ended Nakagami’s season after the Japanese GP. His fourth season in the premier class saw him improve even further, placing inside the Top 10 in every race with the exception of Teruel, where he earned a first pole position, and the Valencia GPs. Another year with LCR but it was another of missed opportunity for Nakagami. HRC's struggles certainly didn't help but crashes in key moments saw the Japanese rider end the year with two top five finishes. A crucial year lies ahead in 2022 for Nakagami.", + "media": { + "video": null, + "picture": "http://localhost:8089/riders/a/8/a82fdd9a-3868-4691-a934-32243a9e0ac1/biography/30_Takaaki_Nakagami_DSC1332.jpg" + } + }, + "legend": false, + "legacy_id": 6976, + "merchandise_url": null, + "published": true, + "injured": false, + "banned": false, + "wildcard": false +} \ No newline at end of file diff --git a/src/test/resources/__files/rider/7086.json b/src/test/resources/__files/rider/7086.json index 5d7716e..1769b43 100644 --- a/src/test/resources/__files/rider/7086.json +++ b/src/test/resources/__files/rider/7086.json @@ -1 +1,849 @@ -{"id":"b8b255af-e344-4ca7-818b-480c18a11088","name":"Pol","surname":"Espargaro","nickname":null,"country":{"iso":"ES","name":"Spain"},"birth_city":"Granollers","birth_date":"1991-06-10","physical_attributes":{"height":171,"weight":63},"career":[{"season":2022,"number":44,"sponsored_team":"Repsol Honda Team","team":{"id":"ce837bd3-bc07-40ef-83cf-6a8025bededf","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Repsol Honda Team","legacy_id":14,"color":"#ff9912","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":"PE44","current":false,"pictures":{"profile":{"main":"https://photos.motogp.com/riders/4/7/476655a3-3059-4902-840e-f05c2355617e/profile/main/44_Pol_Espargaro.png","secondary":null},"bike":{"main":"https://photos.motogp.com/riders/4/7/476655a3-3059-4902-840e-f05c2355617e/bike/main/44_Pol_Espargaro_B.png","secondary":null},"helmet":{"main":"https://photos.motogp.com/riders/4/7/476655a3-3059-4902-840e-f05c2355617e/helmet/main/44-Pol-Espargaro.jpg","secondary":null},"number":"https://photos.motogp.com/riders/7/1/71fd4acf-d7cd-4f37-b3b4-e1e96e968e46/number/44-Pol-Espargaro.png","portrait":"https://photos.motogp.com/riders/4/7/476655a3-3059-4902-840e-f05c2355617e/portrait/44_Pol_Espargaro.jpg"}},{"season":2021,"number":44,"sponsored_team":"Repsol Honda Team","team":{"id":"ce837bd3-bc07-40ef-83cf-6a8025bededf","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Repsol Honda Team","legacy_id":14,"color":"#ff9912","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":"PE44","current":false,"pictures":{"profile":{"main":"https://photos.motogp.com/riders/d/f/df3a732a-d5bf-426d-8c0c-d17b1ddd5e6f/profile/main/_0002_44-Pol-Espargaro,-Rider_A7R1150.png","secondary":null},"bike":{"main":"https://photos.motogp.com/riders/d/f/df3a732a-d5bf-426d-8c0c-d17b1ddd5e6f/bike/main/_0004_44-Pol-Espargaro,-Bike_LG86905.png","secondary":null},"helmet":{"main":"https://photos.motogp.com/riders/d/f/df3a732a-d5bf-426d-8c0c-d17b1ddd5e6f/helmet/main/_0002_44-Pol-Espargaro,-Helmet_LG61010.png","secondary":null},"number":"https://photos.motogp.com/riders/7/1/71fd4acf-d7cd-4f37-b3b4-e1e96e968e46/number/44-Pol-Espargaro.png","portrait":"https://photos.motogp.com/riders/c/8/c85e2362-cae4-495c-8e2c-b8d3f4349e57/portrait/_0002_44-Pol-Espargaro,Rider_A7R1144.jpg"}},{"season":2020,"number":44,"sponsored_team":"Red Bull KTM Factory Racing","team":{"id":"0b6cc118-a286-4343-9020-fb53c6f77c1a","constructor":{"id":"5ecd8db7-d87b-4b3e-87b6-1f72ee457ede","name":"KTM","legacy_id":298},"name":"Red Bull KTM Factory Racing","legacy_id":23,"color":"#e05a17","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/4/4/447bf79b-9960-40f0-996d-a2f5ac920650/RedBullKTM.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":"PE44","current":false,"pictures":{"profile":{"main":"https://photos.motogp.com/riders/4/f/4f12b24b-c512-4e33-8066-5742e4600401/profile/main/1_0015_44-Pol-Espargaro-ESP,-Body_DSC5739.png","secondary":null},"bike":{"main":"https://photos.motogp.com/riders/f/b/fb257742-ccb0-4966-a3fc-c42dbf02cb47/bike/main/44-Pol-Espargaro.png","secondary":null},"helmet":{"main":"https://photos.motogp.com/riders/8/1/81a4ddaf-79a1-4751-9ba9-a536cf4a3e7c/helmet/main/44-Pol-Espargaro.jpg","secondary":null},"number":"https://photos.motogp.com/2019/dorsales/3/7086.png","portrait":"https://photos.motogp.com/riders/4/9/49891a87-ecc5-41fc-a26c-2aaac8a7f2ff/portrait/44_Pol_Espargaro.jpg"}},{"season":2019,"number":44,"sponsored_team":"Red Bull KTM Factory Racing","team":{"id":"0b6cc118-a286-4343-9020-fb53c6f77c1a","constructor":{"id":"5ecd8db7-d87b-4b3e-87b6-1f72ee457ede","name":"KTM","legacy_id":298},"name":"Red Bull KTM Factory Racing","legacy_id":23,"color":"#e05a17","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/4/4/447bf79b-9960-40f0-996d-a2f5ac920650/RedBullKTM.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2019/riders/motogp/bike/original/rider_7086_1552058378.jpg","secondary":null},"helmet":{"main":null,"secondary":null},"number":"https://photos.motogp.com/2019/dorsales/3/7086.png","portrait":"https://photos.motogp.com/2019/riders/motogp/grid/original/rider_7086_1554806132.jpg"}},{"season":2018,"number":44,"sponsored_team":"Red Bull KTM Factory Racing","team":{"id":"0b6cc118-a286-4343-9020-fb53c6f77c1a","constructor":{"id":"5ecd8db7-d87b-4b3e-87b6-1f72ee457ede","name":"KTM","legacy_id":298},"name":"Red Bull KTM Factory Racing","legacy_id":23,"color":"#e05a17","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/4/4/447bf79b-9960-40f0-996d-a2f5ac920650/RedBullKTM.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2018/riders/motogp/bike/original/rider_7086_1521313178.jpg","secondary":null},"helmet":{"main":"https://photos.motogp.com/2018/riders/motogp/helmet/original/rider_7086_1521312811.jpg","secondary":null},"number":"https://photos.motogp.com/2018/dorsales/3/7086.png","portrait":"https://photos.motogp.com/2018/riders/motogp/grid/original/rider_7086_1521213862.jpg"}},{"season":2017,"number":44,"sponsored_team":"Red Bull KTM Factory Racing","team":{"id":"0b6cc118-a286-4343-9020-fb53c6f77c1a","constructor":{"id":"5ecd8db7-d87b-4b3e-87b6-1f72ee457ede","name":"KTM","legacy_id":298},"name":"Red Bull KTM Factory Racing","legacy_id":23,"color":"#e05a17","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/4/4/447bf79b-9960-40f0-996d-a2f5ac920650/RedBullKTM.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2017/riders/motogp/bike/original/rider_7086_1490377878.jpg","secondary":null},"helmet":{"main":"https://photos.motogp.com/2017/riders/motogp/helmet/original/rider_7086_1490543518.jpg","secondary":null},"number":null,"portrait":"https://photos.motogp.com/2017/riders/motogp/grid/original/rider_7086_1490883982.jpg"}},{"season":2016,"number":44,"sponsored_team":"Monster Yamaha Tech 3","team":{"id":"d5e2d045-0ed2-4446-89fe-2fd8cf17b1cd","constructor":{"id":"5ecd8db7-d87b-4b3e-87b6-1f72ee457ede","name":"KTM","legacy_id":298},"name":"Monster Yamaha Tech 3","legacy_id":11,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/motogp/original/team_bike_11_1574329097.jpg","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2016/riders/motogp/bike/original/rider_7086_1458324167.jpg","secondary":null},"helmet":{"main":"https://photos.motogp.com/2016/riders/motogp/helmet/original/rider_7086_1458324103.jpg","secondary":null},"number":null,"portrait":"https://photos.motogp.com/2016/riders/motogp/grid/original/rider_7086_1479373632.jpg"}},{"season":2015,"number":44,"sponsored_team":"Monster Yamaha Tech 3","team":{"id":"d5e2d045-0ed2-4446-89fe-2fd8cf17b1cd","constructor":{"id":"5ecd8db7-d87b-4b3e-87b6-1f72ee457ede","name":"KTM","legacy_id":298},"name":"Monster Yamaha Tech 3","legacy_id":11,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/motogp/original/team_bike_11_1574329097.jpg","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/7086"}},{"season":2014,"number":44,"sponsored_team":"Monster Yamaha Tech 3","team":{"id":"d5e2d045-0ed2-4446-89fe-2fd8cf17b1cd","constructor":{"id":"5ecd8db7-d87b-4b3e-87b6-1f72ee457ede","name":"KTM","legacy_id":298},"name":"Monster Yamaha Tech 3","legacy_id":11,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/motogp/original/team_bike_11_1574329097.jpg","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/7086"}},{"season":2013,"number":40,"sponsored_team":"Tuenti HP 40","team":{"id":"a35dd3cc-d6ea-4d21-a3e3-e7869523d79c","constructor":{"id":"fe62d196-ff34-409a-aa32-4aae146e2e3c","name":"Speed Up","legacy_id":431},"name":"Tuenti HP 40","legacy_id":210,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/moto2/original/team_bike_210_1583857099.jpg","published":true},"category":{"id":"ea854a67-73a4-4a28-ac77-d67b3b2a530a","name":"Moto2","legacy_id":2},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/7086"}},{"season":2012,"number":40,"sponsored_team":"Tuenti Movil HP 40","team":{"id":"1909326f-ae07-428c-b5f0-6dbb7647fbbb","constructor":{"id":"fe62d196-ff34-409a-aa32-4aae146e2e3c","name":"Speed Up","legacy_id":431},"name":"Tuenti Movil HP 40","legacy_id":210,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/moto2/original/team_bike_210_1583857099.jpg","published":true},"category":{"id":"ea854a67-73a4-4a28-ac77-d67b3b2a530a","name":"Moto2","legacy_id":2},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/7086"}},{"season":2011,"number":44,"sponsored_team":"HP Tuenti Speed Up","team":{"id":"9538b3ff-d225-4772-bc74-1db1c605bdd6","constructor":{"id":"791160c2-6d2f-47ad-8d87-29e4f729073a","name":"Kalex","legacy_id":447},"name":"HP Tuenti Speed Up","legacy_id":207,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/moto2/original/team_bike_207_1583857094.jpg","published":true},"category":{"id":"ea854a67-73a4-4a28-ac77-d67b3b2a530a","name":"Moto2","legacy_id":2},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/7086"}},{"season":2010,"number":44,"sponsored_team":"Tuenti Racing","team":{"id":"abc73d63-f853-45be-8997-6818051deba5","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Tuenti Racing","legacy_id":102,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/motogp/original/team_bike_102_1574346132.jpg","published":true},"category":{"id":"578be24b-3cd6-498f-9ed8-f0817be88467","name":"125cc","legacy_id":10},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/7086"}},{"season":2009,"number":44,"sponsored_team":"Derbi Racing Team","team":{"id":"3db9f6ae-ac84-47b3-aba6-9dad92ed2d36","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Derbi Racing Team","legacy_id":102,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/motogp/original/team_bike_102_1574346132.jpg","published":true},"category":{"id":"578be24b-3cd6-498f-9ed8-f0817be88467","name":"125cc","legacy_id":10},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/7086"}},{"season":2008,"number":44,"sponsored_team":"Belson Derbi","team":{"id":"dcc8ebc4-f4eb-4b4b-b008-44afce0ffb95","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Belson Derbi","legacy_id":102,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/motogp/original/team_bike_102_1574346132.jpg","published":true},"category":{"id":"578be24b-3cd6-498f-9ed8-f0817be88467","name":"125cc","legacy_id":10},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/7086"}},{"season":2007,"number":44,"sponsored_team":"Belson Campetella Aprilia","team":{"id":"f8621062-4a0b-473b-9c52-e7b258129e9a","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Belson Campetella Aprilia","legacy_id":104,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/moto3/original/team_bike_104_1584101119.jpg","published":true},"category":{"id":"578be24b-3cd6-498f-9ed8-f0817be88467","name":"125cc","legacy_id":10},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/7086"}},{"season":2006,"number":42,"sponsored_team":"Team RACC Derbi","team":{"id":"a50f0139-8c5d-41ff-8208-e3b6739273ee","constructor":{"id":"5fe6c749-0a3c-43e7-a079-555d0fc53689","name":"NTS","legacy_id":550},"name":"Stop And Go Racing Team","legacy_id":203,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/moto2/original/team_bike_203_1583857101.jpg","published":true},"category":{"id":"578be24b-3cd6-498f-9ed8-f0817be88467","name":"125cc","legacy_id":10},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/7086"}},{"season":2006,"number":42,"sponsored_team":"Campetella Racing Junior","team":{"id":"fb74cfb6-5a1d-4092-882d-36eab830c22d","constructor":{"id":"ce40d972-fa4a-421e-b747-d67d3ca1afc6","name":"Husqvarna","legacy_id":164},"name":"Campetella Racing Junior","legacy_id":116,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/moto3/original/team_bike_116_1584101125.jpg","published":true},"category":{"id":"578be24b-3cd6-498f-9ed8-f0817be88467","name":"125cc","legacy_id":10},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/7086"}},{"season":2006,"number":42,"sponsored_team":"Stop And Go Racing Team","team":{"id":"a50f0139-8c5d-41ff-8208-e3b6739273ee","constructor":{"id":"5fe6c749-0a3c-43e7-a079-555d0fc53689","name":"NTS","legacy_id":550},"name":"Stop And Go Racing Team","legacy_id":203,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/moto2/original/team_bike_203_1583857101.jpg","published":true},"category":{"id":"578be24b-3cd6-498f-9ed8-f0817be88467","name":"125cc","legacy_id":10},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/7086"}}],"biography":{"text":"Pol Espargaro debuted in the 125 World Championship in 2006 in seven races alongside winning the Spanish national crown in the same year. Rookie of the Year in his first full World Championship campaign, 2009 then saw Espargaro take his first win. Moving up to the Moto2™ World Championship in 2011 after a title challenge in the lightweight class the year before, the Spaniard took the intermediate class crown in 2013 before moving up to MotoGP™. Rookie of the Year once again, 2015 was then tougher with some DNFs, before 2016 saw Espargaro just miss out on the title of top Independent Team rider to Cal Crutchlow. The Granollers native moved to Red Bull KTM Factory Racing in 2017, and was the team’s top rider in their first season – including some entries into Q2 and solid top ten results. In 2018, Espargaro was often the fastest Austrian machine once again but the Spaniard suffered some big injury struggles mid-season that curtailed progress. After a difficult year, some light appeared at the end of the tunnel in Valencia as Espargaro took KTM's first podium in MotoGP™ with an impressive ride in difficult conditions. In 2019, Espargaro stayed in orange and although there was no repeat podium success, the number 44 was KTM’s shining light. A wrist fracture in Aragon didn’t stop Espargaro from reaching the 100-point tally, with a dry-race P6 in Le Mans his best result. KTM proved the surprise package of 2020 and Pol Espargaro was at the very heart of it, as five podium finishes throughout the season, as well two pole positions for the first time in his career, helped him to 5th in the Championship. A move to Repsol Honda for 2021 was the talk of the paddock ahead of the season, and Espargaro quickly learned why the RC213V was regarded as the fiercest bike on the grid. A pole at Silverstone and a first podium for the Japanese factory in Misano were key moments in a tough twelve months. Espargaro will be hoping Honda's much-changed machine can parachute him into the 2022 title chase.","media":{"video":null,"picture":"https://photos.motogp.com/riders/9/f/9ffe5d83-ab29-425f-85a7-d24382b1efa1/biography/44_Pol_Espargaro_DSC8349.jpg"}},"legend":false,"legacy_id":7086,"merchandise_url":"https://store.motogp.com/en/pol-espargaro-44-merchandise?utm_source=motogp.com&utm_medium=Link&utm_content=PE44&utm_campaign=Store&o=motogp-riders-stats","published":true,"injured":false,"banned":false,"wildcard":false} \ No newline at end of file +{ + "id": "b8b255af-e344-4ca7-818b-480c18a11088", + "name": "Pol", + "surname": "Espargaro", + "nickname": null, + "country": { + "iso": "ES", + "name": "Spain" + }, + "birth_city": "Granollers", + "birth_date": "1991-06-10", + "physical_attributes": { + "height": 171, + "weight": 63 + }, + "career": [ + { + "season": 2022, + "number": 44, + "sponsored_team": "Repsol Honda Team", + "team": { + "id": "ce837bd3-bc07-40ef-83cf-6a8025bededf", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Repsol Honda Team", + "legacy_id": 14, + "color": "#ff9912", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "PE44", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/4/7/476655a3-3059-4902-840e-f05c2355617e/profile/main/44_Pol_Espargaro.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/4/7/476655a3-3059-4902-840e-f05c2355617e/bike/main/44_Pol_Espargaro_B.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/4/7/476655a3-3059-4902-840e-f05c2355617e/helmet/main/44-Pol-Espargaro.jpg", + "secondary": null + }, + "number": "http://localhost:8089/riders/7/1/71fd4acf-d7cd-4f37-b3b4-e1e96e968e46/number/44-Pol-Espargaro.png", + "portrait": "http://localhost:8089/riders/4/7/476655a3-3059-4902-840e-f05c2355617e/portrait/44_Pol_Espargaro.jpg" + } + }, + { + "season": 2021, + "number": 44, + "sponsored_team": "Repsol Honda Team", + "team": { + "id": "ce837bd3-bc07-40ef-83cf-6a8025bededf", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Repsol Honda Team", + "legacy_id": 14, + "color": "#ff9912", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "PE44", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/d/f/df3a732a-d5bf-426d-8c0c-d17b1ddd5e6f/profile/main/_0002_44-Pol-Espargaro,-Rider_A7R1150.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/d/f/df3a732a-d5bf-426d-8c0c-d17b1ddd5e6f/bike/main/_0004_44-Pol-Espargaro,-Bike_LG86905.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/d/f/df3a732a-d5bf-426d-8c0c-d17b1ddd5e6f/helmet/main/_0002_44-Pol-Espargaro,-Helmet_LG61010.png", + "secondary": null + }, + "number": "http://localhost:8089/riders/7/1/71fd4acf-d7cd-4f37-b3b4-e1e96e968e46/number/44-Pol-Espargaro.png", + "portrait": "http://localhost:8089/riders/c/8/c85e2362-cae4-495c-8e2c-b8d3f4349e57/portrait/_0002_44-Pol-Espargaro,Rider_A7R1144.jpg" + } + }, + { + "season": 2020, + "number": 44, + "sponsored_team": "Red Bull KTM Factory Racing", + "team": { + "id": "0b6cc118-a286-4343-9020-fb53c6f77c1a", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "Red Bull KTM Factory Racing", + "legacy_id": 23, + "color": "#e05a17", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/4/4/447bf79b-9960-40f0-996d-a2f5ac920650/RedBullKTM.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "PE44", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/4/f/4f12b24b-c512-4e33-8066-5742e4600401/profile/main/1_0015_44-Pol-Espargaro-ESP,-Body_DSC5739.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/f/b/fb257742-ccb0-4966-a3fc-c42dbf02cb47/bike/main/44-Pol-Espargaro.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/8/1/81a4ddaf-79a1-4751-9ba9-a536cf4a3e7c/helmet/main/44-Pol-Espargaro.jpg", + "secondary": null + }, + "number": "http://localhost:8089/2019/dorsales/3/7086.png", + "portrait": "http://localhost:8089/riders/4/9/49891a87-ecc5-41fc-a26c-2aaac8a7f2ff/portrait/44_Pol_Espargaro.jpg" + } + }, + { + "season": 2019, + "number": 44, + "sponsored_team": "Red Bull KTM Factory Racing", + "team": { + "id": "0b6cc118-a286-4343-9020-fb53c6f77c1a", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "Red Bull KTM Factory Racing", + "legacy_id": 23, + "color": "#e05a17", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/4/4/447bf79b-9960-40f0-996d-a2f5ac920650/RedBullKTM.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2019/riders/motogp/bike/original/rider_7086_1552058378.jpg", + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": "http://localhost:8089/2019/dorsales/3/7086.png", + "portrait": "http://localhost:8089/2019/riders/motogp/grid/original/rider_7086_1554806132.jpg" + } + }, + { + "season": 2018, + "number": 44, + "sponsored_team": "Red Bull KTM Factory Racing", + "team": { + "id": "0b6cc118-a286-4343-9020-fb53c6f77c1a", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "Red Bull KTM Factory Racing", + "legacy_id": 23, + "color": "#e05a17", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/4/4/447bf79b-9960-40f0-996d-a2f5ac920650/RedBullKTM.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2018/riders/motogp/bike/original/rider_7086_1521313178.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2018/riders/motogp/helmet/original/rider_7086_1521312811.jpg", + "secondary": null + }, + "number": "http://localhost:8089/2018/dorsales/3/7086.png", + "portrait": "http://localhost:8089/2018/riders/motogp/grid/original/rider_7086_1521213862.jpg" + } + }, + { + "season": 2017, + "number": 44, + "sponsored_team": "Red Bull KTM Factory Racing", + "team": { + "id": "0b6cc118-a286-4343-9020-fb53c6f77c1a", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "Red Bull KTM Factory Racing", + "legacy_id": 23, + "color": "#e05a17", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/4/4/447bf79b-9960-40f0-996d-a2f5ac920650/RedBullKTM.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2017/riders/motogp/bike/original/rider_7086_1490377878.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2017/riders/motogp/helmet/original/rider_7086_1490543518.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2017/riders/motogp/grid/original/rider_7086_1490883982.jpg" + } + }, + { + "season": 2016, + "number": 44, + "sponsored_team": "Monster Yamaha Tech 3", + "team": { + "id": "d5e2d045-0ed2-4446-89fe-2fd8cf17b1cd", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "Monster Yamaha Tech 3", + "legacy_id": 11, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/motogp/original/team_bike_11_1574329097.jpg", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2016/riders/motogp/bike/original/rider_7086_1458324167.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2016/riders/motogp/helmet/original/rider_7086_1458324103.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2016/riders/motogp/grid/original/rider_7086_1479373632.jpg" + } + }, + { + "season": 2015, + "number": 44, + "sponsored_team": "Monster Yamaha Tech 3", + "team": { + "id": "d5e2d045-0ed2-4446-89fe-2fd8cf17b1cd", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "Monster Yamaha Tech 3", + "legacy_id": 11, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/motogp/original/team_bike_11_1574329097.jpg", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7086" + } + }, + { + "season": 2014, + "number": 44, + "sponsored_team": "Monster Yamaha Tech 3", + "team": { + "id": "d5e2d045-0ed2-4446-89fe-2fd8cf17b1cd", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "Monster Yamaha Tech 3", + "legacy_id": 11, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/motogp/original/team_bike_11_1574329097.jpg", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7086" + } + }, + { + "season": 2013, + "number": 40, + "sponsored_team": "Tuenti HP 40", + "team": { + "id": "a35dd3cc-d6ea-4d21-a3e3-e7869523d79c", + "constructor": { + "id": "fe62d196-ff34-409a-aa32-4aae146e2e3c", + "name": "Speed Up", + "legacy_id": 431 + }, + "name": "Tuenti HP 40", + "legacy_id": 210, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto2/original/team_bike_210_1583857099.jpg", + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7086" + } + }, + { + "season": 2012, + "number": 40, + "sponsored_team": "Tuenti Movil HP 40", + "team": { + "id": "1909326f-ae07-428c-b5f0-6dbb7647fbbb", + "constructor": { + "id": "fe62d196-ff34-409a-aa32-4aae146e2e3c", + "name": "Speed Up", + "legacy_id": 431 + }, + "name": "Tuenti Movil HP 40", + "legacy_id": 210, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto2/original/team_bike_210_1583857099.jpg", + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7086" + } + }, + { + "season": 2011, + "number": 44, + "sponsored_team": "HP Tuenti Speed Up", + "team": { + "id": "9538b3ff-d225-4772-bc74-1db1c605bdd6", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "HP Tuenti Speed Up", + "legacy_id": 207, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto2/original/team_bike_207_1583857094.jpg", + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7086" + } + }, + { + "season": 2010, + "number": 44, + "sponsored_team": "Tuenti Racing", + "team": { + "id": "abc73d63-f853-45be-8997-6818051deba5", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Tuenti Racing", + "legacy_id": 102, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/motogp/original/team_bike_102_1574346132.jpg", + "published": true + }, + "category": { + "id": "578be24b-3cd6-498f-9ed8-f0817be88467", + "name": "125cc", + "legacy_id": 10 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7086" + } + }, + { + "season": 2009, + "number": 44, + "sponsored_team": "Derbi Racing Team", + "team": { + "id": "3db9f6ae-ac84-47b3-aba6-9dad92ed2d36", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Derbi Racing Team", + "legacy_id": 102, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/motogp/original/team_bike_102_1574346132.jpg", + "published": true + }, + "category": { + "id": "578be24b-3cd6-498f-9ed8-f0817be88467", + "name": "125cc", + "legacy_id": 10 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7086" + } + }, + { + "season": 2008, + "number": 44, + "sponsored_team": "Belson Derbi", + "team": { + "id": "dcc8ebc4-f4eb-4b4b-b008-44afce0ffb95", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Belson Derbi", + "legacy_id": 102, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/motogp/original/team_bike_102_1574346132.jpg", + "published": true + }, + "category": { + "id": "578be24b-3cd6-498f-9ed8-f0817be88467", + "name": "125cc", + "legacy_id": 10 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7086" + } + }, + { + "season": 2007, + "number": 44, + "sponsored_team": "Belson Campetella Aprilia", + "team": { + "id": "f8621062-4a0b-473b-9c52-e7b258129e9a", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Belson Campetella Aprilia", + "legacy_id": 104, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_104_1584101119.jpg", + "published": true + }, + "category": { + "id": "578be24b-3cd6-498f-9ed8-f0817be88467", + "name": "125cc", + "legacy_id": 10 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7086" + } + }, + { + "season": 2006, + "number": 42, + "sponsored_team": "Team RACC Derbi", + "team": { + "id": "a50f0139-8c5d-41ff-8208-e3b6739273ee", + "constructor": { + "id": "5fe6c749-0a3c-43e7-a079-555d0fc53689", + "name": "NTS", + "legacy_id": 550 + }, + "name": "Stop And Go Racing Team", + "legacy_id": 203, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto2/original/team_bike_203_1583857101.jpg", + "published": true + }, + "category": { + "id": "578be24b-3cd6-498f-9ed8-f0817be88467", + "name": "125cc", + "legacy_id": 10 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7086" + } + }, + { + "season": 2006, + "number": 42, + "sponsored_team": "Campetella Racing Junior", + "team": { + "id": "fb74cfb6-5a1d-4092-882d-36eab830c22d", + "constructor": { + "id": "ce40d972-fa4a-421e-b747-d67d3ca1afc6", + "name": "Husqvarna", + "legacy_id": 164 + }, + "name": "Campetella Racing Junior", + "legacy_id": 116, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_116_1584101125.jpg", + "published": true + }, + "category": { + "id": "578be24b-3cd6-498f-9ed8-f0817be88467", + "name": "125cc", + "legacy_id": 10 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7086" + } + }, + { + "season": 2006, + "number": 42, + "sponsored_team": "Stop And Go Racing Team", + "team": { + "id": "a50f0139-8c5d-41ff-8208-e3b6739273ee", + "constructor": { + "id": "5fe6c749-0a3c-43e7-a079-555d0fc53689", + "name": "NTS", + "legacy_id": 550 + }, + "name": "Stop And Go Racing Team", + "legacy_id": 203, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto2/original/team_bike_203_1583857101.jpg", + "published": true + }, + "category": { + "id": "578be24b-3cd6-498f-9ed8-f0817be88467", + "name": "125cc", + "legacy_id": 10 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7086" + } + } + ], + "biography": { + "text": "Pol Espargaro debuted in the 125 World Championship in 2006 in seven races alongside winning the Spanish national crown in the same year. Rookie of the Year in his first full World Championship campaign, 2009 then saw Espargaro take his first win. Moving up to the Moto2™ World Championship in 2011 after a title challenge in the lightweight class the year before, the Spaniard took the intermediate class crown in 2013 before moving up to MotoGP™. Rookie of the Year once again, 2015 was then tougher with some DNFs, before 2016 saw Espargaro just miss out on the title of top Independent Team rider to Cal Crutchlow. The Granollers native moved to Red Bull KTM Factory Racing in 2017, and was the team’s top rider in their first season – including some entries into Q2 and solid top ten results. In 2018, Espargaro was often the fastest Austrian machine once again but the Spaniard suffered some big injury struggles mid-season that curtailed progress. After a difficult year, some light appeared at the end of the tunnel in Valencia as Espargaro took KTM's first podium in MotoGP™ with an impressive ride in difficult conditions. In 2019, Espargaro stayed in orange and although there was no repeat podium success, the number 44 was KTM’s shining light. A wrist fracture in Aragon didn’t stop Espargaro from reaching the 100-point tally, with a dry-race P6 in Le Mans his best result. KTM proved the surprise package of 2020 and Pol Espargaro was at the very heart of it, as five podium finishes throughout the season, as well two pole positions for the first time in his career, helped him to 5th in the Championship. A move to Repsol Honda for 2021 was the talk of the paddock ahead of the season, and Espargaro quickly learned why the RC213V was regarded as the fiercest bike on the grid. A pole at Silverstone and a first podium for the Japanese factory in Misano were key moments in a tough twelve months. Espargaro will be hoping Honda's much-changed machine can parachute him into the 2022 title chase.", + "media": { + "video": null, + "picture": "http://localhost:8089/riders/9/f/9ffe5d83-ab29-425f-85a7-d24382b1efa1/biography/44_Pol_Espargaro_DSC8349.jpg" + } + }, + "legend": false, + "legacy_id": 7086, + "merchandise_url": "http://localhost:8089/en/pol-espargaro-44-merchandise?utm_source=localhost:8089&utm_medium=Link&utm_content=PE44&utm_campaign=Store&o=motogp-riders-stats", + "published": true, + "injured": false, + "banned": false, + "wildcard": false +} \ No newline at end of file diff --git a/src/test/resources/__files/rider/7199.json b/src/test/resources/__files/rider/7199.json index c32feb7..5768926 100644 --- a/src/test/resources/__files/rider/7199.json +++ b/src/test/resources/__files/rider/7199.json @@ -1 +1,548 @@ -{"id":"50b4fb1f-1785-4a9a-a65c-97d0de9daa22","name":"Miguel","surname":"Oliveira","nickname":null,"country":{"iso":"PT","name":"Portugal"},"birth_city":"Pragal","birth_date":"1995-01-04","physical_attributes":{"height":170,"weight":64},"career":[{"season":2022,"number":88,"sponsored_team":"Red Bull KTM Factory Racing","team":{"id":"0b6cc118-a286-4343-9020-fb53c6f77c1a","constructor":{"id":"5ecd8db7-d87b-4b3e-87b6-1f72ee457ede","name":"KTM","legacy_id":298},"name":"Red Bull KTM Factory Racing","legacy_id":23,"color":"#e05a17","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/4/4/447bf79b-9960-40f0-996d-a2f5ac920650/RedBullKTM.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":"MO88","current":false,"pictures":{"profile":{"main":"https://photos.motogp.com/riders/6/6/66cbfb87-c8f0-4955-b5a3-a048967ef499/profile/main/88_Miguel_Oliveira.png","secondary":null},"bike":{"main":"https://photos.motogp.com/riders/6/6/66cbfb87-c8f0-4955-b5a3-a048967ef499/bike/main/88_Miguel_Olveira.png","secondary":null},"helmet":{"main":"https://photos.motogp.com/riders/6/6/66cbfb87-c8f0-4955-b5a3-a048967ef499/helmet/main/88-Miguel-Oliveira.jpg","secondary":null},"number":"https://photos.motogp.com/riders/d/7/d7ab634b-d150-46ee-9b05-23805debb88e/number/88-Miguel-Oliveira.png","portrait":"https://photos.motogp.com/riders/6/6/66cbfb87-c8f0-4955-b5a3-a048967ef499/portrait/88_Miguel_Oliveira.jpg"}},{"season":2021,"number":88,"sponsored_team":"Red Bull KTM Factory Racing","team":{"id":"0b6cc118-a286-4343-9020-fb53c6f77c1a","constructor":{"id":"5ecd8db7-d87b-4b3e-87b6-1f72ee457ede","name":"KTM","legacy_id":298},"name":"Red Bull KTM Factory Racing","legacy_id":23,"color":"#e05a17","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/4/4/447bf79b-9960-40f0-996d-a2f5ac920650/RedBullKTM.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":"MO88","current":false,"pictures":{"profile":{"main":"https://photos.motogp.com/riders/d/8/d87742aa-5dd6-492f-b416-229afde8fb59/profile/main/_0000_88-Miguel-Oliveira,-Rider_A7R1789.png","secondary":null},"bike":{"main":"https://photos.motogp.com/riders/8/6/86da9235-32fe-40ce-9202-d42f590d74cb/bike/main/_0001_88-Miguel-Oliveira,-Bike_LG87502.png","secondary":null},"helmet":{"main":"https://photos.motogp.com/riders/8/6/86da9235-32fe-40ce-9202-d42f590d74cb/helmet/main/_0001_88-Miguel-Oliveira,-Helmet_LG62084.jpg","secondary":null},"number":"https://photos.motogp.com/riders/d/7/d7ab634b-d150-46ee-9b05-23805debb88e/number/88-Miguel-Oliveira.png","portrait":"https://photos.motogp.com/riders/2/b/2b6eb98d-b002-4337-92d3-83024f66fb21/portrait/_0000_88-Miguel-Oliveira,Rider_A7R1784.jpg"}},{"season":2020,"number":88,"sponsored_team":"Red Bull KTM Tech 3","team":{"id":"e7de07e2-4309-4a30-8f70-67ead4d6794e","constructor":{"id":"5ecd8db7-d87b-4b3e-87b6-1f72ee457ede","name":"KTM","legacy_id":298},"name":"Tech3 KTM Factory Racing","legacy_id":11,"color":"#b7340b","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/8/c/8cbb2dae-cd62-4850-901d-994227434a5c/Tech3KTM.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":"MO88","current":false,"pictures":{"profile":{"main":"https://photos.motogp.com/riders/2/1/21bb0fa5-2852-4db4-940b-8ec06366803f/profile/main/1_0020_88-Miguel-Oliveira,-Body_DSC5498.png","secondary":null},"bike":{"main":"https://photos.motogp.com/riders/c/0/c0726a95-9b2c-4ec7-b81e-e92af379382d/bike/main/88-Miguel-Oliveira.png","secondary":null},"helmet":{"main":"https://photos.motogp.com/riders/f/9/f9062d93-0246-4bb9-a9c4-5d1eb71f7400/helmet/main/88-Miguel-Oliveira.jpg","secondary":null},"number":"https://photos.motogp.com/2019/dorsales/3/7199.png","portrait":"https://photos.motogp.com/riders/b/5/b5286f33-8634-4763-b034-ffba6db76327/portrait/88_Miguel_Oliveira.jpg"}},{"season":2019,"number":88,"sponsored_team":"Red Bull KTM Tech 3","team":{"id":"e7de07e2-4309-4a30-8f70-67ead4d6794e","constructor":{"id":"5ecd8db7-d87b-4b3e-87b6-1f72ee457ede","name":"KTM","legacy_id":298},"name":"Tech3 KTM Factory Racing","legacy_id":11,"color":"#b7340b","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/8/c/8cbb2dae-cd62-4850-901d-994227434a5c/Tech3KTM.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2019/riders/motogp/bike/original/rider_7199_1552058465.jpg","secondary":null},"helmet":{"main":null,"secondary":null},"number":"https://photos.motogp.com/2019/dorsales/3/7199.png","portrait":"https://photos.motogp.com/2019/riders/motogp/grid/original/rider_7199_1554806227.jpg"}},{"season":2018,"number":0,"sponsored_team":"Red Bull KTM Tech 3","team":{"id":"e7de07e2-4309-4a30-8f70-67ead4d6794e","constructor":{"id":"5ecd8db7-d87b-4b3e-87b6-1f72ee457ede","name":"KTM","legacy_id":298},"name":"Tech3 KTM Factory Racing","legacy_id":11,"color":"#b7340b","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/8/c/8cbb2dae-cd62-4850-901d-994227434a5c/Tech3KTM.png","published":true},"category":{"id":"ea854a67-73a4-4a28-ac77-d67b3b2a530a","name":"Moto2","legacy_id":2},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2018/riders/moto2/bike/original/rider_7199_1521135621.jpg","secondary":null},"helmet":{"main":"https://photos.motogp.com/2018/riders/moto2/helmet/original/rider_7199_1521312789.jpg","secondary":null},"number":null,"portrait":"https://photos.motogp.com/2018/riders/moto2/grid/original/rider_7199_1521039284.jpg"}},{"season":2017,"number":44,"sponsored_team":"Red Bull KTM Ajo","team":{"id":"3c73638c-cffb-4e42-a6ca-b6506ab6bf5c","constructor":{"id":"791160c2-6d2f-47ad-8d87-29e4f729073a","name":"Kalex","legacy_id":447},"name":"Red Bull KTM Ajo","legacy_id":113,"color":"#e13f00","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/5/8/582449b6-5434-4af3-9423-e50a6bc4fe40/37-Augusto-Fernandez-Bike-Moto2DSC03002.png","published":true},"category":{"id":"ea854a67-73a4-4a28-ac77-d67b3b2a530a","name":"Moto2","legacy_id":2},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2017/riders/moto2/bike/original/rider_7199_1490204485.jpg","secondary":null},"helmet":{"main":"https://photos.motogp.com/2017/riders/moto2/helmet/original/rider_7199_1490546632.jpg","secondary":null},"number":null,"portrait":"https://photos.motogp.com/2017/riders/moto2/grid/original/rider_7199_1490198443.jpg"}},{"season":2016,"number":44,"sponsored_team":"Leopard Racing","team":{"id":"a713a7ba-16ec-4c15-b4a3-7211b43f9a89","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Leopard Racing","legacy_id":105,"color":"#00bdcc","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/b/4/b4bb6973-5a92-4054-b2b5-5b766279245c/LeopardRacing.png","published":true},"category":{"id":"ea854a67-73a4-4a28-ac77-d67b3b2a530a","name":"Moto2","legacy_id":2},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2016/riders/moto2/bike/original/rider_7199_1458824295.jpg","secondary":null},"helmet":{"main":"https://photos.motogp.com/2016/riders/moto2/helmet/original/rider_7199_1458821554.jpg","secondary":null},"number":null,"portrait":"https://photos.motogp.com/2016/riders/moto2/grid/original/rider_7199_1458821436.jpg"}},{"season":2015,"number":44,"sponsored_team":"Red Bull KTM Ajo","team":{"id":"3c73638c-cffb-4e42-a6ca-b6506ab6bf5c","constructor":{"id":"791160c2-6d2f-47ad-8d87-29e4f729073a","name":"Kalex","legacy_id":447},"name":"Red Bull KTM Ajo","legacy_id":113,"color":"#e13f00","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/5/8/582449b6-5434-4af3-9423-e50a6bc4fe40/37-Augusto-Fernandez-Bike-Moto2DSC03002.png","published":true},"category":{"id":"1ab203aa-e292-4842-8bed-971911357af1","name":"Moto3","legacy_id":1},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/7199"}},{"season":2014,"number":44,"sponsored_team":"Mahindra Racing","team":{"id":"946f68b5-9ee9-4872-92a8-1d20d3b53412","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Mahindra Racing","legacy_id":106,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/moto3/original/team_bike_106_1584101117.jpg","published":true},"category":{"id":"1ab203aa-e292-4842-8bed-971911357af1","name":"Moto3","legacy_id":1},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/7199"}},{"season":2013,"number":44,"sponsored_team":"Mahindra Racing","team":{"id":"946f68b5-9ee9-4872-92a8-1d20d3b53412","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Mahindra Racing","legacy_id":106,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/moto3/original/team_bike_106_1584101117.jpg","published":true},"category":{"id":"1ab203aa-e292-4842-8bed-971911357af1","name":"Moto3","legacy_id":1},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/7199"}},{"season":2012,"number":44,"sponsored_team":"Estrella Galicia 0,0","team":{"id":"ae848aa2-b716-49d5-8b95-218651605120","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Estrella Galicia 0,0","legacy_id":106,"color":"#027bce","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/4/f/4f858066-fdbe-47b4-9fb0-5e65910ea0fd/team_106_moto3_2020.png","published":true},"category":{"id":"1ab203aa-e292-4842-8bed-971911357af1","name":"Moto3","legacy_id":1},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/7199"}},{"season":2011,"number":0,"sponsored_team":null,"team":{"id":"ae848aa2-b716-49d5-8b95-218651605120","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Estrella Galicia 0,0","legacy_id":106,"color":"#027bce","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/4/f/4f858066-fdbe-47b4-9fb0-5e65910ea0fd/team_106_moto3_2020.png","published":true},"category":{"id":"578be24b-3cd6-498f-9ed8-f0817be88467","name":"125cc","legacy_id":10},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/7199"}}],"biography":{"text":"Miguel Oliveira’s first big successes came in 2005 and 2006 when he won the Portuguese MiniGP championship. In 2009 he was third in the FIM CEV Repsol, and in 2010 battled Maverick Viñales to the final race of the season for the title - eventually finishing runner-up by just two points prior to his World Championship debut in 2011. Oliveira raced full time in 2012 with the Estrella Galicia 0,0 team and took two podiums, before in 2013 he joined Mahindra Racing and made headlines by grabbing the Indian manufacturer’s first ever podium in Malaysia. In 2014 remained on the Mahindra, taking another podium at Assen, before being recruited by Red Bull KTM Ajo for 2015. The Moto3™ season got off to a difficult start for the Portuguese rider but he won in both Mugello and Assen, before breaking his wrist in Germany. All hope looked lost as Danny Kent left the British GP with a 110 point lead over the KTM rider, but an incredible comeback saw Oliveira take four wins and two seconds in the final six races and challenge down to the final round, coming runner up. For 2016 he and Kent joined forces in the Moto2™ World Championship with Leopard Racing, and after recovering from injury for the end of the year, the Portuguese rider returned to the Ajo motorsport camp for 2017 onboard the new KTM chassis in Moto2™, with Red Bull KTM Ajo. Taking their first win, challenging at the front and coming third overall, Oliveira’s season was a stunner – and he remained a threat at the front in 2018. Eventually taking the runner up spot in the title fight, it was nevertheless an impressive season and the Portuguese rider then made his MotoGP™ debut with Red Bull KTM Tech 3. Regular point-scoring finishes saw Oliveira impress in his maiden premier class season, P8 in Austria was his best result. A huge Phillip Island crash and surgery on an injury sustained at Silverstone saw Oliveira have to sit out the final three races and preseason testing at the end of 2019. Staying with Red Bull KTM Tech 3 for 2020, Oliveira became the second KTM rider to claim victory in the premier class, following a stunning last lap in the Styrian GP, Oliveira stole ahead on the final corner to claim the win. The MotoGP™ circus returned to his home country for the Portuguese GP, and Oliveira ensured it was a dream weekend as he clinched victory in the season finale. 2021 saw him partner Brad Binder in the factory colours, but an underperforming KTM and injury saw Oliveira have a rollercoaster season. Three podiums, including victory in Barcelona, were the highlights. Heading into 2022, Oliveira will be hoping plenty more podiums will be achieved as he and KTM go hunting for the title. ","media":{"video":null,"picture":"https://photos.motogp.com/riders/d/a/dabde826-0aa5-4e4a-9a1b-043d6c11b400/biography/88_Miguel_Oliveira_DSC7923.jpg"}},"legend":false,"legacy_id":7199,"merchandise_url":"https://store.motogp.com/en/miguel-oliveira-88-merchandise?utm_source=motogp.com&utm_medium=Link&utm_content=MO88&utm_campaign=Store&o=motogp-riders-stats","published":true,"injured":false,"banned":false,"wildcard":false} \ No newline at end of file +{ + "id": "50b4fb1f-1785-4a9a-a65c-97d0de9daa22", + "name": "Miguel", + "surname": "Oliveira", + "nickname": null, + "country": { + "iso": "PT", + "name": "Portugal" + }, + "birth_city": "Pragal", + "birth_date": "1995-01-04", + "physical_attributes": { + "height": 170, + "weight": 64 + }, + "career": [ + { + "season": 2022, + "number": 88, + "sponsored_team": "Red Bull KTM Factory Racing", + "team": { + "id": "0b6cc118-a286-4343-9020-fb53c6f77c1a", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "Red Bull KTM Factory Racing", + "legacy_id": 23, + "color": "#e05a17", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/4/4/447bf79b-9960-40f0-996d-a2f5ac920650/RedBullKTM.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "MO88", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/6/6/66cbfb87-c8f0-4955-b5a3-a048967ef499/profile/main/88_Miguel_Oliveira.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/6/6/66cbfb87-c8f0-4955-b5a3-a048967ef499/bike/main/88_Miguel_Olveira.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/6/6/66cbfb87-c8f0-4955-b5a3-a048967ef499/helmet/main/88-Miguel-Oliveira.jpg", + "secondary": null + }, + "number": "http://localhost:8089/riders/d/7/d7ab634b-d150-46ee-9b05-23805debb88e/number/88-Miguel-Oliveira.png", + "portrait": "http://localhost:8089/riders/6/6/66cbfb87-c8f0-4955-b5a3-a048967ef499/portrait/88_Miguel_Oliveira.jpg" + } + }, + { + "season": 2021, + "number": 88, + "sponsored_team": "Red Bull KTM Factory Racing", + "team": { + "id": "0b6cc118-a286-4343-9020-fb53c6f77c1a", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "Red Bull KTM Factory Racing", + "legacy_id": 23, + "color": "#e05a17", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/4/4/447bf79b-9960-40f0-996d-a2f5ac920650/RedBullKTM.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "MO88", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/d/8/d87742aa-5dd6-492f-b416-229afde8fb59/profile/main/_0000_88-Miguel-Oliveira,-Rider_A7R1789.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/8/6/86da9235-32fe-40ce-9202-d42f590d74cb/bike/main/_0001_88-Miguel-Oliveira,-Bike_LG87502.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/8/6/86da9235-32fe-40ce-9202-d42f590d74cb/helmet/main/_0001_88-Miguel-Oliveira,-Helmet_LG62084.jpg", + "secondary": null + }, + "number": "http://localhost:8089/riders/d/7/d7ab634b-d150-46ee-9b05-23805debb88e/number/88-Miguel-Oliveira.png", + "portrait": "http://localhost:8089/riders/2/b/2b6eb98d-b002-4337-92d3-83024f66fb21/portrait/_0000_88-Miguel-Oliveira,Rider_A7R1784.jpg" + } + }, + { + "season": 2020, + "number": 88, + "sponsored_team": "Red Bull KTM Tech 3", + "team": { + "id": "e7de07e2-4309-4a30-8f70-67ead4d6794e", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "Tech3 KTM Factory Racing", + "legacy_id": 11, + "color": "#b7340b", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/8/c/8cbb2dae-cd62-4850-901d-994227434a5c/Tech3KTM.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "MO88", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/2/1/21bb0fa5-2852-4db4-940b-8ec06366803f/profile/main/1_0020_88-Miguel-Oliveira,-Body_DSC5498.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/c/0/c0726a95-9b2c-4ec7-b81e-e92af379382d/bike/main/88-Miguel-Oliveira.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/f/9/f9062d93-0246-4bb9-a9c4-5d1eb71f7400/helmet/main/88-Miguel-Oliveira.jpg", + "secondary": null + }, + "number": "http://localhost:8089/2019/dorsales/3/7199.png", + "portrait": "http://localhost:8089/riders/b/5/b5286f33-8634-4763-b034-ffba6db76327/portrait/88_Miguel_Oliveira.jpg" + } + }, + { + "season": 2019, + "number": 88, + "sponsored_team": "Red Bull KTM Tech 3", + "team": { + "id": "e7de07e2-4309-4a30-8f70-67ead4d6794e", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "Tech3 KTM Factory Racing", + "legacy_id": 11, + "color": "#b7340b", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/8/c/8cbb2dae-cd62-4850-901d-994227434a5c/Tech3KTM.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2019/riders/motogp/bike/original/rider_7199_1552058465.jpg", + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": "http://localhost:8089/2019/dorsales/3/7199.png", + "portrait": "http://localhost:8089/2019/riders/motogp/grid/original/rider_7199_1554806227.jpg" + } + }, + { + "season": 2018, + "number": 0, + "sponsored_team": "Red Bull KTM Tech 3", + "team": { + "id": "e7de07e2-4309-4a30-8f70-67ead4d6794e", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "Tech3 KTM Factory Racing", + "legacy_id": 11, + "color": "#b7340b", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/8/c/8cbb2dae-cd62-4850-901d-994227434a5c/Tech3KTM.png", + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2018/riders/moto2/bike/original/rider_7199_1521135621.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2018/riders/moto2/helmet/original/rider_7199_1521312789.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2018/riders/moto2/grid/original/rider_7199_1521039284.jpg" + } + }, + { + "season": 2017, + "number": 44, + "sponsored_team": "Red Bull KTM Ajo", + "team": { + "id": "3c73638c-cffb-4e42-a6ca-b6506ab6bf5c", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "Red Bull KTM Ajo", + "legacy_id": 113, + "color": "#e13f00", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/5/8/582449b6-5434-4af3-9423-e50a6bc4fe40/37-Augusto-Fernandez-Bike-Moto2DSC03002.png", + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2017/riders/moto2/bike/original/rider_7199_1490204485.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2017/riders/moto2/helmet/original/rider_7199_1490546632.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2017/riders/moto2/grid/original/rider_7199_1490198443.jpg" + } + }, + { + "season": 2016, + "number": 44, + "sponsored_team": "Leopard Racing", + "team": { + "id": "a713a7ba-16ec-4c15-b4a3-7211b43f9a89", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Leopard Racing", + "legacy_id": 105, + "color": "#00bdcc", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/b/4/b4bb6973-5a92-4054-b2b5-5b766279245c/LeopardRacing.png", + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2016/riders/moto2/bike/original/rider_7199_1458824295.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2016/riders/moto2/helmet/original/rider_7199_1458821554.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2016/riders/moto2/grid/original/rider_7199_1458821436.jpg" + } + }, + { + "season": 2015, + "number": 44, + "sponsored_team": "Red Bull KTM Ajo", + "team": { + "id": "3c73638c-cffb-4e42-a6ca-b6506ab6bf5c", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "Red Bull KTM Ajo", + "legacy_id": 113, + "color": "#e13f00", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/5/8/582449b6-5434-4af3-9423-e50a6bc4fe40/37-Augusto-Fernandez-Bike-Moto2DSC03002.png", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7199" + } + }, + { + "season": 2014, + "number": 44, + "sponsored_team": "Mahindra Racing", + "team": { + "id": "946f68b5-9ee9-4872-92a8-1d20d3b53412", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Mahindra Racing", + "legacy_id": 106, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_106_1584101117.jpg", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7199" + } + }, + { + "season": 2013, + "number": 44, + "sponsored_team": "Mahindra Racing", + "team": { + "id": "946f68b5-9ee9-4872-92a8-1d20d3b53412", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Mahindra Racing", + "legacy_id": 106, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_106_1584101117.jpg", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7199" + } + }, + { + "season": 2012, + "number": 44, + "sponsored_team": "Estrella Galicia 0,0", + "team": { + "id": "ae848aa2-b716-49d5-8b95-218651605120", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Estrella Galicia 0,0", + "legacy_id": 106, + "color": "#027bce", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/4/f/4f858066-fdbe-47b4-9fb0-5e65910ea0fd/team_106_moto3_2020.png", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7199" + } + }, + { + "season": 2011, + "number": 0, + "sponsored_team": null, + "team": { + "id": "ae848aa2-b716-49d5-8b95-218651605120", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Estrella Galicia 0,0", + "legacy_id": 106, + "color": "#027bce", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/4/f/4f858066-fdbe-47b4-9fb0-5e65910ea0fd/team_106_moto3_2020.png", + "published": true + }, + "category": { + "id": "578be24b-3cd6-498f-9ed8-f0817be88467", + "name": "125cc", + "legacy_id": 10 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7199" + } + } + ], + "biography": { + "text": "Miguel Oliveira’s first big successes came in 2005 and 2006 when he won the Portuguese MiniGP championship. In 2009 he was third in the FIM CEV Repsol, and in 2010 battled Maverick Viñales to the final race of the season for the title - eventually finishing runner-up by just two points prior to his World Championship debut in 2011. Oliveira raced full time in 2012 with the Estrella Galicia 0,0 team and took two podiums, before in 2013 he joined Mahindra Racing and made headlines by grabbing the Indian manufacturer’s first ever podium in Malaysia. In 2014 remained on the Mahindra, taking another podium at Assen, before being recruited by Red Bull KTM Ajo for 2015. The Moto3™ season got off to a difficult start for the Portuguese rider but he won in both Mugello and Assen, before breaking his wrist in Germany. All hope looked lost as Danny Kent left the British GP with a 110 point lead over the KTM rider, but an incredible comeback saw Oliveira take four wins and two seconds in the final six races and challenge down to the final round, coming runner up. For 2016 he and Kent joined forces in the Moto2™ World Championship with Leopard Racing, and after recovering from injury for the end of the year, the Portuguese rider returned to the Ajo motorsport camp for 2017 onboard the new KTM chassis in Moto2™, with Red Bull KTM Ajo. Taking their first win, challenging at the front and coming third overall, Oliveira’s season was a stunner – and he remained a threat at the front in 2018. Eventually taking the runner up spot in the title fight, it was nevertheless an impressive season and the Portuguese rider then made his MotoGP™ debut with Red Bull KTM Tech 3. Regular point-scoring finishes saw Oliveira impress in his maiden premier class season, P8 in Austria was his best result. A huge Phillip Island crash and surgery on an injury sustained at Silverstone saw Oliveira have to sit out the final three races and preseason testing at the end of 2019. Staying with Red Bull KTM Tech 3 for 2020, Oliveira became the second KTM rider to claim victory in the premier class, following a stunning last lap in the Styrian GP, Oliveira stole ahead on the final corner to claim the win. The MotoGP™ circus returned to his home country for the Portuguese GP, and Oliveira ensured it was a dream weekend as he clinched victory in the season finale. 2021 saw him partner Brad Binder in the factory colours, but an underperforming KTM and injury saw Oliveira have a rollercoaster season. Three podiums, including victory in Barcelona, were the highlights. Heading into 2022, Oliveira will be hoping plenty more podiums will be achieved as he and KTM go hunting for the title. ", + "media": { + "video": null, + "picture": "http://localhost:8089/riders/d/a/dabde826-0aa5-4e4a-9a1b-043d6c11b400/biography/88_Miguel_Oliveira_DSC7923.jpg" + } + }, + "legend": false, + "legacy_id": 7199, + "merchandise_url": "http://localhost:8089/en/miguel-oliveira-88-merchandise?utm_source=localhost:8089&utm_medium=Link&utm_content=MO88&utm_campaign=Store&o=motogp-riders-stats", + "published": true, + "injured": false, + "banned": false, + "wildcard": false +} \ No newline at end of file diff --git a/src/test/resources/__files/rider/7236.json b/src/test/resources/__files/rider/7236.json index e93c6e5..2b5c7ad 100644 --- a/src/test/resources/__files/rider/7236.json +++ b/src/test/resources/__files/rider/7236.json @@ -29,7 +29,7 @@ "legacy_id": 32, "color": "#cc3333", "text_color": "#ffffff", - "picture": "https://photos.motogp.com/teams/f/0/f016bb93-2d0d-4e44-be2e-0b6a51e4cda8/pramacracing.png", + "picture": "http://localhost:8089/teams/f/0/f016bb93-2d0d-4e44-be2e-0b6a51e4cda8/pramacracing.png", "published": true }, "category": { @@ -42,19 +42,19 @@ "current": false, "pictures": { "profile": { - "main": "https://photos.motogp.com/riders/9/f/9f826c33-8368-4e34-8c19-04617d481b2d/profile/main/_0003_05-Johann-Zarco,-Rider_A7R0863.png", + "main": "http://localhost:8089/riders/9/f/9f826c33-8368-4e34-8c19-04617d481b2d/profile/main/_0003_05-Johann-Zarco,-Rider_A7R0863.png", "secondary": null }, "bike": { - "main": "https://photos.motogp.com/riders/e/e/ee93df14-b8ad-45b3-b344-c7eaf84b7f95/bike/main/_0008_05-Johann-Zarco_Bike45.png", + "main": "http://localhost:8089/riders/e/e/ee93df14-b8ad-45b3-b344-c7eaf84b7f95/bike/main/_0008_05-Johann-Zarco_Bike45.png", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/riders/9/f/9f826c33-8368-4e34-8c19-04617d481b2d/helmet/main/_0008_05-Johann-Zarco,-Helmet_LG60733.png", + "main": "http://localhost:8089/riders/9/f/9f826c33-8368-4e34-8c19-04617d481b2d/helmet/main/_0008_05-Johann-Zarco,-Helmet_LG60733.png", "secondary": null }, - "number": "https://photos.motogp.com/riders/6/0/60464b15-f81b-4cae-81e7-ef4b58c35ca1/number/05-Johann-Zarco.png", - "portrait": "https://photos.motogp.com/riders/9/f/9f826c33-8368-4e34-8c19-04617d481b2d/portrait/_0008_05-Johann-Zarco,-Rider_A7R0857.jpg" + "number": "http://localhost:8089/riders/6/0/60464b15-f81b-4cae-81e7-ef4b58c35ca1/number/05-Johann-Zarco.png", + "portrait": "http://localhost:8089/riders/9/f/9f826c33-8368-4e34-8c19-04617d481b2d/portrait/_0008_05-Johann-Zarco,-Rider_A7R0857.jpg" } }, { @@ -72,7 +72,7 @@ "legacy_id": 32, "color": "#cc3333", "text_color": "#ffffff", - "picture": "https://photos.motogp.com/teams/f/0/f016bb93-2d0d-4e44-be2e-0b6a51e4cda8/pramacracing.png", + "picture": "http://localhost:8089/teams/f/0/f016bb93-2d0d-4e44-be2e-0b6a51e4cda8/pramacracing.png", "published": true }, "category": { @@ -85,19 +85,19 @@ "current": false, "pictures": { "profile": { - "main": "https://photos.motogp.com/riders/9/f/9f826c33-8368-4e34-8c19-04617d481b2d/profile/main/_0003_05-Johann-Zarco,-Rider_A7R0863.png", + "main": "http://localhost:8089/riders/9/f/9f826c33-8368-4e34-8c19-04617d481b2d/profile/main/_0003_05-Johann-Zarco,-Rider_A7R0863.png", "secondary": null }, "bike": { - "main": "https://photos.motogp.com/riders/9/f/9f826c33-8368-4e34-8c19-04617d481b2d/bike/main/_0008_05-Johann-Zarco,-Bike_LG86727.png", + "main": "http://localhost:8089/riders/9/f/9f826c33-8368-4e34-8c19-04617d481b2d/bike/main/_0008_05-Johann-Zarco,-Bike_LG86727.png", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/riders/9/f/9f826c33-8368-4e34-8c19-04617d481b2d/helmet/main/_0008_05-Johann-Zarco,-Helmet_LG60733.png", + "main": "http://localhost:8089/riders/9/f/9f826c33-8368-4e34-8c19-04617d481b2d/helmet/main/_0008_05-Johann-Zarco,-Helmet_LG60733.png", "secondary": null }, - "number": "https://photos.motogp.com/riders/6/0/60464b15-f81b-4cae-81e7-ef4b58c35ca1/number/05-Johann-Zarco.png", - "portrait": "https://photos.motogp.com/riders/9/f/9f826c33-8368-4e34-8c19-04617d481b2d/portrait/_0008_05-Johann-Zarco,-Rider_A7R0857.jpg" + "number": "http://localhost:8089/riders/6/0/60464b15-f81b-4cae-81e7-ef4b58c35ca1/number/05-Johann-Zarco.png", + "portrait": "http://localhost:8089/riders/9/f/9f826c33-8368-4e34-8c19-04617d481b2d/portrait/_0008_05-Johann-Zarco,-Rider_A7R0857.jpg" } }, { @@ -115,7 +115,7 @@ "legacy_id": 115, "color": "#1e4374", "text_color": "#ffffff", - "picture": "https://photos.motogp.com/teams/9/2/927bbed8-8d40-4324-a531-ae7a894232c8/SKY-vr46-Esponsorama.png", + "picture": "http://localhost:8089/teams/9/2/927bbed8-8d40-4324-a531-ae7a894232c8/SKY-vr46-Esponsorama.png", "published": true }, "category": { @@ -128,19 +128,19 @@ "current": false, "pictures": { "profile": { - "main": "https://photos.motogp.com/riders/c/c/ccac5057-18c5-4add-9ff1-0a942055d84a/profile/main/1_0001_05-Johann-Zarco-FRA,-Body_DSC6480.png", + "main": "http://localhost:8089/riders/c/c/ccac5057-18c5-4add-9ff1-0a942055d84a/profile/main/1_0001_05-Johann-Zarco-FRA,-Body_DSC6480.png", "secondary": null }, "bike": { - "main": "https://photos.motogp.com/riders/b/5/b5ea980b-e4a6-49f6-a46f-86f02b12183f/bike/main/05-Johann-Zarco.png", + "main": "http://localhost:8089/riders/b/5/b5ea980b-e4a6-49f6-a46f-86f02b12183f/bike/main/05-Johann-Zarco.png", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/riders/8/1/814f228f-0a7c-4a35-9e89-f8bff89716b5/helmet/main/05-Johann-Zarco.jpg", + "main": "http://localhost:8089/riders/8/1/814f228f-0a7c-4a35-9e89-f8bff89716b5/helmet/main/05-Johann-Zarco.jpg", "secondary": null }, - "number": "https://photos.motogp.com/riders/0/2/023d87d4-e545-4ca2-9de8-a1dda043d683/number/05_Johan_Zarco_.png", - "portrait": "https://photos.motogp.com/riders/1/e/1ea76aba-ffc9-448d-a59d-456a9bfdd7d7/portrait/05_Johann_Zarco.jpg" + "number": "http://localhost:8089/riders/0/2/023d87d4-e545-4ca2-9de8-a1dda043d683/number/05_Johan_Zarco_.png", + "portrait": "http://localhost:8089/riders/1/e/1ea76aba-ffc9-448d-a59d-456a9bfdd7d7/portrait/05_Johann_Zarco.jpg" } }, { @@ -158,7 +158,7 @@ "legacy_id": 23, "color": "#e05a17", "text_color": "#ffffff", - "picture": "https://photos.motogp.com/teams/5/8/58733ac4-14ab-4c69-b1c6-a390fde88c2e/RedBull-KTM-Factory-Racing.png", + "picture": "http://localhost:8089/teams/5/8/58733ac4-14ab-4c69-b1c6-a390fde88c2e/RedBull-KTM-Factory-Racing.png", "published": true }, "category": { @@ -175,15 +175,15 @@ "secondary": null }, "bike": { - "main": "https://photos.motogp.com/2019/riders/motogp/bike/original/rider_7236_1571956152.jpg", + "main": "http://localhost:8089/2019/riders/motogp/bike/original/rider_7236_1571956152.jpg", "secondary": null }, "helmet": { "main": null, "secondary": null }, - "number": "https://photos.motogp.com/2019/dorsales/3/7236.png", - "portrait": "https://photos.motogp.com/2019/riders/motogp/grid/original/rider_7236_1571954718.jpg" + "number": "http://localhost:8089/2019/dorsales/3/7236.png", + "portrait": "http://localhost:8089/2019/riders/motogp/grid/original/rider_7236_1571954718.jpg" } }, { @@ -201,7 +201,7 @@ "legacy_id": 23, "color": "#e05a17", "text_color": "#ffffff", - "picture": "https://photos.motogp.com/teams/5/8/58733ac4-14ab-4c69-b1c6-a390fde88c2e/RedBull-KTM-Factory-Racing.png", + "picture": "http://localhost:8089/teams/5/8/58733ac4-14ab-4c69-b1c6-a390fde88c2e/RedBull-KTM-Factory-Racing.png", "published": true }, "category": { @@ -218,15 +218,15 @@ "secondary": null }, "bike": { - "main": "https://photos.motogp.com/2018/riders/motogp/bike/original/rider_7236_1526567651.jpg", + "main": "http://localhost:8089/2018/riders/motogp/bike/original/rider_7236_1526567651.jpg", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/2018/riders/motogp/helmet/original/rider_7236_1521312699.jpg", + "main": "http://localhost:8089/2018/riders/motogp/helmet/original/rider_7236_1521312699.jpg", "secondary": null }, - "number": "https://photos.motogp.com/2018/dorsales/3/7236.png", - "portrait": "https://photos.motogp.com/2018/riders/motogp/grid/original/rider_7236_1521214001.jpg" + "number": "http://localhost:8089/2018/dorsales/3/7236.png", + "portrait": "http://localhost:8089/2018/riders/motogp/grid/original/rider_7236_1521214001.jpg" } }, { @@ -244,7 +244,7 @@ "legacy_id": 11, "color": null, "text_color": null, - "picture": "https://photos.motogp.com/2020/teams/motogp/original/team_bike_11_1574329097.jpg", + "picture": "http://localhost:8089/2020/teams/motogp/original/team_bike_11_1574329097.jpg", "published": true }, "category": { @@ -261,15 +261,15 @@ "secondary": null }, "bike": { - "main": "https://photos.motogp.com/2017/riders/motogp/bike/original/rider_7236_1490378055.jpg", + "main": "http://localhost:8089/2017/riders/motogp/bike/original/rider_7236_1490378055.jpg", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/2017/riders/motogp/helmet/original/rider_7236_1490543485.jpg", + "main": "http://localhost:8089/2017/riders/motogp/helmet/original/rider_7236_1490543485.jpg", "secondary": null }, "number": null, - "portrait": "https://photos.motogp.com/2017/riders/motogp/grid/original/rider_7236_1490884051.jpg" + "portrait": "http://localhost:8089/2017/riders/motogp/grid/original/rider_7236_1490884051.jpg" } }, { @@ -287,7 +287,7 @@ "legacy_id": 203, "color": null, "text_color": null, - "picture": "https://photos.motogp.com/2020/teams/moto2/original/team_bike_203_1583857101.jpg", + "picture": "http://localhost:8089/2020/teams/moto2/original/team_bike_203_1583857101.jpg", "published": true }, "category": { @@ -304,15 +304,15 @@ "secondary": null }, "bike": { - "main": "https://photos.motogp.com/2016/riders/moto2/bike/original/rider_7236_1458824232.jpg", + "main": "http://localhost:8089/2016/riders/moto2/bike/original/rider_7236_1458824232.jpg", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/2016/riders/moto2/helmet/original/rider_7236_1458821614.jpg", + "main": "http://localhost:8089/2016/riders/moto2/helmet/original/rider_7236_1458821614.jpg", "secondary": null }, "number": null, - "portrait": "https://photos.motogp.com/2016/riders/moto2/grid/original/rider_7236_1458821401.jpg" + "portrait": "http://localhost:8089/2016/riders/moto2/grid/original/rider_7236_1458821401.jpg" } }, { @@ -330,7 +330,7 @@ "legacy_id": 203, "color": null, "text_color": null, - "picture": "https://photos.motogp.com/2020/teams/moto2/original/team_bike_203_1583857101.jpg", + "picture": "http://localhost:8089/2020/teams/moto2/original/team_bike_203_1583857101.jpg", "published": true }, "category": { @@ -355,7 +355,7 @@ "secondary": null }, "number": null, - "portrait": "https://www.motogp.com/en/api/rider/photo/grid/old/7236" + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7236" } }, { @@ -398,7 +398,7 @@ "secondary": null }, "number": null, - "portrait": "https://www.motogp.com/en/api/rider/photo/grid/old/7236" + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7236" } }, { @@ -441,7 +441,7 @@ "secondary": null }, "number": null, - "portrait": "https://www.motogp.com/en/api/rider/photo/grid/old/7236" + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7236" } }, { @@ -484,7 +484,7 @@ "secondary": null }, "number": null, - "portrait": "https://www.motogp.com/en/api/rider/photo/grid/old/7236" + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7236" } }, { @@ -502,7 +502,7 @@ "legacy_id": 102, "color": null, "text_color": null, - "picture": "https://photos.motogp.com/2020/teams/motogp/original/team_bike_102_1574346132.jpg", + "picture": "http://localhost:8089/2020/teams/motogp/original/team_bike_102_1574346132.jpg", "published": true }, "category": { @@ -527,7 +527,7 @@ "secondary": null }, "number": null, - "portrait": "https://www.motogp.com/en/api/rider/photo/grid/old/7236" + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7236" } }, { @@ -545,7 +545,7 @@ "legacy_id": 111, "color": null, "text_color": null, - "picture": "https://photos.motogp.com/2020/teams/moto3/original/team_bike_111_1584628514.jpg", + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_111_1584628514.jpg", "published": true }, "category": { @@ -570,7 +570,7 @@ "secondary": null }, "number": null, - "portrait": "https://www.motogp.com/en/api/rider/photo/grid/old/7236" + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7236" } }, { @@ -588,7 +588,7 @@ "legacy_id": 111, "color": null, "text_color": null, - "picture": "https://photos.motogp.com/2020/teams/moto3/original/team_bike_111_1584628514.jpg", + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_111_1584628514.jpg", "published": true }, "category": { @@ -613,7 +613,7 @@ "secondary": null }, "number": null, - "portrait": "https://www.motogp.com/en/api/rider/photo/grid/old/7236" + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7236" } } ], @@ -621,7 +621,7 @@ "text": "Former Red Bull Rookies Cup winner Johann Zarco made the jump into the 125 World Championship in 2009, becoming runner-up to the title in 2011 with Aki Ajo’s team before transitioning to Moto2™. Over the next three years, he achieved six podiums in the intermediate class before moving back to partner Ajo in his Moto2™ team, winning the Championship in 2015 and becoming the first man to successfully defend the Moto2™ crown since its introduction in 2010 when he took the honours again in 2016. The first Frenchman to win more than one World Championship, Zarco moved into MotoGP™ for 2017 and made an impressive debut with three podiums and two pole positions in his rookie year. He stayed with Monster Yamaha Tech 3 in 2018 and took more podiums, ending the season as top Independent Team rider. In 2019 he made the move to Red Bull KTM Factory Racing to become part of the Austrian factory's assault on the premier class. However, after an incredibly difficult opening half the season, Zarco decided to step away from his contract at the end of 2019, but KTM replaced the Frenchman with test rider Mika Kallio from Aragon onwards. Zarco then stepped in for Takaaki Nakagami at LCR Honda Idemitsu for the final three rounds of the season, before a move to Reale Avinita Racing opened up. He represented Esponsorama Racing with aplomb in 2020, securing a podium finish in the Czech GP, and he was promoted to the Pramac Racing team for 2021. The Frenchman had a season of two halves with Pramac, starting in magnificent fashion. Back-to-back podiums in Qatar saw him lead the premier class standings for the first time, with further podiums at Le Mans and Catalunya. But arm pump woes in the second half of 2021 saw his title charge tail away, eventually finishing fifth in the standings. He remains with Pramac for 2022, his main aim to finally taste victory in MotoGP™.", "media": { "video": null, - "picture": "https://photos.motogp.com/riders/6/8/68b2df9a-d91b-42c1-bafa-644f816cc009/biography/05_Johann_Zarco_DSC7597.jpg" + "picture": "http://localhost:8089/riders/6/8/68b2df9a-d91b-42c1-bafa-644f816cc009/biography/05_Johann_Zarco_DSC7597.jpg" } }, "legend": false, diff --git a/src/test/resources/__files/rider/7246.json b/src/test/resources/__files/rider/7246.json index b49774b..5852c8d 100644 --- a/src/test/resources/__files/rider/7246.json +++ b/src/test/resources/__files/rider/7246.json @@ -1 +1,462 @@ -{"id":"a1311c17-1099-4893-bba0-347bf43226a4","name":"Lorenzo","surname":"Savadori","nickname":null,"country":{"iso":"IT","name":"Italy"},"birth_city":"Cesena","birth_date":"1993-04-04","physical_attributes":{"height":177,"weight":67},"career":[{"season":2021,"number":32,"sponsored_team":"Aprilia Racing Team Gresini","team":{"id":"01736702-c133-4918-90f9-2ddba33af122","constructor":{"id":"21fbe597-b587-42e1-b571-a06af5cc2487","name":"Aprilia","legacy_id":7},"name":"Aprilia Racing Team Gresini","legacy_id":10,"color":"#9baee4","text_color":"#323232","picture":"https://photos.motogp.com/teams/a/7/a7b1c4d6-3da3-482d-8de5-5d8299cec022/Aprilia-Racing-Team.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":"LS32","current":false,"pictures":{"profile":{"main":"https://photos.motogp.com/riders/0/6/0634fd44-d73f-4fed-b425-f785a534d17d/profile/main/_0007_32-Lorenzo-Savadori,-Rider_A7R0966.png","secondary":null},"bike":{"main":"https://photos.motogp.com/riders/0/6/0634fd44-d73f-4fed-b425-f785a534d17d/bike/main/_0000_32-Lorenzo-Savadori,-Bike_LG86784.png","secondary":null},"helmet":{"main":"https://photos.motogp.com/riders/0/b/0b854d9d-96e5-49c4-9cdc-8ea1b3723303/helmet/main/_0008_32-Lorenzo-Savadori,-Helmet_LG61681.jpg","secondary":null},"number":"https://photos.motogp.com/riders/4/f/4f4f825a-16b7-4f57-b654-79e75d757033/number/32-Lorenzo-Savadori.png","portrait":"https://photos.motogp.com/riders/b/5/b591e378-f953-415e-8edf-2a33de5ffdc6/portrait/_0007_32-Lorenzo-Savadori,-Rider_A7R0960.jpg"}},{"season":2020,"number":32,"sponsored_team":"TRENTINO Gresini MotoE","team":{"id":"d0880016-4bdd-431a-8b1b-44b559f4b4bc","constructor":{"id":"cdb641bf-2ec0-41cd-9959-e4322000fae9","name":"Energica","legacy_id":589},"name":"Team Gresini MotoE","legacy_id":219,"color":"#cdd600","text_color":"#323232","picture":"https://photos.motogp.com/teams/8/1/818ca6c8-a307-4e7a-a431-d396bb286ccd/Team-Gresini-MotoE.png","published":true},"category":{"id":"cf196668-f900-4116-af79-810b91828a37","name":"MotoE","legacy_id":19},"in_grid":true,"short_nickname":"LS32","current":false,"pictures":{"profile":{"main":"https://photos.motogp.com/riders/5/3/53bd9835-a7b8-4d54-9f08-280e2f09bcec/profile/main/32_Lorenzo_Savadori_Body.png","secondary":null},"bike":{"main":"https://photos.motogp.com/2019/riders/motoe/bike/original/rider_7246_1562404127.jpg","secondary":null},"helmet":{"main":null,"secondary":null},"number":"https://photos.motogp.com/2020/dorsales/others/32.png","portrait":"https://photos.motogp.com/2019/riders/motoe/grid/original/rider_7246_1562411600.jpg"}},{"season":2020,"number":32,"sponsored_team":"Aprilia Racing Team Gresini","team":{"id":"01736702-c133-4918-90f9-2ddba33af122","constructor":{"id":"21fbe597-b587-42e1-b571-a06af5cc2487","name":"Aprilia","legacy_id":7},"name":"Aprilia Racing Team Gresini","legacy_id":10,"color":"#9baee4","text_color":"#323232","picture":"https://photos.motogp.com/teams/a/7/a7b1c4d6-3da3-482d-8de5-5d8299cec022/Aprilia-Racing-Team.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":"LS32","current":false,"pictures":{"profile":{"main":"https://photos.motogp.com/riders/2/6/2641b21d-d5d2-4d0b-950a-7d00e06488fb/profile/main/32-Lorenzo-Salvadori-DSC6238.png","secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":"https://photos.motogp.com/riders/2/6/2641b21d-d5d2-4d0b-950a-7d00e06488fb/number/32_Lorenzo_Salvadori.png","portrait":"https://photos.motogp.com/riders/2/6/2641b21d-d5d2-4d0b-950a-7d00e06488fb/portrait/32_Lorenzo_Savadori.jpg"}},{"season":2019,"number":32,"sponsored_team":"TRENTINO Gresini MotoE","team":{"id":"d0880016-4bdd-431a-8b1b-44b559f4b4bc","constructor":{"id":"cdb641bf-2ec0-41cd-9959-e4322000fae9","name":"Energica","legacy_id":589},"name":"Team Gresini MotoE","legacy_id":219,"color":"#cdd600","text_color":"#323232","picture":"https://photos.motogp.com/teams/8/1/818ca6c8-a307-4e7a-a431-d396bb286ccd/Team-Gresini-MotoE.png","published":true},"category":{"id":"cf196668-f900-4116-af79-810b91828a37","name":"MotoE","legacy_id":19},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":"https://photos.motogp.com/riders/7/7/7732c1f7-d0c4-4365-bb21-d646c41d6c7a/profile/main/32_Lorenzo_Savadori_Rider.png","secondary":null},"bike":{"main":"https://photos.motogp.com/2019/riders/motoe/bike/original/rider_7246_1562404127.jpg","secondary":null},"helmet":{"main":null,"secondary":null},"number":"https://photos.motogp.com/2020/dorsales/others/32.png","portrait":"https://photos.motogp.com/2019/riders/motoe/grid/original/rider_7246_1562411600.jpg"}},{"season":2010,"number":32,"sponsored_team":"Matteoni Racing","team":{"id":"ead0898b-2de8-4af9-9014-6d802c10eaf1","constructor":{"id":"fe62d196-ff34-409a-aa32-4aae146e2e3c","name":"Speed Up","legacy_id":431},"name":"Matteoni Racing","legacy_id":210,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/moto2/original/team_bike_210_1583857099.jpg","published":true},"category":{"id":"578be24b-3cd6-498f-9ed8-f0817be88467","name":"125cc","legacy_id":10},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/7246"}},{"season":2009,"number":32,"sponsored_team":"Fontana Racing","team":{"id":"cbe8461b-a6cb-42da-86a0-17d7b92f3715","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Fontana Racing","legacy_id":111,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/moto3/original/team_bike_111_1584628514.jpg","published":true},"category":{"id":"578be24b-3cd6-498f-9ed8-f0817be88467","name":"125cc","legacy_id":10},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/7246"}},{"season":2009,"number":32,"sponsored_team":"Junior GP Racing Dream","team":{"id":"cbe8461b-a6cb-42da-86a0-17d7b92f3715","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Fontana Racing","legacy_id":111,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/moto3/original/team_bike_111_1584628514.jpg","published":true},"category":{"id":"578be24b-3cd6-498f-9ed8-f0817be88467","name":"125cc","legacy_id":10},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/7246"}},{"season":2008,"number":40,"sponsored_team":"RCGM","team":{"id":"25c36eaa-9450-430e-8916-62dfb6331759","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"I.C. Team","legacy_id":112,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/moto3/original/team_bike_112_1584101123.jpg","published":true},"category":{"id":"578be24b-3cd6-498f-9ed8-f0817be88467","name":"125cc","legacy_id":10},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/7246"}},{"season":2008,"number":40,"sponsored_team":"I.C. Team","team":{"id":"25c36eaa-9450-430e-8916-62dfb6331759","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"I.C. Team","legacy_id":112,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/moto3/original/team_bike_112_1584101123.jpg","published":true},"category":{"id":"578be24b-3cd6-498f-9ed8-f0817be88467","name":"125cc","legacy_id":10},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/7246"}},{"season":2008,"number":40,"sponsored_team":"RCGM","team":{"id":"25c36eaa-9450-430e-8916-62dfb6331759","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"I.C. Team","legacy_id":112,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/moto3/original/team_bike_112_1584101123.jpg","published":true},"category":{"id":"578be24b-3cd6-498f-9ed8-f0817be88467","name":"125cc","legacy_id":10},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/7246"}}],"biography":{"text":"Italian rookie Lorenzo Savadori arrived in the 125cc World Championship tipped for big things, thanks to his packed résumé in various two-stroke competitions. Savadori was born in Cesena, Italy in 1993, and it wasn’t long before he was swinging his leg over a bike for the first time. Introduced to racing by his father, the youngster took a standard apprenticeship in junior disciplines before being picked for the inaugural edition of the Red Bull MotoGP Rookies Cup in 2007. He immediately impressed onboard the standard KTM 125cc bike used in the youth initiative, taking victory in the opening race of the competition at Jerez. He finished runner-up in the 2007 series. Following that success, Savadori made an assault on the Italian national 125cc crown in 2008. The standout rider in the class, he took the title in what was a busy year. In the summer he had competed in the European Championship event at Albacete, winning the 125cc race and adding to his impressive CV. 2008 also saw him make his debut in the World Championship with an Aprilia as a wildcard entrant. He competed at Mugello, Misano and Valencia, and was snapped up for a first full season in the 125cc class in 2009 by Fontana Racing. He only finished 4 out of the 13 races he started but Savadori did manage an impressive 9th place finish in Mugello. Then the Italian rode with Matteoni C.P. Racing, before he moved to the CIV STK Championship and the FIM STK1000 Cup in 2011. He stayed in STK1000 in 2012 and took his first win at Monza, coming fifth overall and repeating that in 2013. In 2014 he made a step forward and took second overall, before Savadori took the crown in 2015 after four wins and seven podiums. For 2016 he moved up to WorldSBK and has since been a regular threat for the top five and top ten, having some impressive pace. In 2019, he made the move to Energica Ego in the MotoE™ Championship, where again he launched regular assaults on the Top 10. Fast forward a year later and Aprilia handed him his chance in MotoGP™ at the European GP. His debut ended in disappointment though as he retired from the race, but he held onto the seat for the final two races of the season. 2021 saw him made a permanent rider for Aprilia.","media":{"video":null,"picture":"https://photos.motogp.com/riders/e/f/efe466ff-88af-4e78-9298-428a0355534b/biography/32_Lorenzo_Savadori_DSC0993.jpg"}},"legend":false,"legacy_id":7246,"merchandise_url":null,"published":true,"injured":false,"banned":false,"wildcard":false} \ No newline at end of file +{ + "id": "a1311c17-1099-4893-bba0-347bf43226a4", + "name": "Lorenzo", + "surname": "Savadori", + "nickname": null, + "country": { + "iso": "IT", + "name": "Italy" + }, + "birth_city": "Cesena", + "birth_date": "1993-04-04", + "physical_attributes": { + "height": 177, + "weight": 67 + }, + "career": [ + { + "season": 2021, + "number": 32, + "sponsored_team": "Aprilia Racing Team Gresini", + "team": { + "id": "01736702-c133-4918-90f9-2ddba33af122", + "constructor": { + "id": "21fbe597-b587-42e1-b571-a06af5cc2487", + "name": "Aprilia", + "legacy_id": 7 + }, + "name": "Aprilia Racing Team Gresini", + "legacy_id": 10, + "color": "#9baee4", + "text_color": "#323232", + "picture": "http://localhost:8089/teams/a/7/a7b1c4d6-3da3-482d-8de5-5d8299cec022/Aprilia-Racing-Team.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "LS32", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/0/6/0634fd44-d73f-4fed-b425-f785a534d17d/profile/main/_0007_32-Lorenzo-Savadori,-Rider_A7R0966.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/0/6/0634fd44-d73f-4fed-b425-f785a534d17d/bike/main/_0000_32-Lorenzo-Savadori,-Bike_LG86784.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/0/b/0b854d9d-96e5-49c4-9cdc-8ea1b3723303/helmet/main/_0008_32-Lorenzo-Savadori,-Helmet_LG61681.jpg", + "secondary": null + }, + "number": "http://localhost:8089/riders/4/f/4f4f825a-16b7-4f57-b654-79e75d757033/number/32-Lorenzo-Savadori.png", + "portrait": "http://localhost:8089/riders/b/5/b591e378-f953-415e-8edf-2a33de5ffdc6/portrait/_0007_32-Lorenzo-Savadori,-Rider_A7R0960.jpg" + } + }, + { + "season": 2020, + "number": 32, + "sponsored_team": "TRENTINO Gresini MotoE", + "team": { + "id": "d0880016-4bdd-431a-8b1b-44b559f4b4bc", + "constructor": { + "id": "cdb641bf-2ec0-41cd-9959-e4322000fae9", + "name": "Energica", + "legacy_id": 589 + }, + "name": "Team Gresini MotoE", + "legacy_id": 219, + "color": "#cdd600", + "text_color": "#323232", + "picture": "http://localhost:8089/teams/8/1/818ca6c8-a307-4e7a-a431-d396bb286ccd/Team-Gresini-MotoE.png", + "published": true + }, + "category": { + "id": "cf196668-f900-4116-af79-810b91828a37", + "name": "MotoE", + "legacy_id": 19 + }, + "in_grid": true, + "short_nickname": "LS32", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/5/3/53bd9835-a7b8-4d54-9f08-280e2f09bcec/profile/main/32_Lorenzo_Savadori_Body.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2019/riders/motoe/bike/original/rider_7246_1562404127.jpg", + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": "http://localhost:8089/2020/dorsales/others/32.png", + "portrait": "http://localhost:8089/2019/riders/motoe/grid/original/rider_7246_1562411600.jpg" + } + }, + { + "season": 2020, + "number": 32, + "sponsored_team": "Aprilia Racing Team Gresini", + "team": { + "id": "01736702-c133-4918-90f9-2ddba33af122", + "constructor": { + "id": "21fbe597-b587-42e1-b571-a06af5cc2487", + "name": "Aprilia", + "legacy_id": 7 + }, + "name": "Aprilia Racing Team Gresini", + "legacy_id": 10, + "color": "#9baee4", + "text_color": "#323232", + "picture": "http://localhost:8089/teams/a/7/a7b1c4d6-3da3-482d-8de5-5d8299cec022/Aprilia-Racing-Team.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "LS32", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/2/6/2641b21d-d5d2-4d0b-950a-7d00e06488fb/profile/main/32-Lorenzo-Salvadori-DSC6238.png", + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": "http://localhost:8089/riders/2/6/2641b21d-d5d2-4d0b-950a-7d00e06488fb/number/32_Lorenzo_Salvadori.png", + "portrait": "http://localhost:8089/riders/2/6/2641b21d-d5d2-4d0b-950a-7d00e06488fb/portrait/32_Lorenzo_Savadori.jpg" + } + }, + { + "season": 2019, + "number": 32, + "sponsored_team": "TRENTINO Gresini MotoE", + "team": { + "id": "d0880016-4bdd-431a-8b1b-44b559f4b4bc", + "constructor": { + "id": "cdb641bf-2ec0-41cd-9959-e4322000fae9", + "name": "Energica", + "legacy_id": 589 + }, + "name": "Team Gresini MotoE", + "legacy_id": 219, + "color": "#cdd600", + "text_color": "#323232", + "picture": "http://localhost:8089/teams/8/1/818ca6c8-a307-4e7a-a431-d396bb286ccd/Team-Gresini-MotoE.png", + "published": true + }, + "category": { + "id": "cf196668-f900-4116-af79-810b91828a37", + "name": "MotoE", + "legacy_id": 19 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/7/7/7732c1f7-d0c4-4365-bb21-d646c41d6c7a/profile/main/32_Lorenzo_Savadori_Rider.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2019/riders/motoe/bike/original/rider_7246_1562404127.jpg", + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": "http://localhost:8089/2020/dorsales/others/32.png", + "portrait": "http://localhost:8089/2019/riders/motoe/grid/original/rider_7246_1562411600.jpg" + } + }, + { + "season": 2010, + "number": 32, + "sponsored_team": "Matteoni Racing", + "team": { + "id": "ead0898b-2de8-4af9-9014-6d802c10eaf1", + "constructor": { + "id": "fe62d196-ff34-409a-aa32-4aae146e2e3c", + "name": "Speed Up", + "legacy_id": 431 + }, + "name": "Matteoni Racing", + "legacy_id": 210, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto2/original/team_bike_210_1583857099.jpg", + "published": true + }, + "category": { + "id": "578be24b-3cd6-498f-9ed8-f0817be88467", + "name": "125cc", + "legacy_id": 10 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7246" + } + }, + { + "season": 2009, + "number": 32, + "sponsored_team": "Fontana Racing", + "team": { + "id": "cbe8461b-a6cb-42da-86a0-17d7b92f3715", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Fontana Racing", + "legacy_id": 111, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_111_1584628514.jpg", + "published": true + }, + "category": { + "id": "578be24b-3cd6-498f-9ed8-f0817be88467", + "name": "125cc", + "legacy_id": 10 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7246" + } + }, + { + "season": 2009, + "number": 32, + "sponsored_team": "Junior GP Racing Dream", + "team": { + "id": "cbe8461b-a6cb-42da-86a0-17d7b92f3715", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Fontana Racing", + "legacy_id": 111, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_111_1584628514.jpg", + "published": true + }, + "category": { + "id": "578be24b-3cd6-498f-9ed8-f0817be88467", + "name": "125cc", + "legacy_id": 10 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7246" + } + }, + { + "season": 2008, + "number": 40, + "sponsored_team": "RCGM", + "team": { + "id": "25c36eaa-9450-430e-8916-62dfb6331759", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "I.C. Team", + "legacy_id": 112, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_112_1584101123.jpg", + "published": true + }, + "category": { + "id": "578be24b-3cd6-498f-9ed8-f0817be88467", + "name": "125cc", + "legacy_id": 10 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7246" + } + }, + { + "season": 2008, + "number": 40, + "sponsored_team": "I.C. Team", + "team": { + "id": "25c36eaa-9450-430e-8916-62dfb6331759", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "I.C. Team", + "legacy_id": 112, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_112_1584101123.jpg", + "published": true + }, + "category": { + "id": "578be24b-3cd6-498f-9ed8-f0817be88467", + "name": "125cc", + "legacy_id": 10 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7246" + } + }, + { + "season": 2008, + "number": 40, + "sponsored_team": "RCGM", + "team": { + "id": "25c36eaa-9450-430e-8916-62dfb6331759", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "I.C. Team", + "legacy_id": 112, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_112_1584101123.jpg", + "published": true + }, + "category": { + "id": "578be24b-3cd6-498f-9ed8-f0817be88467", + "name": "125cc", + "legacy_id": 10 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7246" + } + } + ], + "biography": { + "text": "Italian rookie Lorenzo Savadori arrived in the 125cc World Championship tipped for big things, thanks to his packed résumé in various two-stroke competitions. Savadori was born in Cesena, Italy in 1993, and it wasn’t long before he was swinging his leg over a bike for the first time. Introduced to racing by his father, the youngster took a standard apprenticeship in junior disciplines before being picked for the inaugural edition of the Red Bull MotoGP Rookies Cup in 2007. He immediately impressed onboard the standard KTM 125cc bike used in the youth initiative, taking victory in the opening race of the competition at Jerez. He finished runner-up in the 2007 series. Following that success, Savadori made an assault on the Italian national 125cc crown in 2008. The standout rider in the class, he took the title in what was a busy year. In the summer he had competed in the European Championship event at Albacete, winning the 125cc race and adding to his impressive CV. 2008 also saw him make his debut in the World Championship with an Aprilia as a wildcard entrant. He competed at Mugello, Misano and Valencia, and was snapped up for a first full season in the 125cc class in 2009 by Fontana Racing. He only finished 4 out of the 13 races he started but Savadori did manage an impressive 9th place finish in Mugello. Then the Italian rode with Matteoni C.P. Racing, before he moved to the CIV STK Championship and the FIM STK1000 Cup in 2011. He stayed in STK1000 in 2012 and took his first win at Monza, coming fifth overall and repeating that in 2013. In 2014 he made a step forward and took second overall, before Savadori took the crown in 2015 after four wins and seven podiums. For 2016 he moved up to WorldSBK and has since been a regular threat for the top five and top ten, having some impressive pace. In 2019, he made the move to Energica Ego in the MotoE™ Championship, where again he launched regular assaults on the Top 10. Fast forward a year later and Aprilia handed him his chance in MotoGP™ at the European GP. His debut ended in disappointment though as he retired from the race, but he held onto the seat for the final two races of the season. 2021 saw him made a permanent rider for Aprilia.", + "media": { + "video": null, + "picture": "http://localhost:8089/riders/e/f/efe466ff-88af-4e78-9298-428a0355534b/biography/32_Lorenzo_Savadori_DSC0993.jpg" + } + }, + "legend": false, + "legacy_id": 7246, + "merchandise_url": null, + "published": true, + "injured": false, + "banned": false, + "wildcard": false +} \ No newline at end of file diff --git a/src/test/resources/__files/rider/7409.json b/src/test/resources/__files/rider/7409.json index aefd693..0fc1f0b 100644 --- a/src/test/resources/__files/rider/7409.json +++ b/src/test/resources/__files/rider/7409.json @@ -29,7 +29,7 @@ "legacy_id": 21, "color": "#2db914", "text_color": "#ffffff", - "picture": "https://photos.motogp.com/teams/0/a/0a912f7c-da05-4942-9fd3-282d0a15f10b/Apriliaracing.png", + "picture": "http://localhost:8089/teams/0/a/0a912f7c-da05-4942-9fd3-282d0a15f10b/Apriliaracing.png", "published": true }, "category": { @@ -42,19 +42,19 @@ "current": true, "pictures": { "profile": { - "main": "https://photos.motogp.com/riders/2/3/23a96a16-899d-4543-bfe1-833002a446f6/profile/main/12_Maverick_Vinales_MotoGP_Rider_DS_5246.png", + "main": "http://localhost:8089/riders/2/3/23a96a16-899d-4543-bfe1-833002a446f6/profile/main/12_Maverick_Vinales_MotoGP_Rider_DS_5246.png", "secondary": null }, "bike": { - "main": "https://photos.motogp.com/riders/2/3/23a96a16-899d-4543-bfe1-833002a446f6/bike/main/_0009_12-Maverick-Vinales_Bike45.png", + "main": "http://localhost:8089/riders/2/3/23a96a16-899d-4543-bfe1-833002a446f6/bike/main/_0009_12-Maverick-Vinales_Bike45.png", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/riders/3/9/393e0718-15b1-403b-9749-8c091bc51be3/helmet/main/12MaverickVinales_HelmetLG6_6362.jpg", + "main": "http://localhost:8089/riders/3/9/393e0718-15b1-403b-9749-8c091bc51be3/helmet/main/12MaverickVinales_HelmetLG6_6362.jpg", "secondary": null }, - "number": "https://photos.motogp.com/riders/4/0/4026c7e8-b9f7-49d4-ac25-a07541f2657e/number/12-Maverick-Vinales_.png", - "portrait": "https://photos.motogp.com/riders/2/3/23a96a16-899d-4543-bfe1-833002a446f6/portrait/12-Maverick-VinalesRider_DS_5239.jpg" + "number": "http://localhost:8089/riders/4/0/4026c7e8-b9f7-49d4-ac25-a07541f2657e/number/12-Maverick-Vinales_.png", + "portrait": "http://localhost:8089/riders/2/3/23a96a16-899d-4543-bfe1-833002a446f6/portrait/12-Maverick-VinalesRider_DS_5239.jpg" } }, { @@ -72,7 +72,7 @@ "legacy_id": 10, "color": "#9baee4", "text_color": "#323232", - "picture": "https://photos.motogp.com/teams/a/7/a7b1c4d6-3da3-482d-8de5-5d8299cec022/Aprilia-Racing-Team.png", + "picture": "http://localhost:8089/teams/a/7/a7b1c4d6-3da3-482d-8de5-5d8299cec022/Aprilia-Racing-Team.png", "published": true }, "category": { @@ -85,7 +85,7 @@ "current": true, "pictures": { "profile": { - "main": "https://photos.motogp.com/riders/c/f/cf00bee4-d957-42d7-9c5a-bdf384d49b01/profile/main/12-Maverick-Vinales.png", + "main": "http://localhost:8089/riders/c/f/cf00bee4-d957-42d7-9c5a-bdf384d49b01/profile/main/12-Maverick-Vinales.png", "secondary": null }, "bike": { @@ -96,8 +96,8 @@ "main": null, "secondary": null }, - "number": "https://photos.motogp.com/riders/4/0/4026c7e8-b9f7-49d4-ac25-a07541f2657e/number/12-Maverick-Vinales_.png", - "portrait": "https://photos.motogp.com/riders/c/f/cf00bee4-d957-42d7-9c5a-bdf384d49b01/portrait/12-Maverick-Vinales.jpg" + "number": "http://localhost:8089/riders/4/0/4026c7e8-b9f7-49d4-ac25-a07541f2657e/number/12-Maverick-Vinales_.png", + "portrait": "http://localhost:8089/riders/c/f/cf00bee4-d957-42d7-9c5a-bdf384d49b01/portrait/12-Maverick-Vinales.jpg" } }, { @@ -115,7 +115,7 @@ "legacy_id": 19, "color": "#183dc7", "text_color": "#ffffff", - "picture": "https://photos.motogp.com/teams/9/1/91699bb4-f33d-40de-b995-4f5e120ff74d/Yamaha.png", + "picture": "http://localhost:8089/teams/9/1/91699bb4-f33d-40de-b995-4f5e120ff74d/Yamaha.png", "published": true }, "category": { @@ -128,19 +128,19 @@ "current": false, "pictures": { "profile": { - "main": "https://photos.motogp.com/riders/8/1/816b12f2-f8cf-45bf-98cc-ad8079a0c998/profile/main/_0010_12-Maverick-Vinales,-Rider_A7R1590.png", + "main": "http://localhost:8089/riders/8/1/816b12f2-f8cf-45bf-98cc-ad8079a0c998/profile/main/_0010_12-Maverick-Vinales,-Rider_A7R1590.png", "secondary": null }, "bike": { - "main": "https://photos.motogp.com/riders/8/1/816b12f2-f8cf-45bf-98cc-ad8079a0c998/bike/main/_0010_12-Maverick-Vinales,-Bike_LG87361.png", + "main": "http://localhost:8089/riders/8/1/816b12f2-f8cf-45bf-98cc-ad8079a0c998/bike/main/_0010_12-Maverick-Vinales,-Bike_LG87361.png", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/riders/8/1/816b12f2-f8cf-45bf-98cc-ad8079a0c998/helmet/main/_0000_12_Maverick_Vinales,_Helmet_LG61662.jpg", + "main": "http://localhost:8089/riders/8/1/816b12f2-f8cf-45bf-98cc-ad8079a0c998/helmet/main/_0000_12_Maverick_Vinales,_Helmet_LG61662.jpg", "secondary": null }, - "number": "https://photos.motogp.com/riders/5/5/559396a2-ca31-444c-9e11-b97df5a1921b/number/12-Maverick-Vinales.png", - "portrait": "https://photos.motogp.com/riders/b/4/b413b4a7-2db6-4309-a3ea-7a09291ad39e/portrait/_0010_12-Maverick-Vinales,-Rider_A7R1584.jpg" + "number": "http://localhost:8089/riders/5/5/559396a2-ca31-444c-9e11-b97df5a1921b/number/12-Maverick-Vinales.png", + "portrait": "http://localhost:8089/riders/b/4/b413b4a7-2db6-4309-a3ea-7a09291ad39e/portrait/_0010_12-Maverick-Vinales,-Rider_A7R1584.jpg" } }, { @@ -158,7 +158,7 @@ "legacy_id": 19, "color": "#183dc7", "text_color": "#ffffff", - "picture": "https://photos.motogp.com/teams/9/1/91699bb4-f33d-40de-b995-4f5e120ff74d/Yamaha.png", + "picture": "http://localhost:8089/teams/9/1/91699bb4-f33d-40de-b995-4f5e120ff74d/Yamaha.png", "published": true }, "category": { @@ -171,19 +171,19 @@ "current": false, "pictures": { "profile": { - "main": "https://photos.motogp.com/riders/a/d/ad566937-bad4-42ca-a601-0a233aabd199/profile/main/1_0003_12-Maverick-Vinales-ESP,-Body_DSC7063.png", + "main": "http://localhost:8089/riders/a/d/ad566937-bad4-42ca-a601-0a233aabd199/profile/main/1_0003_12-Maverick-Vinales-ESP,-Body_DSC7063.png", "secondary": null }, "bike": { - "main": "https://photos.motogp.com/riders/d/f/dfa0d417-7e23-4899-807b-b4e8273f536e/bike/main/12-Maverick-Vinales.png", + "main": "http://localhost:8089/riders/d/f/dfa0d417-7e23-4899-807b-b4e8273f536e/bike/main/12-Maverick-Vinales.png", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/riders/f/e/fe32366d-1e0a-40bc-a696-2947df54dfb7/helmet/main/12-Maverick-Vinales.jpg", + "main": "http://localhost:8089/riders/f/e/fe32366d-1e0a-40bc-a696-2947df54dfb7/helmet/main/12-Maverick-Vinales.jpg", "secondary": null }, - "number": "https://photos.motogp.com/2019/dorsales/3/7409.png", - "portrait": "https://photos.motogp.com/riders/4/9/49234c3d-a839-4bf1-aea5-7cc9691cc82a/portrait/-_0003_12-Maverick-Vinales-ESP,-Body_DSC7058.jpg" + "number": "http://localhost:8089/2019/dorsales/3/7409.png", + "portrait": "http://localhost:8089/riders/4/9/49234c3d-a839-4bf1-aea5-7cc9691cc82a/portrait/-_0003_12-Maverick-Vinales-ESP,-Body_DSC7058.jpg" } }, { @@ -201,7 +201,7 @@ "legacy_id": 19, "color": "#183dc7", "text_color": "#ffffff", - "picture": "https://photos.motogp.com/teams/9/1/91699bb4-f33d-40de-b995-4f5e120ff74d/Yamaha.png", + "picture": "http://localhost:8089/teams/9/1/91699bb4-f33d-40de-b995-4f5e120ff74d/Yamaha.png", "published": true }, "category": { @@ -218,15 +218,15 @@ "secondary": null }, "bike": { - "main": "https://photos.motogp.com/2019/riders/motogp/bike/original/rider_7409_1552058371.jpg", + "main": "http://localhost:8089/2019/riders/motogp/bike/original/rider_7409_1552058371.jpg", "secondary": null }, "helmet": { "main": null, "secondary": null }, - "number": "https://photos.motogp.com/2019/dorsales/3/7409.png", - "portrait": "https://photos.motogp.com/2019/riders/motogp/grid/original/rider_7409_1554806128.jpg" + "number": "http://localhost:8089/2019/dorsales/3/7409.png", + "portrait": "http://localhost:8089/2019/riders/motogp/grid/original/rider_7409_1554806128.jpg" } }, { @@ -244,7 +244,7 @@ "legacy_id": 19, "color": "#183dc7", "text_color": "#ffffff", - "picture": "https://photos.motogp.com/teams/9/1/91699bb4-f33d-40de-b995-4f5e120ff74d/Yamaha.png", + "picture": "http://localhost:8089/teams/9/1/91699bb4-f33d-40de-b995-4f5e120ff74d/Yamaha.png", "published": true }, "category": { @@ -261,15 +261,15 @@ "secondary": null }, "bike": { - "main": "https://photos.motogp.com/2018/riders/motogp/bike/original/rider_7409_1521313173.jpg", + "main": "http://localhost:8089/2018/riders/motogp/bike/original/rider_7409_1521313173.jpg", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/2018/riders/motogp/helmet/original/rider_7409_1521312785.jpg", + "main": "http://localhost:8089/2018/riders/motogp/helmet/original/rider_7409_1521312785.jpg", "secondary": null }, - "number": "https://photos.motogp.com/2018/dorsales/3/7409.png", - "portrait": "https://photos.motogp.com/2018/riders/motogp/grid/original/rider_7409_1521213854.jpg" + "number": "http://localhost:8089/2018/dorsales/3/7409.png", + "portrait": "http://localhost:8089/2018/riders/motogp/grid/original/rider_7409_1521213854.jpg" } }, { @@ -287,7 +287,7 @@ "legacy_id": 19, "color": null, "text_color": null, - "picture": "https://photos.motogp.com/2020/teams/motogp/original/team_bike_19_1574329098.jpg", + "picture": "http://localhost:8089/2020/teams/motogp/original/team_bike_19_1574329098.jpg", "published": true }, "category": { @@ -304,15 +304,15 @@ "secondary": null }, "bike": { - "main": "https://photos.motogp.com/2017/riders/motogp/bike/original/rider_7409_1490542034.jpg", + "main": "http://localhost:8089/2017/riders/motogp/bike/original/rider_7409_1490542034.jpg", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/2017/riders/motogp/helmet/original/rider_7409_1490543513.jpg", + "main": "http://localhost:8089/2017/riders/motogp/helmet/original/rider_7409_1490543513.jpg", "secondary": null }, "number": null, - "portrait": "https://photos.motogp.com/2017/riders/motogp/grid/original/rider_7409_1490883976.jpg" + "portrait": "http://localhost:8089/2017/riders/motogp/grid/original/rider_7409_1490883976.jpg" } }, { @@ -330,7 +330,7 @@ "legacy_id": 37, "color": "#4294c1", "text_color": "#ffffff", - "picture": "https://photos.motogp.com/teams/6/a/6ae0f119-6c7c-4171-9062-b431459e7c18/Suzuki.png", + "picture": "http://localhost:8089/teams/6/a/6ae0f119-6c7c-4171-9062-b431459e7c18/Suzuki.png", "published": true }, "category": { @@ -347,15 +347,15 @@ "secondary": null }, "bike": { - "main": "https://photos.motogp.com/2016/riders/motogp/bike/original/rider_7409_1458324129.jpg", + "main": "http://localhost:8089/2016/riders/motogp/bike/original/rider_7409_1458324129.jpg", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/2016/riders/motogp/helmet/original/rider_7409_1458324070.jpg", + "main": "http://localhost:8089/2016/riders/motogp/helmet/original/rider_7409_1458324070.jpg", "secondary": null }, "number": null, - "portrait": "https://photos.motogp.com/2016/riders/motogp/grid/original/rider_7409_1479303985.jpg" + "portrait": "http://localhost:8089/2016/riders/motogp/grid/original/rider_7409_1479303985.jpg" } }, { @@ -373,7 +373,7 @@ "legacy_id": 37, "color": "#4294c1", "text_color": "#ffffff", - "picture": "https://photos.motogp.com/teams/6/a/6ae0f119-6c7c-4171-9062-b431459e7c18/Suzuki.png", + "picture": "http://localhost:8089/teams/6/a/6ae0f119-6c7c-4171-9062-b431459e7c18/Suzuki.png", "published": true }, "category": { @@ -398,7 +398,7 @@ "secondary": null }, "number": null, - "portrait": "https://www.motogp.com/en/api/rider/photo/grid/old/7409" + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7409" } }, { @@ -416,7 +416,7 @@ "legacy_id": 213, "color": null, "text_color": null, - "picture": "https://photos.motogp.com/2020/teams/moto2/original/team_bike_213_1583857100.jpg", + "picture": "http://localhost:8089/2020/teams/moto2/original/team_bike_213_1583857100.jpg", "published": true }, "category": { @@ -441,7 +441,7 @@ "secondary": null }, "number": null, - "portrait": "https://www.motogp.com/en/api/rider/photo/grid/old/7409" + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7409" } }, { @@ -459,7 +459,7 @@ "legacy_id": 107, "color": null, "text_color": null, - "picture": "https://photos.motogp.com/2020/teams/moto2/original/team_bike_107_1583857096.jpg", + "picture": "http://localhost:8089/2020/teams/moto2/original/team_bike_107_1583857096.jpg", "published": true }, "category": { @@ -484,7 +484,7 @@ "secondary": null }, "number": null, - "portrait": "https://www.motogp.com/en/api/rider/photo/grid/old/7409" + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7409" } }, { @@ -527,7 +527,7 @@ "secondary": null }, "number": null, - "portrait": "https://www.motogp.com/en/api/rider/photo/grid/old/7409" + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7409" } }, { @@ -545,7 +545,7 @@ "legacy_id": 111, "color": null, "text_color": null, - "picture": "https://photos.motogp.com/2020/teams/moto3/original/team_bike_111_1584628514.jpg", + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_111_1584628514.jpg", "published": true }, "category": { @@ -570,7 +570,7 @@ "secondary": null }, "number": null, - "portrait": "https://www.motogp.com/en/api/rider/photo/grid/old/7409" + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7409" } } ], @@ -578,12 +578,12 @@ "text": "2013 Moto3™ World Champion Maverick Viñales took the lightweight title in the CEV in 2010, as well as the European 125 Championship the following year, and debuted in the 125 World Championship in 2011. He won four races in his rookie year – third in the Championship and Rookie of the Year – and then took that title in 2013. As a Moto2™ rookie in 2014, Viñales was again Rookie of the Year and won four races – moving up to MotoGP™ the year after with Team Suzuki Ecstar. Another Rookie of the Year trophy followed, before the Spaniard then took Suzuki’s first race win since 2007 – and his maiden MotoGP™ win – at the British GP in 2016. For 2017, Viñales moved to Movistar Yamaha MotoGP to partner none other than Italian legend Valentino Rossi. After dominating pre-season testing, the Yamaha rider won the first two races of the year and the French GP, but the Movistar Yamaha team’s struggles with low grip then saw a more difficult latter half of the season. Viñales came third overall, and the struggles continued into 2018. It was the Spaniard who brought Yamaha's longest losing streak to an end, however, as he won in Australia. 2019 started slowly for Viñales, picking up just the solitary podium in the first seven races. However, victory at Assen then put the wheels in motion for a fantastic latter half of the season. Five podiums, including a win in Malaysia, saw Viñales claim P3 in the Championship. 2020 brought hopes of a title attack for Viñales, and he was in contention from the very beginning thanks to successive second places in the Jerez double, while victory at the Emilia Romagna GP bolstered his hopes. However, inconsistent form and an inability to follow up on promising Qualifying sessions saw the Spaniard slip out of the title race and finish 6th in the Championship. 2021, his fifth year at Yamaha, started in remarkable fashion with victory at the opening round. But the relationship deteriorated from there in unprecedented circumstances. 24 hours on from a podium in Assen, it was announced he'd leave Yamaha at the end of the season, one year earlier than planned, but he didn't even make it to Valencia. After over-revving his engine in Austria, Yamaha sacked the Spaniard with immediate effect. Rumours began to grow that he'd sign for Aprilia and, before long, that deal was announced and he was testing the RS-GP in Misano. The Noale factory handed him the final five rounds of the year to adapt to the new machine and prepare for a hugely important 2022 campaign alongside Aleix Espargaro.", "media": { "video": null, - "picture": "https://photos.motogp.com/riders/e/8/e877cab5-d604-4bf3-95ee-482682968a8a/biography/12-maverick-vinales-esp---lg5_3231.gallery_full_top_fullscreen.jpg" + "picture": "http://localhost:8089/riders/e/8/e877cab5-d604-4bf3-95ee-482682968a8a/biography/12-maverick-vinales-esp---lg5_3231.gallery_full_top_fullscreen.jpg" } }, "legend": false, "legacy_id": 7409, - "merchandise_url": "https://store.motogp.com/en/maverick-vinales-12-clothing-merchandise?utm_source=motogp.com&utm_medium=Link&utm_content=MV25&utm_campaign=Store&o=motogp-riders-stats", + "merchandise_url": "http://localhost:8089/en/maverick-vinales-12-clothing-merchandise?utm_source=localhost:8089&utm_medium=Link&utm_content=MV25&utm_campaign=Store&o=motogp-riders-stats", "published": true, "injured": false, "banned": false, diff --git a/src/test/resources/__files/rider/7444.json b/src/test/resources/__files/rider/7444.json index db55639..3d399c3 100644 --- a/src/test/resources/__files/rider/7444.json +++ b/src/test/resources/__files/rider/7444.json @@ -1 +1,677 @@ -{"id":"23e50438-a657-4fb0-a190-3262b5472f29","name":"Marc","surname":"Marquez","nickname":null,"country":{"iso":"ES","name":"Spain"},"birth_city":"Cervera","birth_date":"1993-02-17","physical_attributes":{"height":169,"weight":65},"career":[{"season":2022,"number":93,"sponsored_team":"Repsol Honda Team","team":{"id":"ce837bd3-bc07-40ef-83cf-6a8025bededf","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Repsol Honda Team","legacy_id":14,"color":"#ff9912","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":"MM93","current":false,"pictures":{"profile":{"main":"https://photos.motogp.com/riders/e/0/e03e7860-40be-4079-beef-7dd7d2ccee8a/profile/main/93_Marc_Marquez.png","secondary":null},"bike":{"main":"https://photos.motogp.com/riders/e/0/e03e7860-40be-4079-beef-7dd7d2ccee8a/bike/main/93_Marc_Marquez_B.png","secondary":null},"helmet":{"main":"https://photos.motogp.com/riders/e/0/e03e7860-40be-4079-beef-7dd7d2ccee8a/helmet/main/93-Marc-Marquez.jpg","secondary":null},"number":"https://photos.motogp.com/riders/6/4/64c06f69-343f-4808-88a6-3e0c03e9a99a/number/93-Marc-Marquez.png","portrait":"https://photos.motogp.com/riders/e/0/e03e7860-40be-4079-beef-7dd7d2ccee8a/portrait/93_Marc_Marquez.jpg"}},{"season":2021,"number":93,"sponsored_team":"Repsol Honda Team","team":{"id":"ce837bd3-bc07-40ef-83cf-6a8025bededf","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Repsol Honda Team","legacy_id":14,"color":"#ff9912","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":"MM93","current":false,"pictures":{"profile":{"main":"https://photos.motogp.com/riders/b/5/b5bb7fc0-48d7-47c3-a1de-9667a485c6d1/profile/main/_0005_93-Marc-Marquez-Rider_A7R4509.png","secondary":null},"bike":{"main":"https://photos.motogp.com/riders/7/9/79b584ac-9fe7-4fb7-8d94-91d80cfb8066/bike/main/93-Marc-Marquez.png","secondary":null},"helmet":{"main":"https://photos.motogp.com/riders/6/1/613b7da7-ac5b-4267-a4e8-4021be6a829e/helmet/main/93-Marc-Marquez.png","secondary":null},"number":"https://photos.motogp.com/riders/6/4/64c06f69-343f-4808-88a6-3e0c03e9a99a/number/93-Marc-Marquez.png","portrait":"https://photos.motogp.com/riders/7/4/74f87828-a702-41df-b565-5ab9ede21c2e/portrait/_0001_93-Marc-Marquez,-Rider_A7R4499.jpg"}},{"season":2020,"number":93,"sponsored_team":"Repsol Honda Team","team":{"id":"ce837bd3-bc07-40ef-83cf-6a8025bededf","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Repsol Honda Team","legacy_id":14,"color":"#ff9912","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":"MM93","current":false,"pictures":{"profile":{"main":"https://photos.motogp.com/riders/3/a/3aaccb86-985b-440b-8090-1754bae87fd4/profile/main/1_0021_93-Marc-Marquez-ESP,-Body_DSC1526.png","secondary":null},"bike":{"main":"https://photos.motogp.com/riders/7/9/79b584ac-9fe7-4fb7-8d94-91d80cfb8066/bike/main/93-Marc-Marquez.png","secondary":null},"helmet":{"main":"https://photos.motogp.com/riders/6/1/613b7da7-ac5b-4267-a4e8-4021be6a829e/helmet/main/93-Marc-Marquez.png","secondary":null},"number":"https://photos.motogp.com/2019/dorsales/3/7444.png","portrait":"https://photos.motogp.com/riders/6/f/6f646538-ce6c-41a0-a404-c8183c57a93d/portrait/93_Marc_Marquez.jpg"}},{"season":2019,"number":93,"sponsored_team":"Repsol Honda Team","team":{"id":"ce837bd3-bc07-40ef-83cf-6a8025bededf","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Repsol Honda Team","legacy_id":14,"color":"#ff9912","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2019/riders/motogp/bike/original/rider_7444_1552058420.jpg","secondary":null},"helmet":{"main":null,"secondary":null},"number":"https://photos.motogp.com/2019/dorsales/3/7444.png","portrait":"https://photos.motogp.com/2019/riders/motogp/grid/original/rider_7444_1554806167.jpg"}},{"season":2018,"number":93,"sponsored_team":"Repsol Honda Team","team":{"id":"ce837bd3-bc07-40ef-83cf-6a8025bededf","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Repsol Honda Team","legacy_id":14,"color":"#ff9912","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2018/riders/motogp/bike/original/rider_7444_1521313168.jpg","secondary":null},"helmet":{"main":"https://photos.motogp.com/2018/riders/motogp/helmet/original/rider_7444_1521312763.jpg","secondary":null},"number":"https://photos.motogp.com/2018/dorsales/3/7444.png","portrait":"https://photos.motogp.com/2018/riders/motogp/grid/original/rider_7444_1521214024.jpg"}},{"season":2017,"number":93,"sponsored_team":"Repsol Honda Team","team":{"id":"ce837bd3-bc07-40ef-83cf-6a8025bededf","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Repsol Honda Team","legacy_id":14,"color":"#ff9912","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2017/riders/motogp/bike/original/rider_7444_1490377873.jpg","secondary":null},"helmet":{"main":"https://photos.motogp.com/2017/riders/motogp/helmet/original/rider_7444_1490543508.jpg","secondary":null},"number":null,"portrait":"https://photos.motogp.com/2017/riders/motogp/grid/original/rider_7444_1490884017.jpg"}},{"season":2016,"number":93,"sponsored_team":"Repsol Honda Team","team":{"id":"ce837bd3-bc07-40ef-83cf-6a8025bededf","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Repsol Honda Team","legacy_id":14,"color":"#ff9912","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2016/riders/motogp/bike/original/rider_7444_1458324190.jpg","secondary":null},"helmet":{"main":"https://photos.motogp.com/2016/riders/motogp/helmet/original/rider_7444_1458324123.jpg","secondary":null},"number":null,"portrait":"https://photos.motogp.com/2016/riders/motogp/grid/original/rider_7444_1464880376.jpg"}},{"season":2015,"number":93,"sponsored_team":"Repsol Honda Team","team":{"id":"ce837bd3-bc07-40ef-83cf-6a8025bededf","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Repsol Honda Team","legacy_id":14,"color":"#ff9912","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/7444"}},{"season":2014,"number":93,"sponsored_team":"Repsol Honda Team","team":{"id":"ce837bd3-bc07-40ef-83cf-6a8025bededf","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Repsol Honda Team","legacy_id":14,"color":"#ff9912","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/7444"}},{"season":2013,"number":93,"sponsored_team":"Repsol Honda Team","team":{"id":"ce837bd3-bc07-40ef-83cf-6a8025bededf","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Repsol Honda Team","legacy_id":14,"color":"#ff9912","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/7444"}},{"season":2012,"number":93,"sponsored_team":"Team Catalunya Caixa Repsol","team":{"id":"40574e55-b9c0-482e-a50d-72ad75c398ee","constructor":{"id":"cdb641bf-2ec0-41cd-9959-e4322000fae9","name":"Energica","legacy_id":589},"name":"Team Catalunya Caixa Repsol","legacy_id":219,"color":null,"text_color":null,"picture":null,"published":true},"category":{"id":"ea854a67-73a4-4a28-ac77-d67b3b2a530a","name":"Moto2","legacy_id":2},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/7444"}},{"season":2011,"number":93,"sponsored_team":"Team CatalunyaCaixa Repsol","team":{"id":"039472e0-77f9-4169-97f0-0c818f3f97c5","constructor":{"id":"cdb641bf-2ec0-41cd-9959-e4322000fae9","name":"Energica","legacy_id":589},"name":"Team CatalunyaCaixa Repsol","legacy_id":220,"color":null,"text_color":null,"picture":null,"published":true},"category":{"id":"ea854a67-73a4-4a28-ac77-d67b3b2a530a","name":"Moto2","legacy_id":2},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/7444"}},{"season":2010,"number":93,"sponsored_team":"Red Bull Ajo Motorsport","team":{"id":"5461c333-4de4-495f-8611-125bb8c1f71f","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Red Bull Ajo Motorsport","legacy_id":104,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/moto3/original/team_bike_104_1584101119.jpg","published":true},"category":{"id":"578be24b-3cd6-498f-9ed8-f0817be88467","name":"125cc","legacy_id":10},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/7444"}},{"season":2009,"number":93,"sponsored_team":"Red Bull KTM Moto Sport","team":{"id":"035587c9-80f5-4d76-8e05-42e910cc9b95","constructor":{"id":"5ecd8db7-d87b-4b3e-87b6-1f72ee457ede","name":"KTM","legacy_id":298},"name":"Red Bull KTM Moto Sport","legacy_id":108,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/moto3/original/team_bike_108_1584101112.jpg","published":true},"category":{"id":"578be24b-3cd6-498f-9ed8-f0817be88467","name":"125cc","legacy_id":10},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/7444"}},{"season":2008,"number":93,"sponsored_team":"Repsol KTM 125cc","team":{"id":"81652d16-a1e6-458d-a455-717f9593d132","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Repsol KTM 125cc","legacy_id":106,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/moto3/original/team_bike_106_1584101117.jpg","published":true},"category":{"id":"578be24b-3cd6-498f-9ed8-f0817be88467","name":"125cc","legacy_id":10},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/7444"}}],"biography":{"text":"Marc Marquez became the youngest ever six-time World Champion after taking his fourth premier class crown in 2017. On the podium in his rookie 125 campaign in 2008, Marquez won that crown in 2010 before moving up to Moto2™ for 2011. After a tough start, the rider from Cervera went on an incredible winning spree and had closed the gap to Championship leader Stefan Bradl to a handful of points, before a crash in practice for the Malaysian GP saw Marquez forced to cede the fight and miss the two remaining races of the year. Problems with his vision in the off season saw surgery then finally fix the problem, and despite the shortened preparation for 2012 the Spaniard took the crown in stunning style by the Australian GP. Replacing outgoing Casey Stoner in 2013 at the Repsol Honda Team, Marquez won his second ever MotoGP™ race and incredibly took the Championship in his rookie year. Then beginning 2014 with 10 wins in a row, Marquez won that crown in Motegi to successfully defend the title. Before 2015 proved more difficult with some mistakes and too many DNFs. Losing out to Jorge Lorenzo and Valentino Rossi, Marquez began 2016 with a point to prove and took another incredible Championship title – redesigning his mentality and thinking about the long game as he put consistency at the top of the agenda. The reigning Champion then fought down to the wire against Andrea Dovizioso for the 2017 crown, with everything going down to the final round and Marquez - despite an incredible moment into Turn 1 - keeping it on the podium to break another record and take another title. He began 2018 as the reigning Champion once more and went on to make more history, taking nine wins and wrapping up the title in Japan - becoming the youngest ever seven-time World Champion. 2019 saw the number 93 take yet another step up, fighting off Dovizioso once more, as well as new rivals in Alex Rins and Fabio Quartararo, with a series of tough last lap battles. After a season of only finishing second or better in every race - bar a DNF at the Circuit of the Americas - the Repsol Honda rider went on to make it Magic Number 8, needing just 15 rounds, getting the job done in Thailand. Any hopes of another record breaking year were put on hold in 2020 however, as Marquez sustained an injury to his right humerus in the season opener in Jerez, which eventually ruled him out of the season. Thankfully, Marquez was able to return to action at Round 3 in Portimao in 2021. Slowly but surely, the number 93 regained speed and fitness and at the Sachsenring, he was back on the top step. A P2 in Aragon was followed by back-to-back victories in Austin and Misano, signalling Marquez was returning to some real form. However, a training accident caused the return of diplopia (double vision) that he suffered with in 2011. Marquez missed the last two rounds of the season, as we hopefully await to see a fully fit eight-time Champion back on the Repsol Honda in 2022. ","media":{"video":null,"picture":"https://photos.motogp.com/riders/e/e/ee5ffc77-0022-47dc-8697-b6c0e2ff29c7/biography/93_Marc_Marquez_DSC8152.jpg"}},"legend":false,"legacy_id":7444,"merchandise_url":"https://store.motogp.com/en/merchandise-marc-marquez-mm93?utm_source=motogp.com&utm_medium=Link&utm_content=MM93&utm_campaign=Store&o=motogp-riders-stats","published":true,"injured":false,"banned":false,"wildcard":false} \ No newline at end of file +{ + "id": "23e50438-a657-4fb0-a190-3262b5472f29", + "name": "Marc", + "surname": "Marquez", + "nickname": null, + "country": { + "iso": "ES", + "name": "Spain" + }, + "birth_city": "Cervera", + "birth_date": "1993-02-17", + "physical_attributes": { + "height": 169, + "weight": 65 + }, + "career": [ + { + "season": 2022, + "number": 93, + "sponsored_team": "Repsol Honda Team", + "team": { + "id": "ce837bd3-bc07-40ef-83cf-6a8025bededf", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Repsol Honda Team", + "legacy_id": 14, + "color": "#ff9912", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "MM93", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/e/0/e03e7860-40be-4079-beef-7dd7d2ccee8a/profile/main/93_Marc_Marquez.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/e/0/e03e7860-40be-4079-beef-7dd7d2ccee8a/bike/main/93_Marc_Marquez_B.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/e/0/e03e7860-40be-4079-beef-7dd7d2ccee8a/helmet/main/93-Marc-Marquez.jpg", + "secondary": null + }, + "number": "http://localhost:8089/riders/6/4/64c06f69-343f-4808-88a6-3e0c03e9a99a/number/93-Marc-Marquez.png", + "portrait": "http://localhost:8089/riders/e/0/e03e7860-40be-4079-beef-7dd7d2ccee8a/portrait/93_Marc_Marquez.jpg" + } + }, + { + "season": 2021, + "number": 93, + "sponsored_team": "Repsol Honda Team", + "team": { + "id": "ce837bd3-bc07-40ef-83cf-6a8025bededf", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Repsol Honda Team", + "legacy_id": 14, + "color": "#ff9912", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "MM93", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/b/5/b5bb7fc0-48d7-47c3-a1de-9667a485c6d1/profile/main/_0005_93-Marc-Marquez-Rider_A7R4509.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/7/9/79b584ac-9fe7-4fb7-8d94-91d80cfb8066/bike/main/93-Marc-Marquez.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/6/1/613b7da7-ac5b-4267-a4e8-4021be6a829e/helmet/main/93-Marc-Marquez.png", + "secondary": null + }, + "number": "http://localhost:8089/riders/6/4/64c06f69-343f-4808-88a6-3e0c03e9a99a/number/93-Marc-Marquez.png", + "portrait": "http://localhost:8089/riders/7/4/74f87828-a702-41df-b565-5ab9ede21c2e/portrait/_0001_93-Marc-Marquez,-Rider_A7R4499.jpg" + } + }, + { + "season": 2020, + "number": 93, + "sponsored_team": "Repsol Honda Team", + "team": { + "id": "ce837bd3-bc07-40ef-83cf-6a8025bededf", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Repsol Honda Team", + "legacy_id": 14, + "color": "#ff9912", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "MM93", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/3/a/3aaccb86-985b-440b-8090-1754bae87fd4/profile/main/1_0021_93-Marc-Marquez-ESP,-Body_DSC1526.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/7/9/79b584ac-9fe7-4fb7-8d94-91d80cfb8066/bike/main/93-Marc-Marquez.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/6/1/613b7da7-ac5b-4267-a4e8-4021be6a829e/helmet/main/93-Marc-Marquez.png", + "secondary": null + }, + "number": "http://localhost:8089/2019/dorsales/3/7444.png", + "portrait": "http://localhost:8089/riders/6/f/6f646538-ce6c-41a0-a404-c8183c57a93d/portrait/93_Marc_Marquez.jpg" + } + }, + { + "season": 2019, + "number": 93, + "sponsored_team": "Repsol Honda Team", + "team": { + "id": "ce837bd3-bc07-40ef-83cf-6a8025bededf", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Repsol Honda Team", + "legacy_id": 14, + "color": "#ff9912", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2019/riders/motogp/bike/original/rider_7444_1552058420.jpg", + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": "http://localhost:8089/2019/dorsales/3/7444.png", + "portrait": "http://localhost:8089/2019/riders/motogp/grid/original/rider_7444_1554806167.jpg" + } + }, + { + "season": 2018, + "number": 93, + "sponsored_team": "Repsol Honda Team", + "team": { + "id": "ce837bd3-bc07-40ef-83cf-6a8025bededf", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Repsol Honda Team", + "legacy_id": 14, + "color": "#ff9912", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2018/riders/motogp/bike/original/rider_7444_1521313168.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2018/riders/motogp/helmet/original/rider_7444_1521312763.jpg", + "secondary": null + }, + "number": "http://localhost:8089/2018/dorsales/3/7444.png", + "portrait": "http://localhost:8089/2018/riders/motogp/grid/original/rider_7444_1521214024.jpg" + } + }, + { + "season": 2017, + "number": 93, + "sponsored_team": "Repsol Honda Team", + "team": { + "id": "ce837bd3-bc07-40ef-83cf-6a8025bededf", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Repsol Honda Team", + "legacy_id": 14, + "color": "#ff9912", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2017/riders/motogp/bike/original/rider_7444_1490377873.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2017/riders/motogp/helmet/original/rider_7444_1490543508.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2017/riders/motogp/grid/original/rider_7444_1490884017.jpg" + } + }, + { + "season": 2016, + "number": 93, + "sponsored_team": "Repsol Honda Team", + "team": { + "id": "ce837bd3-bc07-40ef-83cf-6a8025bededf", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Repsol Honda Team", + "legacy_id": 14, + "color": "#ff9912", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2016/riders/motogp/bike/original/rider_7444_1458324190.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2016/riders/motogp/helmet/original/rider_7444_1458324123.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2016/riders/motogp/grid/original/rider_7444_1464880376.jpg" + } + }, + { + "season": 2015, + "number": 93, + "sponsored_team": "Repsol Honda Team", + "team": { + "id": "ce837bd3-bc07-40ef-83cf-6a8025bededf", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Repsol Honda Team", + "legacy_id": 14, + "color": "#ff9912", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7444" + } + }, + { + "season": 2014, + "number": 93, + "sponsored_team": "Repsol Honda Team", + "team": { + "id": "ce837bd3-bc07-40ef-83cf-6a8025bededf", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Repsol Honda Team", + "legacy_id": 14, + "color": "#ff9912", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7444" + } + }, + { + "season": 2013, + "number": 93, + "sponsored_team": "Repsol Honda Team", + "team": { + "id": "ce837bd3-bc07-40ef-83cf-6a8025bededf", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Repsol Honda Team", + "legacy_id": 14, + "color": "#ff9912", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7444" + } + }, + { + "season": 2012, + "number": 93, + "sponsored_team": "Team Catalunya Caixa Repsol", + "team": { + "id": "40574e55-b9c0-482e-a50d-72ad75c398ee", + "constructor": { + "id": "cdb641bf-2ec0-41cd-9959-e4322000fae9", + "name": "Energica", + "legacy_id": 589 + }, + "name": "Team Catalunya Caixa Repsol", + "legacy_id": 219, + "color": null, + "text_color": null, + "picture": null, + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7444" + } + }, + { + "season": 2011, + "number": 93, + "sponsored_team": "Team CatalunyaCaixa Repsol", + "team": { + "id": "039472e0-77f9-4169-97f0-0c818f3f97c5", + "constructor": { + "id": "cdb641bf-2ec0-41cd-9959-e4322000fae9", + "name": "Energica", + "legacy_id": 589 + }, + "name": "Team CatalunyaCaixa Repsol", + "legacy_id": 220, + "color": null, + "text_color": null, + "picture": null, + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7444" + } + }, + { + "season": 2010, + "number": 93, + "sponsored_team": "Red Bull Ajo Motorsport", + "team": { + "id": "5461c333-4de4-495f-8611-125bb8c1f71f", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Red Bull Ajo Motorsport", + "legacy_id": 104, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_104_1584101119.jpg", + "published": true + }, + "category": { + "id": "578be24b-3cd6-498f-9ed8-f0817be88467", + "name": "125cc", + "legacy_id": 10 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7444" + } + }, + { + "season": 2009, + "number": 93, + "sponsored_team": "Red Bull KTM Moto Sport", + "team": { + "id": "035587c9-80f5-4d76-8e05-42e910cc9b95", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "Red Bull KTM Moto Sport", + "legacy_id": 108, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_108_1584101112.jpg", + "published": true + }, + "category": { + "id": "578be24b-3cd6-498f-9ed8-f0817be88467", + "name": "125cc", + "legacy_id": 10 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7444" + } + }, + { + "season": 2008, + "number": 93, + "sponsored_team": "Repsol KTM 125cc", + "team": { + "id": "81652d16-a1e6-458d-a455-717f9593d132", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Repsol KTM 125cc", + "legacy_id": 106, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_106_1584101117.jpg", + "published": true + }, + "category": { + "id": "578be24b-3cd6-498f-9ed8-f0817be88467", + "name": "125cc", + "legacy_id": 10 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7444" + } + } + ], + "biography": { + "text": "Marc Marquez became the youngest ever six-time World Champion after taking his fourth premier class crown in 2017. On the podium in his rookie 125 campaign in 2008, Marquez won that crown in 2010 before moving up to Moto2™ for 2011. After a tough start, the rider from Cervera went on an incredible winning spree and had closed the gap to Championship leader Stefan Bradl to a handful of points, before a crash in practice for the Malaysian GP saw Marquez forced to cede the fight and miss the two remaining races of the year. Problems with his vision in the off season saw surgery then finally fix the problem, and despite the shortened preparation for 2012 the Spaniard took the crown in stunning style by the Australian GP. Replacing outgoing Casey Stoner in 2013 at the Repsol Honda Team, Marquez won his second ever MotoGP™ race and incredibly took the Championship in his rookie year. Then beginning 2014 with 10 wins in a row, Marquez won that crown in Motegi to successfully defend the title. Before 2015 proved more difficult with some mistakes and too many DNFs. Losing out to Jorge Lorenzo and Valentino Rossi, Marquez began 2016 with a point to prove and took another incredible Championship title – redesigning his mentality and thinking about the long game as he put consistency at the top of the agenda. The reigning Champion then fought down to the wire against Andrea Dovizioso for the 2017 crown, with everything going down to the final round and Marquez - despite an incredible moment into Turn 1 - keeping it on the podium to break another record and take another title. He began 2018 as the reigning Champion once more and went on to make more history, taking nine wins and wrapping up the title in Japan - becoming the youngest ever seven-time World Champion. 2019 saw the number 93 take yet another step up, fighting off Dovizioso once more, as well as new rivals in Alex Rins and Fabio Quartararo, with a series of tough last lap battles. After a season of only finishing second or better in every race - bar a DNF at the Circuit of the Americas - the Repsol Honda rider went on to make it Magic Number 8, needing just 15 rounds, getting the job done in Thailand. Any hopes of another record breaking year were put on hold in 2020 however, as Marquez sustained an injury to his right humerus in the season opener in Jerez, which eventually ruled him out of the season. Thankfully, Marquez was able to return to action at Round 3 in Portimao in 2021. Slowly but surely, the number 93 regained speed and fitness and at the Sachsenring, he was back on the top step. A P2 in Aragon was followed by back-to-back victories in Austin and Misano, signalling Marquez was returning to some real form. However, a training accident caused the return of diplopia (double vision) that he suffered with in 2011. Marquez missed the last two rounds of the season, as we hopefully await to see a fully fit eight-time Champion back on the Repsol Honda in 2022. ", + "media": { + "video": null, + "picture": "http://localhost:8089/riders/e/e/ee5ffc77-0022-47dc-8697-b6c0e2ff29c7/biography/93_Marc_Marquez_DSC8152.jpg" + } + }, + "legend": false, + "legacy_id": 7444, + "merchandise_url": "http://localhost:8089/en/merchandise-marc-marquez-mm93?utm_source=localhost:8089&utm_medium=Link&utm_content=MM93&utm_campaign=Store&o=motogp-riders-stats", + "published": true, + "injured": false, + "banned": false, + "wildcard": false +} \ No newline at end of file diff --git a/src/test/resources/__files/rider/7646.json b/src/test/resources/__files/rider/7646.json index 57c91f0..3cd3724 100644 --- a/src/test/resources/__files/rider/7646.json +++ b/src/test/resources/__files/rider/7646.json @@ -1 +1,505 @@ -{"id":"ade5ef32-01ea-487c-95ca-491544a668ed","name":"Brad","surname":"Binder","nickname":null,"country":{"iso":"ZA","name":"South Africa"},"birth_city":"Potchefstroom","birth_date":"1995-08-11","physical_attributes":{"height":170,"weight":63},"career":[{"season":2022,"number":33,"sponsored_team":"Red Bull KTM Factory Racing","team":{"id":"0b6cc118-a286-4343-9020-fb53c6f77c1a","constructor":{"id":"5ecd8db7-d87b-4b3e-87b6-1f72ee457ede","name":"KTM","legacy_id":298},"name":"Red Bull KTM Factory Racing","legacy_id":23,"color":"#e05a17","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/4/4/447bf79b-9960-40f0-996d-a2f5ac920650/RedBullKTM.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":"BB33","current":false,"pictures":{"profile":{"main":"https://photos.motogp.com/riders/a/6/a66ef0d3-7064-4321-a85d-5ca0631565ef/profile/main/33_Brad_Binder.png","secondary":null},"bike":{"main":"https://photos.motogp.com/riders/a/6/a66ef0d3-7064-4321-a85d-5ca0631565ef/bike/main/_0007_33-Brad-Binder-BikeDSC06427.png","secondary":null},"helmet":{"main":"https://photos.motogp.com/riders/a/6/a66ef0d3-7064-4321-a85d-5ca0631565ef/helmet/main/33-Brad-Binder.jpg","secondary":null},"number":"https://photos.motogp.com/riders/5/a/5a4f166a-37e4-477a-93f3-4b752b9cf683/number/33-Brad-Binder.png","portrait":"https://photos.motogp.com/riders/a/6/a66ef0d3-7064-4321-a85d-5ca0631565ef/portrait/33_Brad_Binder.jpg"}},{"season":2021,"number":33,"sponsored_team":"Red Bull KTM Factory Racing","team":{"id":"0b6cc118-a286-4343-9020-fb53c6f77c1a","constructor":{"id":"5ecd8db7-d87b-4b3e-87b6-1f72ee457ede","name":"KTM","legacy_id":298},"name":"Red Bull KTM Factory Racing","legacy_id":23,"color":"#e05a17","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/4/4/447bf79b-9960-40f0-996d-a2f5ac920650/RedBullKTM.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":"BB33","current":false,"pictures":{"profile":{"main":"https://photos.motogp.com/riders/3/d/3d28c407-da11-4657-8574-84972b917973/profile/main/_0006_33-Brad-Binder,-Rider_A7R1742.png","secondary":null},"bike":{"main":"https://photos.motogp.com/riders/3/d/3d28c407-da11-4657-8574-84972b917973/bike/main/_0000_33-Brad-Binder-,-Bike_LG87472.png","secondary":null},"helmet":{"main":"https://photos.motogp.com/riders/3/d/3d28c407-da11-4657-8574-84972b917973/helmet/main/_0007_33-Brad-Binder,-Helmet_LG62061.jpg","secondary":null},"number":"https://photos.motogp.com/riders/5/a/5a4f166a-37e4-477a-93f3-4b752b9cf683/number/33-Brad-Binder.png","portrait":"https://photos.motogp.com/riders/1/5/15b3a3a6-74d2-406f-a920-b50afc30a645/portrait/_0006_33_Brad_Binder,-Rider_A7R1738.jpg"}},{"season":2020,"number":33,"sponsored_team":"Red Bull KTM Factory Racing","team":{"id":"0b6cc118-a286-4343-9020-fb53c6f77c1a","constructor":{"id":"5ecd8db7-d87b-4b3e-87b6-1f72ee457ede","name":"KTM","legacy_id":298},"name":"Red Bull KTM Factory Racing","legacy_id":23,"color":"#e05a17","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/4/4/447bf79b-9960-40f0-996d-a2f5ac920650/RedBullKTM.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":"BB33","current":false,"pictures":{"profile":{"main":"https://photos.motogp.com/riders/7/2/72d71149-e0e3-4da5-a898-5ee07d985500/profile/main/1_0008_33-Brad-Binder,-Body_DSC5642.png","secondary":null},"bike":{"main":"https://photos.motogp.com/riders/9/e/9e2006a0-d03c-4839-87e9-2dd1fad9dc61/bike/main/33-Brad-Binder.png","secondary":null},"helmet":{"main":"https://photos.motogp.com/riders/1/0/10ce2a6e-4285-43a3-bea2-b804d00d1d4e/helmet/main/33-Brad-Binder.jpg","secondary":null},"number":"https://photos.motogp.com/riders/3/7/37d6dbf5-2f84-4c1f-828a-407719471968/number/33_Brad_Binder.png","portrait":"https://photos.motogp.com/riders/c/2/c2e1a835-df0e-4a46-97b1-d4751bb0b604/portrait/33_Brad_Binder.jpg"}},{"season":2019,"number":41,"sponsored_team":"Red Bull KTM Ajo","team":{"id":"3c73638c-cffb-4e42-a6ca-b6506ab6bf5c","constructor":{"id":"791160c2-6d2f-47ad-8d87-29e4f729073a","name":"Kalex","legacy_id":447},"name":"Red Bull KTM Ajo","legacy_id":113,"color":"#e13f00","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/5/8/582449b6-5434-4af3-9423-e50a6bc4fe40/37-Augusto-Fernandez-Bike-Moto2DSC03002.png","published":true},"category":{"id":"ea854a67-73a4-4a28-ac77-d67b3b2a530a","name":"Moto2","legacy_id":2},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2019/riders/moto2/bike/original/rider_7646_1551780692.jpg","secondary":null},"helmet":{"main":null,"secondary":null},"number":"https://photos.motogp.com/2020/dorsales/others/41.png","portrait":"https://photos.motogp.com/2019/riders/moto2/grid/original/rider_7646_1551890077.jpg"}},{"season":2018,"number":41,"sponsored_team":"Red Bull KTM Ajo","team":{"id":"3c73638c-cffb-4e42-a6ca-b6506ab6bf5c","constructor":{"id":"791160c2-6d2f-47ad-8d87-29e4f729073a","name":"Kalex","legacy_id":447},"name":"Red Bull KTM Ajo","legacy_id":113,"color":"#e13f00","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/5/8/582449b6-5434-4af3-9423-e50a6bc4fe40/37-Augusto-Fernandez-Bike-Moto2DSC03002.png","published":true},"category":{"id":"ea854a67-73a4-4a28-ac77-d67b3b2a530a","name":"Moto2","legacy_id":2},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2018/riders/moto2/bike/original/rider_7646_1521135566.jpg","secondary":null},"helmet":{"main":"https://photos.motogp.com/2018/riders/moto2/helmet/original/rider_7646_1521312613.jpg","secondary":null},"number":"https://photos.motogp.com/2020/dorsales/others/41.png","portrait":"https://photos.motogp.com/2018/riders/moto2/grid/original/rider_7646_1521039345.jpg"}},{"season":2017,"number":41,"sponsored_team":"Red Bull KTM Ajo","team":{"id":"3c73638c-cffb-4e42-a6ca-b6506ab6bf5c","constructor":{"id":"791160c2-6d2f-47ad-8d87-29e4f729073a","name":"Kalex","legacy_id":447},"name":"Red Bull KTM Ajo","legacy_id":113,"color":"#e13f00","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/5/8/582449b6-5434-4af3-9423-e50a6bc4fe40/37-Augusto-Fernandez-Bike-Moto2DSC03002.png","published":true},"category":{"id":"ea854a67-73a4-4a28-ac77-d67b3b2a530a","name":"Moto2","legacy_id":2},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2017/riders/moto2/bike/original/rider_7646_1490204531.jpg","secondary":null},"helmet":{"main":"https://photos.motogp.com/2017/riders/moto2/helmet/original/rider_7646_1490546480.jpg","secondary":null},"number":null,"portrait":"https://photos.motogp.com/2017/riders/moto2/grid/original/rider_7646_1490198334.jpg"}},{"season":2016,"number":41,"sponsored_team":"Red Bull KTM Ajo","team":{"id":"3c73638c-cffb-4e42-a6ca-b6506ab6bf5c","constructor":{"id":"791160c2-6d2f-47ad-8d87-29e4f729073a","name":"Kalex","legacy_id":447},"name":"Red Bull KTM Ajo","legacy_id":113,"color":"#e13f00","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/5/8/582449b6-5434-4af3-9423-e50a6bc4fe40/37-Augusto-Fernandez-Bike-Moto2DSC03002.png","published":true},"category":{"id":"1ab203aa-e292-4842-8bed-971911357af1","name":"Moto3","legacy_id":1},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2016/riders/moto3/bike/original/rider_7646_1458823968.jpg","secondary":null},"helmet":{"main":"https://photos.motogp.com/2016/riders/moto3/helmet/original/rider_7646_1458821875.jpg","secondary":null},"number":null,"portrait":"https://photos.motogp.com/2016/riders/moto3/grid/original/rider_7646_1458821720.jpg"}},{"season":2015,"number":41,"sponsored_team":"Red Bull KTM Ajo","team":{"id":"3c73638c-cffb-4e42-a6ca-b6506ab6bf5c","constructor":{"id":"791160c2-6d2f-47ad-8d87-29e4f729073a","name":"Kalex","legacy_id":447},"name":"Red Bull KTM Ajo","legacy_id":113,"color":"#e13f00","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/5/8/582449b6-5434-4af3-9423-e50a6bc4fe40/37-Augusto-Fernandez-Bike-Moto2DSC03002.png","published":true},"category":{"id":"1ab203aa-e292-4842-8bed-971911357af1","name":"Moto3","legacy_id":1},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/7646"}},{"season":2014,"number":41,"sponsored_team":"Ambrogio Racing","team":{"id":"71be6c5c-a632-4a4a-b2d2-b50be6afc353","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Ambrogio Racing","legacy_id":109,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/moto3/original/team_bike_109_1584101114.jpg","published":true},"category":{"id":"1ab203aa-e292-4842-8bed-971911357af1","name":"Moto3","legacy_id":1},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/7646"}},{"season":2013,"number":41,"sponsored_team":"Ambrogio Racing","team":{"id":"71be6c5c-a632-4a4a-b2d2-b50be6afc353","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Ambrogio Racing","legacy_id":109,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/moto3/original/team_bike_109_1584101114.jpg","published":true},"category":{"id":"1ab203aa-e292-4842-8bed-971911357af1","name":"Moto3","legacy_id":1},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/7646"}},{"season":2012,"number":41,"sponsored_team":"RW Racing GP","team":{"id":"58db3bae-b7c2-4ad5-9f4e-0280a4e9b1c8","constructor":{"id":"5fe6c749-0a3c-43e7-a079-555d0fc53689","name":"NTS","legacy_id":550},"name":"RW Racing GP","legacy_id":203,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/moto2/original/team_bike_203_1583857101.jpg","published":true},"category":{"id":"1ab203aa-e292-4842-8bed-971911357af1","name":"Moto3","legacy_id":1},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/7646"}}],"biography":{"text":"South African Brad Binder is a former Red Bull MotoGP Rookie and his star moment in the Cup came in Estoril in 2011 when he won the race from pole to flag by a margin of 15 seconds. That year he also rode his first 125 GP, before competing in the Moto3™ World Championship full-time for the first time in 2012. His first podiums came in 2014, before a move to the Red Bull KTM Ajo squad for 2015 saw him add four more podiums. For 2016 he and the Ajo team remained together and took the Moto3™ title in stunning style, winning it in the Aragon GP. Binder moved to Moto2™ with the Red Bull KTM Ajo team in 2017, racing the new KTM chassis in the intermediate class, but found the first half of his season marred by an arm injury. Forced to be patient as he fought back to full strength, once he was there the South African ended the season with three podiums in a row. In 2018, Binder stayed with Red Bull KTM Ajo and managed to secure his first three Moto2™ victories, finishing third in the Championship. A troubled KTM chassis meant one of the title favourites had to wait until Round 8 for a 2019 rostrum, but Binder’s latter half of the season form was sensational, missing the podium just three times in 12 races, winning five – including the last three. Binder eventually missed out on the Moto2™ title by just three points but he moved up to Red Bull KTM Factory Racing as one of the most exciting talents on the MotoGP™ grid in 2020. And he did not disappoint, taking victory at the Czech GP, becoming the first rookie since Marc Marquez to win a race. He didn’t quite scale those heights again for the rest of the season, but he did claim the Rookie of the Year award following a string of impressive performances, which saw him record four more Top 10 finishes and 11th in the Championship. Binder added MotoGP™ win number two to his resumé during 2021 and did so in breathtaking circumstances. The South African rolled the dice as the rain started to fall in Austria and fortune certainly favoured the brave as he clinched his only podium of the season. Consistency saw the number 33 end sixth in the standings, he'll be hoping to at least break into the top five in 2022.","media":{"video":null,"picture":"https://photos.motogp.com/riders/8/b/8ba618fb-f000-406a-a168-08b4d76a2ae5/biography/33_Brad_Binder_DSC0948.jpg"}},"legend":false,"legacy_id":7646,"merchandise_url":"https://store.motogp.com/en/brad-binder-33-merchandise-clothing?utm_source=motogp.com&utm_medium=Link&utm_content=BB33&utm_campaign=Store&o=motogp-riders-stats","published":true,"injured":false,"banned":false,"wildcard":false} \ No newline at end of file +{ + "id": "ade5ef32-01ea-487c-95ca-491544a668ed", + "name": "Brad", + "surname": "Binder", + "nickname": null, + "country": { + "iso": "ZA", + "name": "South Africa" + }, + "birth_city": "Potchefstroom", + "birth_date": "1995-08-11", + "physical_attributes": { + "height": 170, + "weight": 63 + }, + "career": [ + { + "season": 2022, + "number": 33, + "sponsored_team": "Red Bull KTM Factory Racing", + "team": { + "id": "0b6cc118-a286-4343-9020-fb53c6f77c1a", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "Red Bull KTM Factory Racing", + "legacy_id": 23, + "color": "#e05a17", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/4/4/447bf79b-9960-40f0-996d-a2f5ac920650/RedBullKTM.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "BB33", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/a/6/a66ef0d3-7064-4321-a85d-5ca0631565ef/profile/main/33_Brad_Binder.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/a/6/a66ef0d3-7064-4321-a85d-5ca0631565ef/bike/main/_0007_33-Brad-Binder-BikeDSC06427.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/a/6/a66ef0d3-7064-4321-a85d-5ca0631565ef/helmet/main/33-Brad-Binder.jpg", + "secondary": null + }, + "number": "http://localhost:8089/riders/5/a/5a4f166a-37e4-477a-93f3-4b752b9cf683/number/33-Brad-Binder.png", + "portrait": "http://localhost:8089/riders/a/6/a66ef0d3-7064-4321-a85d-5ca0631565ef/portrait/33_Brad_Binder.jpg" + } + }, + { + "season": 2021, + "number": 33, + "sponsored_team": "Red Bull KTM Factory Racing", + "team": { + "id": "0b6cc118-a286-4343-9020-fb53c6f77c1a", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "Red Bull KTM Factory Racing", + "legacy_id": 23, + "color": "#e05a17", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/4/4/447bf79b-9960-40f0-996d-a2f5ac920650/RedBullKTM.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "BB33", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/3/d/3d28c407-da11-4657-8574-84972b917973/profile/main/_0006_33-Brad-Binder,-Rider_A7R1742.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/3/d/3d28c407-da11-4657-8574-84972b917973/bike/main/_0000_33-Brad-Binder-,-Bike_LG87472.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/3/d/3d28c407-da11-4657-8574-84972b917973/helmet/main/_0007_33-Brad-Binder,-Helmet_LG62061.jpg", + "secondary": null + }, + "number": "http://localhost:8089/riders/5/a/5a4f166a-37e4-477a-93f3-4b752b9cf683/number/33-Brad-Binder.png", + "portrait": "http://localhost:8089/riders/1/5/15b3a3a6-74d2-406f-a920-b50afc30a645/portrait/_0006_33_Brad_Binder,-Rider_A7R1738.jpg" + } + }, + { + "season": 2020, + "number": 33, + "sponsored_team": "Red Bull KTM Factory Racing", + "team": { + "id": "0b6cc118-a286-4343-9020-fb53c6f77c1a", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "Red Bull KTM Factory Racing", + "legacy_id": 23, + "color": "#e05a17", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/4/4/447bf79b-9960-40f0-996d-a2f5ac920650/RedBullKTM.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "BB33", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/7/2/72d71149-e0e3-4da5-a898-5ee07d985500/profile/main/1_0008_33-Brad-Binder,-Body_DSC5642.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/9/e/9e2006a0-d03c-4839-87e9-2dd1fad9dc61/bike/main/33-Brad-Binder.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/1/0/10ce2a6e-4285-43a3-bea2-b804d00d1d4e/helmet/main/33-Brad-Binder.jpg", + "secondary": null + }, + "number": "http://localhost:8089/riders/3/7/37d6dbf5-2f84-4c1f-828a-407719471968/number/33_Brad_Binder.png", + "portrait": "http://localhost:8089/riders/c/2/c2e1a835-df0e-4a46-97b1-d4751bb0b604/portrait/33_Brad_Binder.jpg" + } + }, + { + "season": 2019, + "number": 41, + "sponsored_team": "Red Bull KTM Ajo", + "team": { + "id": "3c73638c-cffb-4e42-a6ca-b6506ab6bf5c", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "Red Bull KTM Ajo", + "legacy_id": 113, + "color": "#e13f00", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/5/8/582449b6-5434-4af3-9423-e50a6bc4fe40/37-Augusto-Fernandez-Bike-Moto2DSC03002.png", + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2019/riders/moto2/bike/original/rider_7646_1551780692.jpg", + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": "http://localhost:8089/2020/dorsales/others/41.png", + "portrait": "http://localhost:8089/2019/riders/moto2/grid/original/rider_7646_1551890077.jpg" + } + }, + { + "season": 2018, + "number": 41, + "sponsored_team": "Red Bull KTM Ajo", + "team": { + "id": "3c73638c-cffb-4e42-a6ca-b6506ab6bf5c", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "Red Bull KTM Ajo", + "legacy_id": 113, + "color": "#e13f00", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/5/8/582449b6-5434-4af3-9423-e50a6bc4fe40/37-Augusto-Fernandez-Bike-Moto2DSC03002.png", + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2018/riders/moto2/bike/original/rider_7646_1521135566.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2018/riders/moto2/helmet/original/rider_7646_1521312613.jpg", + "secondary": null + }, + "number": "http://localhost:8089/2020/dorsales/others/41.png", + "portrait": "http://localhost:8089/2018/riders/moto2/grid/original/rider_7646_1521039345.jpg" + } + }, + { + "season": 2017, + "number": 41, + "sponsored_team": "Red Bull KTM Ajo", + "team": { + "id": "3c73638c-cffb-4e42-a6ca-b6506ab6bf5c", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "Red Bull KTM Ajo", + "legacy_id": 113, + "color": "#e13f00", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/5/8/582449b6-5434-4af3-9423-e50a6bc4fe40/37-Augusto-Fernandez-Bike-Moto2DSC03002.png", + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2017/riders/moto2/bike/original/rider_7646_1490204531.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2017/riders/moto2/helmet/original/rider_7646_1490546480.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2017/riders/moto2/grid/original/rider_7646_1490198334.jpg" + } + }, + { + "season": 2016, + "number": 41, + "sponsored_team": "Red Bull KTM Ajo", + "team": { + "id": "3c73638c-cffb-4e42-a6ca-b6506ab6bf5c", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "Red Bull KTM Ajo", + "legacy_id": 113, + "color": "#e13f00", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/5/8/582449b6-5434-4af3-9423-e50a6bc4fe40/37-Augusto-Fernandez-Bike-Moto2DSC03002.png", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2016/riders/moto3/bike/original/rider_7646_1458823968.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2016/riders/moto3/helmet/original/rider_7646_1458821875.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2016/riders/moto3/grid/original/rider_7646_1458821720.jpg" + } + }, + { + "season": 2015, + "number": 41, + "sponsored_team": "Red Bull KTM Ajo", + "team": { + "id": "3c73638c-cffb-4e42-a6ca-b6506ab6bf5c", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "Red Bull KTM Ajo", + "legacy_id": 113, + "color": "#e13f00", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/5/8/582449b6-5434-4af3-9423-e50a6bc4fe40/37-Augusto-Fernandez-Bike-Moto2DSC03002.png", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7646" + } + }, + { + "season": 2014, + "number": 41, + "sponsored_team": "Ambrogio Racing", + "team": { + "id": "71be6c5c-a632-4a4a-b2d2-b50be6afc353", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Ambrogio Racing", + "legacy_id": 109, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_109_1584101114.jpg", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7646" + } + }, + { + "season": 2013, + "number": 41, + "sponsored_team": "Ambrogio Racing", + "team": { + "id": "71be6c5c-a632-4a4a-b2d2-b50be6afc353", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Ambrogio Racing", + "legacy_id": 109, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_109_1584101114.jpg", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7646" + } + }, + { + "season": 2012, + "number": 41, + "sponsored_team": "RW Racing GP", + "team": { + "id": "58db3bae-b7c2-4ad5-9f4e-0280a4e9b1c8", + "constructor": { + "id": "5fe6c749-0a3c-43e7-a079-555d0fc53689", + "name": "NTS", + "legacy_id": 550 + }, + "name": "RW Racing GP", + "legacy_id": 203, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto2/original/team_bike_203_1583857101.jpg", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7646" + } + } + ], + "biography": { + "text": "South African Brad Binder is a former Red Bull MotoGP Rookie and his star moment in the Cup came in Estoril in 2011 when he won the race from pole to flag by a margin of 15 seconds. That year he also rode his first 125 GP, before competing in the Moto3™ World Championship full-time for the first time in 2012. His first podiums came in 2014, before a move to the Red Bull KTM Ajo squad for 2015 saw him add four more podiums. For 2016 he and the Ajo team remained together and took the Moto3™ title in stunning style, winning it in the Aragon GP. Binder moved to Moto2™ with the Red Bull KTM Ajo team in 2017, racing the new KTM chassis in the intermediate class, but found the first half of his season marred by an arm injury. Forced to be patient as he fought back to full strength, once he was there the South African ended the season with three podiums in a row. In 2018, Binder stayed with Red Bull KTM Ajo and managed to secure his first three Moto2™ victories, finishing third in the Championship. A troubled KTM chassis meant one of the title favourites had to wait until Round 8 for a 2019 rostrum, but Binder’s latter half of the season form was sensational, missing the podium just three times in 12 races, winning five – including the last three. Binder eventually missed out on the Moto2™ title by just three points but he moved up to Red Bull KTM Factory Racing as one of the most exciting talents on the MotoGP™ grid in 2020. And he did not disappoint, taking victory at the Czech GP, becoming the first rookie since Marc Marquez to win a race. He didn’t quite scale those heights again for the rest of the season, but he did claim the Rookie of the Year award following a string of impressive performances, which saw him record four more Top 10 finishes and 11th in the Championship. Binder added MotoGP™ win number two to his resumé during 2021 and did so in breathtaking circumstances. The South African rolled the dice as the rain started to fall in Austria and fortune certainly favoured the brave as he clinched his only podium of the season. Consistency saw the number 33 end sixth in the standings, he'll be hoping to at least break into the top five in 2022.", + "media": { + "video": null, + "picture": "http://localhost:8089/riders/8/b/8ba618fb-f000-406a-a168-08b4d76a2ae5/biography/33_Brad_Binder_DSC0948.jpg" + } + }, + "legend": false, + "legacy_id": 7646, + "merchandise_url": "http://localhost:8089/en/brad-binder-33-merchandise-clothing?utm_source=localhost:8089&utm_medium=Link&utm_content=BB33&utm_campaign=Store&o=motogp-riders-stats", + "published": true, + "injured": false, + "banned": false, + "wildcard": false +} \ No newline at end of file diff --git a/src/test/resources/__files/rider/7741.json b/src/test/resources/__files/rider/7741.json index 9bf2591..7f192dd 100644 --- a/src/test/resources/__files/rider/7741.json +++ b/src/test/resources/__files/rider/7741.json @@ -29,7 +29,7 @@ "legacy_id": 19, "color": "#183dc7", "text_color": "#ffffff", - "picture": "https://photos.motogp.com/teams/9/1/91699bb4-f33d-40de-b995-4f5e120ff74d/Yamaha.png", + "picture": "http://localhost:8089/teams/9/1/91699bb4-f33d-40de-b995-4f5e120ff74d/Yamaha.png", "published": true }, "category": { @@ -42,19 +42,19 @@ "current": false, "pictures": { "profile": { - "main": "https://photos.motogp.com/riders/3/b/3b9efa76-b5d1-4df5-93c1-bc213c492c93/profile/main/21_Franco_Morbidelli_MotoGP_Rider_DS_5702.png", + "main": "http://localhost:8089/riders/3/b/3b9efa76-b5d1-4df5-93c1-bc213c492c93/profile/main/21_Franco_Morbidelli_MotoGP_Rider_DS_5702.png", "secondary": null }, "bike": { - "main": "https://photos.motogp.com/riders/0/3/03ac78fa-bc59-4326-af4f-11312eb210f7/bike/main/_0002_21-Franco-Morbidelli-Bike-MotoGPDSC04251.png", + "main": "http://localhost:8089/riders/0/3/03ac78fa-bc59-4326-af4f-11312eb210f7/bike/main/_0002_21-Franco-Morbidelli-Bike-MotoGPDSC04251.png", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/riders/3/b/3b9efa76-b5d1-4df5-93c1-bc213c492c93/helmet/main/21-Franco-Morbidelli.jpg", + "main": "http://localhost:8089/riders/3/b/3b9efa76-b5d1-4df5-93c1-bc213c492c93/helmet/main/21-Franco-Morbidelli.jpg", "secondary": null }, - "number": "https://photos.motogp.com/riders/1/d/1da10d15-c270-4ef4-8276-3bfbfa029eb3/number/21-Franco-Morbidelli.png", - "portrait": "https://photos.motogp.com/riders/3/b/3b9efa76-b5d1-4df5-93c1-bc213c492c93/portrait/21-Franco-Morbidelli.jpg" + "number": "http://localhost:8089/riders/1/d/1da10d15-c270-4ef4-8276-3bfbfa029eb3/number/21-Franco-Morbidelli.png", + "portrait": "http://localhost:8089/riders/3/b/3b9efa76-b5d1-4df5-93c1-bc213c492c93/portrait/21-Franco-Morbidelli.jpg" } }, { @@ -72,7 +72,7 @@ "legacy_id": 19, "color": "#183dc7", "text_color": "#ffffff", - "picture": "https://photos.motogp.com/teams/9/1/91699bb4-f33d-40de-b995-4f5e120ff74d/Yamaha.png", + "picture": "http://localhost:8089/teams/9/1/91699bb4-f33d-40de-b995-4f5e120ff74d/Yamaha.png", "published": true }, "category": { @@ -85,19 +85,19 @@ "current": false, "pictures": { "profile": { - "main": "https://photos.motogp.com/riders/e/6/e62d9096-68ee-4a3e-b1b1-733a1d91c988/profile/main/_0008_21-Franco-Morbidelli,-Rider_A7R1691.png", + "main": "http://localhost:8089/riders/e/6/e62d9096-68ee-4a3e-b1b1-733a1d91c988/profile/main/_0008_21-Franco-Morbidelli,-Rider_A7R1691.png", "secondary": null }, "bike": { - "main": "https://photos.motogp.com/riders/e/6/e62d9096-68ee-4a3e-b1b1-733a1d91c988/bike/main/_0008_21-Franco-Morbidelli,-Bike_LG87440.png", + "main": "http://localhost:8089/riders/e/6/e62d9096-68ee-4a3e-b1b1-733a1d91c988/bike/main/_0008_21-Franco-Morbidelli,-Bike_LG87440.png", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/riders/e/6/e62d9096-68ee-4a3e-b1b1-733a1d91c988/helmet/main/_0010_21_Franco_Morbidelli,_Helmet_LG61759.jpg", + "main": "http://localhost:8089/riders/e/6/e62d9096-68ee-4a3e-b1b1-733a1d91c988/helmet/main/_0010_21_Franco_Morbidelli,_Helmet_LG61759.jpg", "secondary": null }, - "number": "https://photos.motogp.com/riders/1/d/1da10d15-c270-4ef4-8276-3bfbfa029eb3/number/21-Franco-Morbidelli.png", - "portrait": "https://photos.motogp.com/riders/6/0/60c56f6e-59be-49fd-9ed9-62021033657e/portrait/_0009_21-Franco-Morbidelli,-Rider_A7R1687.jpg" + "number": "http://localhost:8089/riders/1/d/1da10d15-c270-4ef4-8276-3bfbfa029eb3/number/21-Franco-Morbidelli.png", + "portrait": "http://localhost:8089/riders/6/0/60c56f6e-59be-49fd-9ed9-62021033657e/portrait/_0009_21-Franco-Morbidelli,-Rider_A7R1687.jpg" } }, { @@ -115,7 +115,7 @@ "legacy_id": 19, "color": "#183dc7", "text_color": "#ffffff", - "picture": "https://photos.motogp.com/teams/9/1/91699bb4-f33d-40de-b995-4f5e120ff74d/Yamaha.png", + "picture": "http://localhost:8089/teams/9/1/91699bb4-f33d-40de-b995-4f5e120ff74d/Yamaha.png", "published": true }, "category": { @@ -128,19 +128,19 @@ "current": false, "pictures": { "profile": { - "main": "https://photos.motogp.com/riders/e/6/e62d9096-68ee-4a3e-b1b1-733a1d91c988/profile/main/_0008_21-Franco-Morbidelli,-Rider_A7R1691.png", + "main": "http://localhost:8089/riders/e/6/e62d9096-68ee-4a3e-b1b1-733a1d91c988/profile/main/_0008_21-Franco-Morbidelli,-Rider_A7R1691.png", "secondary": null }, "bike": { - "main": "https://photos.motogp.com/riders/e/6/e62d9096-68ee-4a3e-b1b1-733a1d91c988/bike/main/_0008_21-Franco-Morbidelli,-Bike_LG87440.png", + "main": "http://localhost:8089/riders/e/6/e62d9096-68ee-4a3e-b1b1-733a1d91c988/bike/main/_0008_21-Franco-Morbidelli,-Bike_LG87440.png", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/riders/e/6/e62d9096-68ee-4a3e-b1b1-733a1d91c988/helmet/main/_0010_21_Franco_Morbidelli,_Helmet_LG61759.jpg", + "main": "http://localhost:8089/riders/e/6/e62d9096-68ee-4a3e-b1b1-733a1d91c988/helmet/main/_0010_21_Franco_Morbidelli,_Helmet_LG61759.jpg", "secondary": null }, - "number": "https://photos.motogp.com/riders/1/d/1da10d15-c270-4ef4-8276-3bfbfa029eb3/number/21-Franco-Morbidelli.png", - "portrait": "https://photos.motogp.com/riders/6/0/60c56f6e-59be-49fd-9ed9-62021033657e/portrait/_0009_21-Franco-Morbidelli,-Rider_A7R1687.jpg" + "number": "http://localhost:8089/riders/1/d/1da10d15-c270-4ef4-8276-3bfbfa029eb3/number/21-Franco-Morbidelli.png", + "portrait": "http://localhost:8089/riders/6/0/60c56f6e-59be-49fd-9ed9-62021033657e/portrait/_0009_21-Franco-Morbidelli,-Rider_A7R1687.jpg" } }, { @@ -158,7 +158,7 @@ "legacy_id": 46, "color": "#1e4374", "text_color": "#ffffff", - "picture": "https://photos.motogp.com/teams/7/0/7064589f-b982-4976-a29c-9c72737a40cb/Petronas-Yamaha_SRT.png", + "picture": "http://localhost:8089/teams/7/0/7064589f-b982-4976-a29c-9c72737a40cb/Petronas-Yamaha_SRT.png", "published": true }, "category": { @@ -171,19 +171,19 @@ "current": false, "pictures": { "profile": { - "main": "https://photos.motogp.com/riders/4/a/4af5b878-b9fe-4a5d-837b-d4517f382ee0/profile/main/1_0005_21-Franco-Morbidelli-ITA,-Body_DSC6833.png", + "main": "http://localhost:8089/riders/4/a/4af5b878-b9fe-4a5d-837b-d4517f382ee0/profile/main/1_0005_21-Franco-Morbidelli-ITA,-Body_DSC6833.png", "secondary": null }, "bike": { - "main": "https://photos.motogp.com/riders/9/7/97363921-b1f6-4d4d-a021-3678ffae869e/bike/main/21-Franco-Morbidelli.png", + "main": "http://localhost:8089/riders/9/7/97363921-b1f6-4d4d-a021-3678ffae869e/bike/main/21-Franco-Morbidelli.png", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/riders/6/8/688710e9-4a7f-4640-a868-14d2b5f6ab2d/helmet/main/21-Franco-Morbidelli.jpg", + "main": "http://localhost:8089/riders/6/8/688710e9-4a7f-4640-a868-14d2b5f6ab2d/helmet/main/21-Franco-Morbidelli.jpg", "secondary": null }, - "number": "https://photos.motogp.com/2019/dorsales/3/7741.png", - "portrait": "https://photos.motogp.com/riders/6/2/62a86d43-a090-48d6-bbe2-ecc78cbe7b63/portrait/21_Franco_Morbidelli.jpg" + "number": "http://localhost:8089/2019/dorsales/3/7741.png", + "portrait": "http://localhost:8089/riders/6/2/62a86d43-a090-48d6-bbe2-ecc78cbe7b63/portrait/21_Franco_Morbidelli.jpg" } }, { @@ -201,7 +201,7 @@ "legacy_id": 46, "color": "#1e4374", "text_color": "#ffffff", - "picture": "https://photos.motogp.com/teams/7/0/7064589f-b982-4976-a29c-9c72737a40cb/Petronas-Yamaha_SRT.png", + "picture": "http://localhost:8089/teams/7/0/7064589f-b982-4976-a29c-9c72737a40cb/Petronas-Yamaha_SRT.png", "published": true }, "category": { @@ -218,15 +218,15 @@ "secondary": null }, "bike": { - "main": "https://photos.motogp.com/2019/riders/motogp/bike/original/rider_7741_1552058366.jpg", + "main": "http://localhost:8089/2019/riders/motogp/bike/original/rider_7741_1552058366.jpg", "secondary": null }, "helmet": { "main": null, "secondary": null }, - "number": "https://photos.motogp.com/2019/dorsales/3/7741.png", - "portrait": "https://photos.motogp.com/2019/riders/motogp/grid/original/rider_7741_1554806124.jpg" + "number": "http://localhost:8089/2019/dorsales/3/7741.png", + "portrait": "http://localhost:8089/2019/riders/motogp/grid/original/rider_7741_1554806124.jpg" } }, { @@ -244,7 +244,7 @@ "legacy_id": 46, "color": "#1e4374", "text_color": "#ffffff", - "picture": "https://photos.motogp.com/teams/7/0/7064589f-b982-4976-a29c-9c72737a40cb/Petronas-Yamaha_SRT.png", + "picture": "http://localhost:8089/teams/7/0/7064589f-b982-4976-a29c-9c72737a40cb/Petronas-Yamaha_SRT.png", "published": true }, "category": { @@ -261,15 +261,15 @@ "secondary": null }, "bike": { - "main": "https://photos.motogp.com/2018/riders/motogp/bike/original/rider_7741_1521313140.jpg", + "main": "http://localhost:8089/2018/riders/motogp/bike/original/rider_7741_1521313140.jpg", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/2018/riders/motogp/helmet/original/rider_7741_1521312662.jpg", + "main": "http://localhost:8089/2018/riders/motogp/helmet/original/rider_7741_1521312662.jpg", "secondary": null }, - "number": "https://photos.motogp.com/2018/dorsales/3/7741.png", - "portrait": "https://photos.motogp.com/2018/riders/motogp/grid/original/rider_7741_1549618398.jpg" + "number": "http://localhost:8089/2018/dorsales/3/7741.png", + "portrait": "http://localhost:8089/2018/riders/motogp/grid/original/rider_7741_1549618398.jpg" } }, { @@ -287,7 +287,7 @@ "legacy_id": 205, "color": "#702538", "text_color": "#ffffff", - "picture": "https://photos.motogp.com/teams/6/9/6977e13c-7011-48d5-950d-ff1d077b4e20/22-Sam-Lowes-Bike-Moto2DSC03544.png", + "picture": "http://localhost:8089/teams/6/9/6977e13c-7011-48d5-950d-ff1d077b4e20/22-Sam-Lowes-Bike-Moto2DSC03544.png", "published": true }, "category": { @@ -304,15 +304,15 @@ "secondary": null }, "bike": { - "main": "https://photos.motogp.com/2017/riders/moto2/bike/original/rider_7741_1490204491.jpg", + "main": "http://localhost:8089/2017/riders/moto2/bike/original/rider_7741_1490204491.jpg", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/2017/riders/moto2/helmet/original/rider_7741_1490546518.jpg", + "main": "http://localhost:8089/2017/riders/moto2/helmet/original/rider_7741_1490546518.jpg", "secondary": null }, "number": null, - "portrait": "https://photos.motogp.com/2017/riders/moto2/grid/original/rider_7741_1490198451.jpg" + "portrait": "http://localhost:8089/2017/riders/moto2/grid/original/rider_7741_1490198451.jpg" } }, { @@ -330,7 +330,7 @@ "legacy_id": null, "color": "#ff8600", "text_color": null, - "picture": "https://photos.motogp.com/teams/b/5/b5442dd5-0102-493a-909a-25d9dc015aae/team_bike_209_1583857097-.jpg", + "picture": "http://localhost:8089/teams/b/5/b5442dd5-0102-493a-909a-25d9dc015aae/team_bike_209_1583857097-.jpg", "published": true }, "category": { @@ -347,15 +347,15 @@ "secondary": null }, "bike": { - "main": "https://photos.motogp.com/2016/riders/moto2/bike/original/rider_7741_1458824280.jpg", + "main": "http://localhost:8089/2016/riders/moto2/bike/original/rider_7741_1458824280.jpg", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/2016/riders/moto2/helmet/original/rider_7741_1458821567.jpg", + "main": "http://localhost:8089/2016/riders/moto2/helmet/original/rider_7741_1458821567.jpg", "secondary": null }, "number": null, - "portrait": "https://photos.motogp.com/2016/riders/moto2/grid/original/rider_7741_1458821455.jpg" + "portrait": "http://localhost:8089/2016/riders/moto2/grid/original/rider_7741_1458821455.jpg" } }, { @@ -373,7 +373,7 @@ "legacy_id": null, "color": "#ff8600", "text_color": null, - "picture": "https://photos.motogp.com/teams/b/5/b5442dd5-0102-493a-909a-25d9dc015aae/team_bike_209_1583857097-.jpg", + "picture": "http://localhost:8089/teams/b/5/b5442dd5-0102-493a-909a-25d9dc015aae/team_bike_209_1583857097-.jpg", "published": true }, "category": { @@ -398,7 +398,7 @@ "secondary": null }, "number": null, - "portrait": "https://www.motogp.com/en/api/rider/photo/grid/old/7741" + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7741" } }, { @@ -416,7 +416,7 @@ "legacy_id": null, "color": "#ff8600", "text_color": null, - "picture": "https://photos.motogp.com/teams/b/5/b5442dd5-0102-493a-909a-25d9dc015aae/team_bike_209_1583857097-.jpg", + "picture": "http://localhost:8089/teams/b/5/b5442dd5-0102-493a-909a-25d9dc015aae/team_bike_209_1583857097-.jpg", "published": true }, "category": { @@ -441,7 +441,7 @@ "secondary": null }, "number": null, - "portrait": "https://www.motogp.com/en/api/rider/photo/grid/old/7741" + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7741" } }, { @@ -459,7 +459,7 @@ "legacy_id": null, "color": "#ff8600", "text_color": null, - "picture": "https://photos.motogp.com/teams/b/5/b5442dd5-0102-493a-909a-25d9dc015aae/team_bike_209_1583857097-.jpg", + "picture": "http://localhost:8089/teams/b/5/b5442dd5-0102-493a-909a-25d9dc015aae/team_bike_209_1583857097-.jpg", "published": true }, "category": { @@ -484,7 +484,7 @@ "secondary": null }, "number": null, - "portrait": "https://www.motogp.com/en/api/rider/photo/grid/old/7741" + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/7741" } } ], @@ -492,12 +492,12 @@ "text": "Born in Rome and now living in the motorsport-rich Tavullia, Franco Morbidelli took the Superstock 600 title in 2013 alongside World Championship wildcard outings in Moto2™ at Misano, Motegi and Valencia. He went on to sign with Italtrans Racing Team for a full campaign in 2014 and continued with them in 2015, making his podium debut in Indianapolis. Unfortunately a broken leg sustained during a motocross training session saw him miss several races after Brno, with Morbidelli returning to finish the season but far from fully fit. For 2016 he signed with the highly successful Estrella Galicia 0,0 Marc VDS team and took an incredible run of podium finishes, ending the year just outside the top three in the title fight after an impressive campaign. For 2017, Morbidelli stayed with EG0,0 Marc VDS and came out swinging to take the first three wins of the year - in the lead in the standings during the entire season and taking the title at the Malaysian GP...from STK600 to World Champion in four years. He moved into the premier class within the same EG 0,0 Marc VDS team in 2018 and took the Rookie of the Year honours. 2019 saw Morbidelli join Petronas Yamaha SRT, picking up a solid seven top six finishes. It got even better for the Italian as a masterclass in Misano saw him take a maiden MotoGP™ win, and he added two more in the Teruel and Valencia GPs for a joint best three race wins in 2020, with two more podium finishes seeing him leap to second in the Championship standings. That form saw him among the leading contenders for title glory in 2021, but a knee injury hampered his season. Returning to action at Misano, Morbidelli partnered Fabio Quartararo at Monster Energy Yamaha MotoGP after gaining promotion from Petronas Yamaha SRT, and the Italian will be a factory Yamaha rider until at least the end of 2023. ", "media": { "video": null, - "picture": "https://photos.motogp.com/riders/d/5/d537c43b-1318-441b-9966-31be233975c6/biography/21_Franco_Morbidelli_DSC1655.jpg" + "picture": "http://localhost:8089/riders/d/5/d537c43b-1318-441b-9966-31be233975c6/biography/21_Franco_Morbidelli_DSC1655.jpg" } }, "legend": false, "legacy_id": 7741, - "merchandise_url": "https://store.motogp.com/en/franco-morbidelli-21-merchandise?utm_source=motogp.com&utm_medium=Link&utm_content=FM21&utm_campaign=Store&o=motogp-riders-stats", + "merchandise_url": "http://localhost:8089/en/franco-morbidelli-21-merchandise?utm_source=localhost:8089&utm_medium=Link&utm_content=FM21&utm_campaign=Store&o=motogp-riders-stats", "published": true, "injured": false, "banned": false, diff --git a/src/test/resources/__files/rider/8049.json b/src/test/resources/__files/rider/8049.json index a31a596..8e4464d 100644 --- a/src/test/resources/__files/rider/8049.json +++ b/src/test/resources/__files/rider/8049.json @@ -1 +1,505 @@ -{"id":"b0c1fea6-2dd5-4e26-8a18-0ac9fe6870e4","name":"Jack","surname":"Miller","nickname":null,"country":{"iso":"AU","name":"Australia"},"birth_city":"Townsville","birth_date":"1995-01-18","physical_attributes":{"height":173,"weight":64},"career":[{"season":2022,"number":43,"sponsored_team":"Ducati Lenovo Team","team":{"id":"892fff2f-7402-4fbd-99fb-5fd567d8a80c","constructor":{"id":"38af1078-e2f1-4399-811c-1e98cf6f6150","name":"Ducati","legacy_id":110},"name":"Ducati Lenovo Team","legacy_id":15,"color":"#f92515","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/7/d/7da82702-139c-4a2c-8ee3-a1478cb43c37/ducatilenovo.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":"JM43","current":false,"pictures":{"profile":{"main":"https://photos.motogp.com/riders/a/5/a5febc67-0055-4a60-a5ec-ba061d9c1564/profile/main/43-Jack-Miller-Rider_DS_4907.png","secondary":null},"bike":{"main":"https://photos.motogp.com/riders/a/5/a5febc67-0055-4a60-a5ec-ba061d9c1564/bike/main/_0004_43-Jack-Miller_Bike45.png","secondary":null},"helmet":{"main":"https://photos.motogp.com/riders/a/5/a5febc67-0055-4a60-a5ec-ba061d9c1564/helmet/main/43-Jack-Miller-MotoGPLG6_5252.jpg","secondary":null},"number":"https://photos.motogp.com/riders/3/f/3f15f792-6edc-41cf-befb-415f9e666844/number/43-Jack-Miller.png","portrait":"https://photos.motogp.com/riders/a/5/a5febc67-0055-4a60-a5ec-ba061d9c1564/portrait/43-Jack_Miller_Rider_DS_4896.jpg"}},{"season":2021,"number":43,"sponsored_team":"Ducati Lenovo Team","team":{"id":"892fff2f-7402-4fbd-99fb-5fd567d8a80c","constructor":{"id":"38af1078-e2f1-4399-811c-1e98cf6f6150","name":"Ducati","legacy_id":110},"name":"Ducati Lenovo Team","legacy_id":15,"color":"#f92515","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/7/d/7da82702-139c-4a2c-8ee3-a1478cb43c37/ducatilenovo.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":"JM43","current":false,"pictures":{"profile":{"main":"https://photos.motogp.com/riders/a/2/a2a26c66-77ad-4aa0-b4da-7311ac9da21a/profile/main/_0003_43-Jack-Miller,-Rider_A7R1269.png","secondary":null},"bike":{"main":"https://photos.motogp.com/riders/a/2/a2a26c66-77ad-4aa0-b4da-7311ac9da21a/bike/main/_0005_43-Jack-Miller,-Bike_LG86961.png","secondary":null},"helmet":{"main":"https://photos.motogp.com/riders/a/2/a2a26c66-77ad-4aa0-b4da-7311ac9da21a/helmet/main/_0004_43-Jack-Miller-Helmet_LG61077.jpg","secondary":null},"number":"https://photos.motogp.com/riders/3/f/3f15f792-6edc-41cf-befb-415f9e666844/number/43-Jack-Miller.png","portrait":"https://photos.motogp.com/riders/8/4/84f567ec-452e-415a-b7d7-9a995102c235/portrait/_0003_43-Jack-Miller,Rider_A7R1259.jpg"}},{"season":2020,"number":43,"sponsored_team":"Pramac Racing","team":{"id":"612440fd-90eb-4823-bec9-f9e37520d00f","constructor":{"id":"38af1078-e2f1-4399-811c-1e98cf6f6150","name":"Ducati","legacy_id":110},"name":"Pramac Racing","legacy_id":32,"color":"#cc3333","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/f/0/f016bb93-2d0d-4e44-be2e-0b6a51e4cda8/pramacracing.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":"JM43","current":false,"pictures":{"profile":{"main":"https://photos.motogp.com/riders/3/8/3809aafd-66cb-475c-8085-ba8ecd1a6f21/profile/main/1_0014_43-Jack-Miller-AUS,-Body_DSC5879.png","secondary":null},"bike":{"main":"https://photos.motogp.com/riders/6/e/6ee87054-2b5a-49eb-8ab6-4e200286f110/bike/main/43-Jack-Miller.png","secondary":null},"helmet":{"main":"https://photos.motogp.com/riders/c/3/c3f7d3a9-a97d-41f7-b1bf-a550d4f59f0b/helmet/main/43-Jack-Miller.jpg","secondary":null},"number":"https://photos.motogp.com/riders/7/7/778d6146-6bdd-473b-bc1c-3627d091e907/number/43_Jack_Miller.png","portrait":"https://photos.motogp.com/riders/5/c/5c1471a5-5b75-4d4c-956d-5850e90083f0/portrait/43_Jack_Miller.jpg"}},{"season":2019,"number":43,"sponsored_team":"Pramac Racing","team":{"id":"612440fd-90eb-4823-bec9-f9e37520d00f","constructor":{"id":"38af1078-e2f1-4399-811c-1e98cf6f6150","name":"Ducati","legacy_id":110},"name":"Pramac Racing","legacy_id":32,"color":"#cc3333","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/f/0/f016bb93-2d0d-4e44-be2e-0b6a51e4cda8/pramacracing.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2019/riders/motogp/bike/original/rider_8049_1568365172.jpg","secondary":null},"helmet":{"main":null,"secondary":null},"number":"https://photos.motogp.com/2019/dorsales/3/8049.png","portrait":"https://photos.motogp.com/2019/riders/motogp/grid/original/rider_8049_1554806159.jpg"}},{"season":2018,"number":43,"sponsored_team":"Alma Pramac Racing","team":{"id":"671fb411-26f5-4692-b08e-6f7b88172b36","constructor":{"id":"38af1078-e2f1-4399-811c-1e98cf6f6150","name":"Ducati","legacy_id":110},"name":"Alma Pramac Racing","legacy_id":32,"color":"#bf4039","text_color":null,"picture":"https://photos.motogp.com/2020/teams/motogp/original/team_bike_32_1574329095.jpg","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2018/riders/motogp/bike/original/rider_8049_1521313150.jpg","secondary":null},"helmet":{"main":"https://photos.motogp.com/2018/riders/motogp/helmet/original/rider_8049_1521312680.jpg","secondary":null},"number":"https://photos.motogp.com/2018/dorsales/3/8049.png","portrait":"https://photos.motogp.com/2018/riders/motogp/grid/original/rider_8049_1521213993.jpg"}},{"season":2017,"number":43,"sponsored_team":"EG 0,0 Marc VDS","team":{"id":"2369c22c-90fb-4d77-8270-4df47c1fdf23","constructor":{"id":"791160c2-6d2f-47ad-8d87-29e4f729073a","name":"Kalex","legacy_id":447},"name":"ELF Marc VDS Racing Team","legacy_id":205,"color":"#702538","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/6/9/6977e13c-7011-48d5-950d-ff1d077b4e20/22-Sam-Lowes-Bike-Moto2DSC03544.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2017/riders/motogp/bike/original/rider_8049_1490377455.jpg","secondary":null},"helmet":{"main":"https://photos.motogp.com/2017/riders/motogp/helmet/original/rider_8049_1490543478.jpg","secondary":null},"number":null,"portrait":"https://photos.motogp.com/2017/riders/motogp/grid/original/rider_8049_1510764497.jpg"}},{"season":2016,"number":43,"sponsored_team":"Estrella Galicia 0,0 Marc VDS","team":{"id":"77a0174a-c84d-4955-a722-b39e4d8e4ce5","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"LCR Honda","legacy_id":17,"color":"#fafafa","text_color":"#323232","picture":"https://photos.motogp.com/teams/6/a/6ad36fc5-ecaa-437a-9324-f45420b4198b/LCR.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2016/riders/motogp/bike/original/rider_8049_1458324180.jpg","secondary":null},"helmet":{"main":"https://photos.motogp.com/2016/riders/motogp/helmet/original/rider_8049_1458324115.jpg","secondary":null},"number":null,"portrait":"https://photos.motogp.com/2016/riders/motogp/grid/original/rider_8049_1482313152.jpg"}},{"season":2015,"number":43,"sponsored_team":"LCR Honda","team":{"id":"77a0174a-c84d-4955-a722-b39e4d8e4ce5","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"LCR Honda","legacy_id":17,"color":"#fafafa","text_color":"#323232","picture":"https://photos.motogp.com/teams/6/a/6ad36fc5-ecaa-437a-9324-f45420b4198b/LCR.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/8049"}},{"season":2014,"number":8,"sponsored_team":"Red Bull KTM Ajo","team":{"id":"3c73638c-cffb-4e42-a6ca-b6506ab6bf5c","constructor":{"id":"791160c2-6d2f-47ad-8d87-29e4f729073a","name":"Kalex","legacy_id":447},"name":"Red Bull KTM Ajo","legacy_id":113,"color":"#e13f00","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/5/8/582449b6-5434-4af3-9423-e50a6bc4fe40/37-Augusto-Fernandez-Bike-Moto2DSC03002.png","published":true},"category":{"id":"1ab203aa-e292-4842-8bed-971911357af1","name":"Moto3","legacy_id":1},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/8049"}},{"season":2013,"number":8,"sponsored_team":"Caretta Technology - RTG","team":{"id":"b8e8ec79-84f7-4b28-a28d-64bc5869415d","constructor":{"id":"5ecd8db7-d87b-4b3e-87b6-1f72ee457ede","name":"KTM","legacy_id":298},"name":"Caretta Technology - RTG","legacy_id":110,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/moto3/original/team_bike_110_1584101124.jpg","published":true},"category":{"id":"1ab203aa-e292-4842-8bed-971911357af1","name":"Moto3","legacy_id":1},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/8049"}},{"season":2012,"number":8,"sponsored_team":"Caretta Technology","team":{"id":"5aaeb4d9-13d5-47ab-b926-ab8f5efd1303","constructor":{"id":"ce40d972-fa4a-421e-b747-d67d3ca1afc6","name":"Husqvarna","legacy_id":164},"name":"Caretta Technology","legacy_id":116,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/moto3/original/team_bike_116_1584101125.jpg","published":true},"category":{"id":"1ab203aa-e292-4842-8bed-971911357af1","name":"Moto3","legacy_id":1},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/8049"}}],"biography":{"text":"Jack Miller made his road race debut in 2009 after beginning his career on dirt and debuted in the 125 World Championship soon after. Taking the 125 IDM crown on his way to full time competition on the world stage, Miller first impressed in 2013 when he proved a consistent frontrunner with Racing Team Germany. A title challenge with Red Bull KTM Ajo in 2014 saw Miller just miss out to Alex Marquez, before he made the incredible move from Moto3™ straight to MotoGP™ in 2015. After a tough rookie season, Miller took a stunning maiden win in 2016 at the TT Circuit Assen, despite a season that began with a broken leg and was then subsequently interrupted by more injury. Taking a good number of top ten results, Miller remained with the Estrella Galicia 0,0 Marc VDS team for 2017 and impressed once more before moving to Pramac for 2018 and switching from Honda to Ducati machinery. More consistent and taking his first pole position, it was a solid season for the Australian who remained with Pramac Racing in 2019 and on GP19, Miller was super impressive. Five podiums came the number 43’s way in and he continued to show his class throughout 2020, earning another four podium finishes, though that first win in Ducati colours still escaped him. A move to the factory squad was deserved and he delivered in 2021: two victories, three further podiums and fourth in the World Championship. Miller's form dipped at times during 2021, so he'll have to be more consistent if he's to fight for the crown in 2022.","media":{"video":null,"picture":"https://photos.motogp.com/riders/c/9/c983e478-f989-49ba-b812-4493ef830d4f/biography/43_Jack_Miller_DSC7145.jpg"}},"legend":false,"legacy_id":8049,"merchandise_url":"https://store.motogp.com/en/jack-miller-43-merchandise?utm_source=motogp.com&utm_medium=Link&utm_content=JM43&utm_campaign=Store&o=motogp-riders-stats","published":true,"injured":false,"banned":false,"wildcard":false} \ No newline at end of file +{ + "id": "b0c1fea6-2dd5-4e26-8a18-0ac9fe6870e4", + "name": "Jack", + "surname": "Miller", + "nickname": null, + "country": { + "iso": "AU", + "name": "Australia" + }, + "birth_city": "Townsville", + "birth_date": "1995-01-18", + "physical_attributes": { + "height": 173, + "weight": 64 + }, + "career": [ + { + "season": 2022, + "number": 43, + "sponsored_team": "Ducati Lenovo Team", + "team": { + "id": "892fff2f-7402-4fbd-99fb-5fd567d8a80c", + "constructor": { + "id": "38af1078-e2f1-4399-811c-1e98cf6f6150", + "name": "Ducati", + "legacy_id": 110 + }, + "name": "Ducati Lenovo Team", + "legacy_id": 15, + "color": "#f92515", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/7/d/7da82702-139c-4a2c-8ee3-a1478cb43c37/ducatilenovo.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "JM43", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/a/5/a5febc67-0055-4a60-a5ec-ba061d9c1564/profile/main/43-Jack-Miller-Rider_DS_4907.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/a/5/a5febc67-0055-4a60-a5ec-ba061d9c1564/bike/main/_0004_43-Jack-Miller_Bike45.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/a/5/a5febc67-0055-4a60-a5ec-ba061d9c1564/helmet/main/43-Jack-Miller-MotoGPLG6_5252.jpg", + "secondary": null + }, + "number": "http://localhost:8089/riders/3/f/3f15f792-6edc-41cf-befb-415f9e666844/number/43-Jack-Miller.png", + "portrait": "http://localhost:8089/riders/a/5/a5febc67-0055-4a60-a5ec-ba061d9c1564/portrait/43-Jack_Miller_Rider_DS_4896.jpg" + } + }, + { + "season": 2021, + "number": 43, + "sponsored_team": "Ducati Lenovo Team", + "team": { + "id": "892fff2f-7402-4fbd-99fb-5fd567d8a80c", + "constructor": { + "id": "38af1078-e2f1-4399-811c-1e98cf6f6150", + "name": "Ducati", + "legacy_id": 110 + }, + "name": "Ducati Lenovo Team", + "legacy_id": 15, + "color": "#f92515", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/7/d/7da82702-139c-4a2c-8ee3-a1478cb43c37/ducatilenovo.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "JM43", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/a/2/a2a26c66-77ad-4aa0-b4da-7311ac9da21a/profile/main/_0003_43-Jack-Miller,-Rider_A7R1269.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/a/2/a2a26c66-77ad-4aa0-b4da-7311ac9da21a/bike/main/_0005_43-Jack-Miller,-Bike_LG86961.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/a/2/a2a26c66-77ad-4aa0-b4da-7311ac9da21a/helmet/main/_0004_43-Jack-Miller-Helmet_LG61077.jpg", + "secondary": null + }, + "number": "http://localhost:8089/riders/3/f/3f15f792-6edc-41cf-befb-415f9e666844/number/43-Jack-Miller.png", + "portrait": "http://localhost:8089/riders/8/4/84f567ec-452e-415a-b7d7-9a995102c235/portrait/_0003_43-Jack-Miller,Rider_A7R1259.jpg" + } + }, + { + "season": 2020, + "number": 43, + "sponsored_team": "Pramac Racing", + "team": { + "id": "612440fd-90eb-4823-bec9-f9e37520d00f", + "constructor": { + "id": "38af1078-e2f1-4399-811c-1e98cf6f6150", + "name": "Ducati", + "legacy_id": 110 + }, + "name": "Pramac Racing", + "legacy_id": 32, + "color": "#cc3333", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/f/0/f016bb93-2d0d-4e44-be2e-0b6a51e4cda8/pramacracing.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "JM43", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/3/8/3809aafd-66cb-475c-8085-ba8ecd1a6f21/profile/main/1_0014_43-Jack-Miller-AUS,-Body_DSC5879.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/6/e/6ee87054-2b5a-49eb-8ab6-4e200286f110/bike/main/43-Jack-Miller.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/c/3/c3f7d3a9-a97d-41f7-b1bf-a550d4f59f0b/helmet/main/43-Jack-Miller.jpg", + "secondary": null + }, + "number": "http://localhost:8089/riders/7/7/778d6146-6bdd-473b-bc1c-3627d091e907/number/43_Jack_Miller.png", + "portrait": "http://localhost:8089/riders/5/c/5c1471a5-5b75-4d4c-956d-5850e90083f0/portrait/43_Jack_Miller.jpg" + } + }, + { + "season": 2019, + "number": 43, + "sponsored_team": "Pramac Racing", + "team": { + "id": "612440fd-90eb-4823-bec9-f9e37520d00f", + "constructor": { + "id": "38af1078-e2f1-4399-811c-1e98cf6f6150", + "name": "Ducati", + "legacy_id": 110 + }, + "name": "Pramac Racing", + "legacy_id": 32, + "color": "#cc3333", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/f/0/f016bb93-2d0d-4e44-be2e-0b6a51e4cda8/pramacracing.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2019/riders/motogp/bike/original/rider_8049_1568365172.jpg", + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": "http://localhost:8089/2019/dorsales/3/8049.png", + "portrait": "http://localhost:8089/2019/riders/motogp/grid/original/rider_8049_1554806159.jpg" + } + }, + { + "season": 2018, + "number": 43, + "sponsored_team": "Alma Pramac Racing", + "team": { + "id": "671fb411-26f5-4692-b08e-6f7b88172b36", + "constructor": { + "id": "38af1078-e2f1-4399-811c-1e98cf6f6150", + "name": "Ducati", + "legacy_id": 110 + }, + "name": "Alma Pramac Racing", + "legacy_id": 32, + "color": "#bf4039", + "text_color": null, + "picture": "http://localhost:8089/2020/teams/motogp/original/team_bike_32_1574329095.jpg", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2018/riders/motogp/bike/original/rider_8049_1521313150.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2018/riders/motogp/helmet/original/rider_8049_1521312680.jpg", + "secondary": null + }, + "number": "http://localhost:8089/2018/dorsales/3/8049.png", + "portrait": "http://localhost:8089/2018/riders/motogp/grid/original/rider_8049_1521213993.jpg" + } + }, + { + "season": 2017, + "number": 43, + "sponsored_team": "EG 0,0 Marc VDS", + "team": { + "id": "2369c22c-90fb-4d77-8270-4df47c1fdf23", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "ELF Marc VDS Racing Team", + "legacy_id": 205, + "color": "#702538", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/6/9/6977e13c-7011-48d5-950d-ff1d077b4e20/22-Sam-Lowes-Bike-Moto2DSC03544.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2017/riders/motogp/bike/original/rider_8049_1490377455.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2017/riders/motogp/helmet/original/rider_8049_1490543478.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2017/riders/motogp/grid/original/rider_8049_1510764497.jpg" + } + }, + { + "season": 2016, + "number": 43, + "sponsored_team": "Estrella Galicia 0,0 Marc VDS", + "team": { + "id": "77a0174a-c84d-4955-a722-b39e4d8e4ce5", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "LCR Honda", + "legacy_id": 17, + "color": "#fafafa", + "text_color": "#323232", + "picture": "http://localhost:8089/teams/6/a/6ad36fc5-ecaa-437a-9324-f45420b4198b/LCR.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2016/riders/motogp/bike/original/rider_8049_1458324180.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2016/riders/motogp/helmet/original/rider_8049_1458324115.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2016/riders/motogp/grid/original/rider_8049_1482313152.jpg" + } + }, + { + "season": 2015, + "number": 43, + "sponsored_team": "LCR Honda", + "team": { + "id": "77a0174a-c84d-4955-a722-b39e4d8e4ce5", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "LCR Honda", + "legacy_id": 17, + "color": "#fafafa", + "text_color": "#323232", + "picture": "http://localhost:8089/teams/6/a/6ad36fc5-ecaa-437a-9324-f45420b4198b/LCR.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/8049" + } + }, + { + "season": 2014, + "number": 8, + "sponsored_team": "Red Bull KTM Ajo", + "team": { + "id": "3c73638c-cffb-4e42-a6ca-b6506ab6bf5c", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "Red Bull KTM Ajo", + "legacy_id": 113, + "color": "#e13f00", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/5/8/582449b6-5434-4af3-9423-e50a6bc4fe40/37-Augusto-Fernandez-Bike-Moto2DSC03002.png", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/8049" + } + }, + { + "season": 2013, + "number": 8, + "sponsored_team": "Caretta Technology - RTG", + "team": { + "id": "b8e8ec79-84f7-4b28-a28d-64bc5869415d", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "Caretta Technology - RTG", + "legacy_id": 110, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_110_1584101124.jpg", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/8049" + } + }, + { + "season": 2012, + "number": 8, + "sponsored_team": "Caretta Technology", + "team": { + "id": "5aaeb4d9-13d5-47ab-b926-ab8f5efd1303", + "constructor": { + "id": "ce40d972-fa4a-421e-b747-d67d3ca1afc6", + "name": "Husqvarna", + "legacy_id": 164 + }, + "name": "Caretta Technology", + "legacy_id": 116, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_116_1584101125.jpg", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/8049" + } + } + ], + "biography": { + "text": "Jack Miller made his road race debut in 2009 after beginning his career on dirt and debuted in the 125 World Championship soon after. Taking the 125 IDM crown on his way to full time competition on the world stage, Miller first impressed in 2013 when he proved a consistent frontrunner with Racing Team Germany. A title challenge with Red Bull KTM Ajo in 2014 saw Miller just miss out to Alex Marquez, before he made the incredible move from Moto3™ straight to MotoGP™ in 2015. After a tough rookie season, Miller took a stunning maiden win in 2016 at the TT Circuit Assen, despite a season that began with a broken leg and was then subsequently interrupted by more injury. Taking a good number of top ten results, Miller remained with the Estrella Galicia 0,0 Marc VDS team for 2017 and impressed once more before moving to Pramac for 2018 and switching from Honda to Ducati machinery. More consistent and taking his first pole position, it was a solid season for the Australian who remained with Pramac Racing in 2019 and on GP19, Miller was super impressive. Five podiums came the number 43’s way in and he continued to show his class throughout 2020, earning another four podium finishes, though that first win in Ducati colours still escaped him. A move to the factory squad was deserved and he delivered in 2021: two victories, three further podiums and fourth in the World Championship. Miller's form dipped at times during 2021, so he'll have to be more consistent if he's to fight for the crown in 2022.", + "media": { + "video": null, + "picture": "http://localhost:8089/riders/c/9/c983e478-f989-49ba-b812-4493ef830d4f/biography/43_Jack_Miller_DSC7145.jpg" + } + }, + "legend": false, + "legacy_id": 8049, + "merchandise_url": "http://localhost:8089/en/jack-miller-43-merchandise?utm_source=localhost:8089&utm_medium=Link&utm_content=JM43&utm_campaign=Store&o=motogp-riders-stats", + "published": true, + "injured": false, + "banned": false, + "wildcard": false +} \ No newline at end of file diff --git a/src/test/resources/__files/rider/8141.json b/src/test/resources/__files/rider/8141.json index 8c142ed..0f0e6b7 100644 --- a/src/test/resources/__files/rider/8141.json +++ b/src/test/resources/__files/rider/8141.json @@ -1 +1,333 @@ -{"id":"f55f9c34-8621-437b-ae04-ae2418720204","name":"Joan","surname":"Mir","nickname":null,"country":{"iso":"ES","name":"Spain"},"birth_city":"Palma de Mallorca","birth_date":"1997-09-01","physical_attributes":{"height":181,"weight":69},"career":[{"season":2022,"number":36,"sponsored_team":"Team SUZUKI ECSTAR","team":{"id":"baac93d0-3068-4c7a-8d3f-ca215b568f77","constructor":{"id":"de2d5a0a-83e3-4114-b5c6-72d10d8a9619","name":"Suzuki","legacy_id":2},"name":"Team SUZUKI ECSTAR","legacy_id":37,"color":"#4294c1","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/6/a/6ae0f119-6c7c-4171-9062-b431459e7c18/Suzuki.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":"JM36","current":false,"pictures":{"profile":{"main":"https://photos.motogp.com/riders/7/9/792f3928-c967-41b9-84cd-c620c95a9138/profile/main/36_Joan_Mir.png","secondary":null},"bike":{"main":"https://photos.motogp.com/riders/7/9/792f3928-c967-41b9-84cd-c620c95a9138/bike/main/36_Joan_Mir.png","secondary":null},"helmet":{"main":"https://photos.motogp.com/riders/7/9/792f3928-c967-41b9-84cd-c620c95a9138/helmet/main/36-Joan-Mir.jpg","secondary":null},"number":"https://photos.motogp.com/riders/8/0/806b4c4d-b658-4f04-a219-62e997c9b4bb/number/36-Joan-Mir.png","portrait":"https://photos.motogp.com/riders/7/9/792f3928-c967-41b9-84cd-c620c95a9138/portrait/36_Joan_Mir.jpg"}},{"season":2021,"number":36,"sponsored_team":"Team SUZUKI ECSTAR","team":{"id":"baac93d0-3068-4c7a-8d3f-ca215b568f77","constructor":{"id":"de2d5a0a-83e3-4114-b5c6-72d10d8a9619","name":"Suzuki","legacy_id":2},"name":"Team SUZUKI ECSTAR","legacy_id":37,"color":"#4294c1","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/6/a/6ae0f119-6c7c-4171-9062-b431459e7c18/Suzuki.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":"JM36","current":false,"pictures":{"profile":{"main":"https://photos.motogp.com/riders/e/b/eb144780-b5f3-4b2c-8d91-b5444792500f/profile/main/_0005_36-Joan-Mir,-Rider_A7R1337.png","secondary":null},"bike":{"main":"https://photos.motogp.com/riders/e/b/eb144780-b5f3-4b2c-8d91-b5444792500f/bike/main/_0011_36-Joan-Mir,-Bike_LG86992.png","secondary":null},"helmet":{"main":"https://photos.motogp.com/riders/e/b/eb144780-b5f3-4b2c-8d91-b5444792500f/helmet/main/_0006_36-Joan-Mir,-Helmet_LG61396.jpg","secondary":null},"number":"https://photos.motogp.com/riders/8/0/806b4c4d-b658-4f04-a219-62e997c9b4bb/number/36-Joan-Mir.png","portrait":"https://photos.motogp.com/riders/3/a/3a588588-1d87-4e2d-9e82-dd0ec1f076df/portrait/_0005_36-Joan-Mir-Rider_A7R1329.jpg"}},{"season":2020,"number":36,"sponsored_team":"Team SUZUKI ECSTAR","team":{"id":"baac93d0-3068-4c7a-8d3f-ca215b568f77","constructor":{"id":"de2d5a0a-83e3-4114-b5c6-72d10d8a9619","name":"Suzuki","legacy_id":2},"name":"Team SUZUKI ECSTAR","legacy_id":37,"color":"#4294c1","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/6/a/6ae0f119-6c7c-4171-9062-b431459e7c18/Suzuki.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":"JM36","current":false,"pictures":{"profile":{"main":"https://photos.motogp.com/riders/a/0/a0af334b-7e87-404d-aba6-6b845151d226/profile/main/1_0010_36-Joan-Mir-ESP_DSC7013.png","secondary":null},"bike":{"main":"https://photos.motogp.com/riders/a/f/af764750-e5a2-4e37-92a2-8283a8159f82/bike/main/36-Joan-Mir.png","secondary":null},"helmet":{"main":"https://photos.motogp.com/riders/f/2/f2eace54-7753-40b7-850a-1fa57d917e7a/helmet/main/36-Joan-Mir.png","secondary":null},"number":"https://photos.motogp.com/2019/dorsales/3/8141.png","portrait":"https://photos.motogp.com/riders/c/7/c71ab38c-d659-48d1-a7cb-82a5f6383997/portrait/36_Joan_Mir.jpg"}},{"season":2019,"number":36,"sponsored_team":"Team SUZUKI ECSTAR","team":{"id":"baac93d0-3068-4c7a-8d3f-ca215b568f77","constructor":{"id":"de2d5a0a-83e3-4114-b5c6-72d10d8a9619","name":"Suzuki","legacy_id":2},"name":"Team SUZUKI ECSTAR","legacy_id":37,"color":"#4294c1","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/6/a/6ae0f119-6c7c-4171-9062-b431459e7c18/Suzuki.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2019/riders/motogp/bike/original/rider_8141_1552058394.jpg","secondary":null},"helmet":{"main":null,"secondary":null},"number":"https://photos.motogp.com/2019/dorsales/3/8141.png","portrait":"https://photos.motogp.com/2019/riders/motogp/grid/original/rider_8141_1554806147.jpg"}},{"season":2018,"number":0,"sponsored_team":"Team SUZUKI ECSTAR","team":{"id":"baac93d0-3068-4c7a-8d3f-ca215b568f77","constructor":{"id":"de2d5a0a-83e3-4114-b5c6-72d10d8a9619","name":"Suzuki","legacy_id":2},"name":"Team SUZUKI ECSTAR","legacy_id":37,"color":"#4294c1","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/6/a/6ae0f119-6c7c-4171-9062-b431459e7c18/Suzuki.png","published":true},"category":{"id":"ea854a67-73a4-4a28-ac77-d67b3b2a530a","name":"Moto2","legacy_id":2},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2018/riders/moto2/bike/original/rider_8141_1521135590.jpg","secondary":null},"helmet":{"main":"https://photos.motogp.com/2018/riders/moto2/helmet/original/rider_8141_1521312689.jpg","secondary":null},"number":null,"portrait":"https://photos.motogp.com/2018/riders/moto2/grid/original/rider_8141_1521196879.jpg"}},{"season":2017,"number":36,"sponsored_team":"Leopard Racing","team":{"id":"a713a7ba-16ec-4c15-b4a3-7211b43f9a89","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Leopard Racing","legacy_id":105,"color":"#00bdcc","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/b/4/b4bb6973-5a92-4054-b2b5-5b766279245c/LeopardRacing.png","published":true},"category":{"id":"1ab203aa-e292-4842-8bed-971911357af1","name":"Moto3","legacy_id":1},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2017/riders/moto3/bike/original/rider_8141_1490207791.jpg","secondary":null},"helmet":{"main":"https://photos.motogp.com/2017/riders/moto3/helmet/original/rider_8141_1490546552.jpg","secondary":null},"number":null,"portrait":"https://photos.motogp.com/2017/riders/moto3/grid/original/rider_8141_1490886721.jpg"}},{"season":2016,"number":36,"sponsored_team":"Leopard Racing","team":{"id":"a713a7ba-16ec-4c15-b4a3-7211b43f9a89","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Leopard Racing","legacy_id":105,"color":"#00bdcc","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/b/4/b4bb6973-5a92-4054-b2b5-5b766279245c/LeopardRacing.png","published":true},"category":{"id":"1ab203aa-e292-4842-8bed-971911357af1","name":"Moto3","legacy_id":1},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2016/riders/moto3/bike/original/rider_8141_1458823986.jpg","secondary":null},"helmet":{"main":"https://photos.motogp.com/2016/riders/moto3/helmet/original/rider_8141_1458821859.jpg","secondary":null},"number":null,"portrait":"https://photos.motogp.com/2016/riders/moto3/grid/original/rider_8141_1458821696.jpg"}}],"biography":{"text":"Before he became a World Champion, Joan Mir was selected for the Red Bull Rookies Cup and took a second place finish during his first year. He showed great speed during the 2014 Rookies season with three wins, two seconds and a third. Many expected him to be a title contender during the 2015 FIM CEV Repsol Moto3™ Junior World Championship, and he ended the season in fourth taking some incredible wins - and in with a fighting chance of the title until the final round of the year. He also made his Grand Prix debut that year at the Australian GP, replacing the injured Hiroko Ono, and impressed many with his pace. He moved up to the World Championship with Leopard Racing aboard a KTM in 2016 and was Rookie of the Year, taking his first victory at the Austrian GP. For 2017, Mir remained with Leopard Racing to fight for the title, but this time on a Honda - and took a stunning ten wins on the way to wrapping up the crown at Phillip Island, at the same venue where he made his debut only two years before. The Mallorcan moved up to Moto2™ with EG 0,0 Marc VDS to partner Alex Marquez in 2018 and took podiums on the way to being crowned Rookie of the Year; good preparation for a quick graduation to the premier class with Team Suzuki Ecstar. His maiden MotoGP™ year was impressive and his latter season form after a monster Brno testing crash was superb. 10 top 10s and a best finish of P5 in Australia was a sign of things to come from the Mallorcan, as 2020 became the year of Mir. It wasn’t the most auspicious of starts from the Suzuki rider, as he retired twice in the first three races of the season, but following the Czech GP, he became a model of consistency. Four podiums in the next five launched his title bid, and while all those around him were faltering, Mir kept producing the goods to take the Championship lead with podiums in the Aragon double, meaning his fate was in his own hands. Then the highlight of the year, his maiden victory came following a commanding performance in the European Grand Prix, all but securing the title with two races to go. As the grid returned for the Valencia GP the following week, Mir’s seventh place finish meant he followed in the footsteps of fellow Mallorcan Jorge Lorenzo in becoming a MotoGP™ World Champion. He was unable to defend the crown in 2021, though, with Suzuki's GSX-RR falling slightly behind the development curve throughout the season. Mir did secure third in the standings thanks to six podium finishes, but a winless and title-less year will no doubt act as huge motivation heading into 2022.","media":{"video":null,"picture":"https://photos.motogp.com/riders/d/5/d5400ff4-6bef-4526-8b9e-dc88b4029e79/biography/36_Joan_Mir_DSC1380.jpg"}},"legend":false,"legacy_id":8141,"merchandise_url":"https://store.motogp.com/en/joan-mir-36-merchandise?utm_source=motogp.com&utm_medium=Link&utm_content=JM36&utm_campaign=Store&o=motogp-riders-stats","published":true,"injured":false,"banned":false,"wildcard":false} \ No newline at end of file +{ + "id": "f55f9c34-8621-437b-ae04-ae2418720204", + "name": "Joan", + "surname": "Mir", + "nickname": null, + "country": { + "iso": "ES", + "name": "Spain" + }, + "birth_city": "Palma de Mallorca", + "birth_date": "1997-09-01", + "physical_attributes": { + "height": 181, + "weight": 69 + }, + "career": [ + { + "season": 2022, + "number": 36, + "sponsored_team": "Team SUZUKI ECSTAR", + "team": { + "id": "baac93d0-3068-4c7a-8d3f-ca215b568f77", + "constructor": { + "id": "de2d5a0a-83e3-4114-b5c6-72d10d8a9619", + "name": "Suzuki", + "legacy_id": 2 + }, + "name": "Team SUZUKI ECSTAR", + "legacy_id": 37, + "color": "#4294c1", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/6/a/6ae0f119-6c7c-4171-9062-b431459e7c18/Suzuki.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "JM36", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/7/9/792f3928-c967-41b9-84cd-c620c95a9138/profile/main/36_Joan_Mir.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/7/9/792f3928-c967-41b9-84cd-c620c95a9138/bike/main/36_Joan_Mir.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/7/9/792f3928-c967-41b9-84cd-c620c95a9138/helmet/main/36-Joan-Mir.jpg", + "secondary": null + }, + "number": "http://localhost:8089/riders/8/0/806b4c4d-b658-4f04-a219-62e997c9b4bb/number/36-Joan-Mir.png", + "portrait": "http://localhost:8089/riders/7/9/792f3928-c967-41b9-84cd-c620c95a9138/portrait/36_Joan_Mir.jpg" + } + }, + { + "season": 2021, + "number": 36, + "sponsored_team": "Team SUZUKI ECSTAR", + "team": { + "id": "baac93d0-3068-4c7a-8d3f-ca215b568f77", + "constructor": { + "id": "de2d5a0a-83e3-4114-b5c6-72d10d8a9619", + "name": "Suzuki", + "legacy_id": 2 + }, + "name": "Team SUZUKI ECSTAR", + "legacy_id": 37, + "color": "#4294c1", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/6/a/6ae0f119-6c7c-4171-9062-b431459e7c18/Suzuki.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "JM36", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/e/b/eb144780-b5f3-4b2c-8d91-b5444792500f/profile/main/_0005_36-Joan-Mir,-Rider_A7R1337.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/e/b/eb144780-b5f3-4b2c-8d91-b5444792500f/bike/main/_0011_36-Joan-Mir,-Bike_LG86992.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/e/b/eb144780-b5f3-4b2c-8d91-b5444792500f/helmet/main/_0006_36-Joan-Mir,-Helmet_LG61396.jpg", + "secondary": null + }, + "number": "http://localhost:8089/riders/8/0/806b4c4d-b658-4f04-a219-62e997c9b4bb/number/36-Joan-Mir.png", + "portrait": "http://localhost:8089/riders/3/a/3a588588-1d87-4e2d-9e82-dd0ec1f076df/portrait/_0005_36-Joan-Mir-Rider_A7R1329.jpg" + } + }, + { + "season": 2020, + "number": 36, + "sponsored_team": "Team SUZUKI ECSTAR", + "team": { + "id": "baac93d0-3068-4c7a-8d3f-ca215b568f77", + "constructor": { + "id": "de2d5a0a-83e3-4114-b5c6-72d10d8a9619", + "name": "Suzuki", + "legacy_id": 2 + }, + "name": "Team SUZUKI ECSTAR", + "legacy_id": 37, + "color": "#4294c1", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/6/a/6ae0f119-6c7c-4171-9062-b431459e7c18/Suzuki.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "JM36", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/a/0/a0af334b-7e87-404d-aba6-6b845151d226/profile/main/1_0010_36-Joan-Mir-ESP_DSC7013.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/a/f/af764750-e5a2-4e37-92a2-8283a8159f82/bike/main/36-Joan-Mir.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/f/2/f2eace54-7753-40b7-850a-1fa57d917e7a/helmet/main/36-Joan-Mir.png", + "secondary": null + }, + "number": "http://localhost:8089/2019/dorsales/3/8141.png", + "portrait": "http://localhost:8089/riders/c/7/c71ab38c-d659-48d1-a7cb-82a5f6383997/portrait/36_Joan_Mir.jpg" + } + }, + { + "season": 2019, + "number": 36, + "sponsored_team": "Team SUZUKI ECSTAR", + "team": { + "id": "baac93d0-3068-4c7a-8d3f-ca215b568f77", + "constructor": { + "id": "de2d5a0a-83e3-4114-b5c6-72d10d8a9619", + "name": "Suzuki", + "legacy_id": 2 + }, + "name": "Team SUZUKI ECSTAR", + "legacy_id": 37, + "color": "#4294c1", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/6/a/6ae0f119-6c7c-4171-9062-b431459e7c18/Suzuki.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2019/riders/motogp/bike/original/rider_8141_1552058394.jpg", + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": "http://localhost:8089/2019/dorsales/3/8141.png", + "portrait": "http://localhost:8089/2019/riders/motogp/grid/original/rider_8141_1554806147.jpg" + } + }, + { + "season": 2018, + "number": 0, + "sponsored_team": "Team SUZUKI ECSTAR", + "team": { + "id": "baac93d0-3068-4c7a-8d3f-ca215b568f77", + "constructor": { + "id": "de2d5a0a-83e3-4114-b5c6-72d10d8a9619", + "name": "Suzuki", + "legacy_id": 2 + }, + "name": "Team SUZUKI ECSTAR", + "legacy_id": 37, + "color": "#4294c1", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/6/a/6ae0f119-6c7c-4171-9062-b431459e7c18/Suzuki.png", + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2018/riders/moto2/bike/original/rider_8141_1521135590.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2018/riders/moto2/helmet/original/rider_8141_1521312689.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2018/riders/moto2/grid/original/rider_8141_1521196879.jpg" + } + }, + { + "season": 2017, + "number": 36, + "sponsored_team": "Leopard Racing", + "team": { + "id": "a713a7ba-16ec-4c15-b4a3-7211b43f9a89", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Leopard Racing", + "legacy_id": 105, + "color": "#00bdcc", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/b/4/b4bb6973-5a92-4054-b2b5-5b766279245c/LeopardRacing.png", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2017/riders/moto3/bike/original/rider_8141_1490207791.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2017/riders/moto3/helmet/original/rider_8141_1490546552.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2017/riders/moto3/grid/original/rider_8141_1490886721.jpg" + } + }, + { + "season": 2016, + "number": 36, + "sponsored_team": "Leopard Racing", + "team": { + "id": "a713a7ba-16ec-4c15-b4a3-7211b43f9a89", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Leopard Racing", + "legacy_id": 105, + "color": "#00bdcc", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/b/4/b4bb6973-5a92-4054-b2b5-5b766279245c/LeopardRacing.png", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2016/riders/moto3/bike/original/rider_8141_1458823986.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2016/riders/moto3/helmet/original/rider_8141_1458821859.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2016/riders/moto3/grid/original/rider_8141_1458821696.jpg" + } + } + ], + "biography": { + "text": "Before he became a World Champion, Joan Mir was selected for the Red Bull Rookies Cup and took a second place finish during his first year. He showed great speed during the 2014 Rookies season with three wins, two seconds and a third. Many expected him to be a title contender during the 2015 FIM CEV Repsol Moto3™ Junior World Championship, and he ended the season in fourth taking some incredible wins - and in with a fighting chance of the title until the final round of the year. He also made his Grand Prix debut that year at the Australian GP, replacing the injured Hiroko Ono, and impressed many with his pace. He moved up to the World Championship with Leopard Racing aboard a KTM in 2016 and was Rookie of the Year, taking his first victory at the Austrian GP. For 2017, Mir remained with Leopard Racing to fight for the title, but this time on a Honda - and took a stunning ten wins on the way to wrapping up the crown at Phillip Island, at the same venue where he made his debut only two years before. The Mallorcan moved up to Moto2™ with EG 0,0 Marc VDS to partner Alex Marquez in 2018 and took podiums on the way to being crowned Rookie of the Year; good preparation for a quick graduation to the premier class with Team Suzuki Ecstar. His maiden MotoGP™ year was impressive and his latter season form after a monster Brno testing crash was superb. 10 top 10s and a best finish of P5 in Australia was a sign of things to come from the Mallorcan, as 2020 became the year of Mir. It wasn’t the most auspicious of starts from the Suzuki rider, as he retired twice in the first three races of the season, but following the Czech GP, he became a model of consistency. Four podiums in the next five launched his title bid, and while all those around him were faltering, Mir kept producing the goods to take the Championship lead with podiums in the Aragon double, meaning his fate was in his own hands. Then the highlight of the year, his maiden victory came following a commanding performance in the European Grand Prix, all but securing the title with two races to go. As the grid returned for the Valencia GP the following week, Mir’s seventh place finish meant he followed in the footsteps of fellow Mallorcan Jorge Lorenzo in becoming a MotoGP™ World Champion. He was unable to defend the crown in 2021, though, with Suzuki's GSX-RR falling slightly behind the development curve throughout the season. Mir did secure third in the standings thanks to six podium finishes, but a winless and title-less year will no doubt act as huge motivation heading into 2022.", + "media": { + "video": null, + "picture": "http://localhost:8089/riders/d/5/d5400ff4-6bef-4526-8b9e-dc88b4029e79/biography/36_Joan_Mir_DSC1380.jpg" + } + }, + "legend": false, + "legacy_id": 8141, + "merchandise_url": "http://localhost:8089/en/joan-mir-36-merchandise?utm_source=localhost:8089&utm_medium=Link&utm_content=JM36&utm_campaign=Store&o=motogp-riders-stats", + "published": true, + "injured": false, + "banned": false, + "wildcard": false +} \ No newline at end of file diff --git a/src/test/resources/__files/rider/8146.json b/src/test/resources/__files/rider/8146.json index ec04b91..46201af 100644 --- a/src/test/resources/__files/rider/8146.json +++ b/src/test/resources/__files/rider/8146.json @@ -1 +1,376 @@ -{"id":"5b9af34e-da94-4ca2-9c4c-6be0fc8b1bbc","name":"Jorge","surname":"Martin","nickname":null,"country":{"iso":"ES","name":"Spain"},"birth_city":"Madrid","birth_date":"1998-01-29","physical_attributes":{"height":168,"weight":62},"career":[{"season":2022,"number":89,"sponsored_team":"Pramac Racing","team":{"id":"612440fd-90eb-4823-bec9-f9e37520d00f","constructor":{"id":"38af1078-e2f1-4399-811c-1e98cf6f6150","name":"Ducati","legacy_id":110},"name":"Pramac Racing","legacy_id":32,"color":"#cc3333","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/f/0/f016bb93-2d0d-4e44-be2e-0b6a51e4cda8/pramacracing.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":"JM89","current":false,"pictures":{"profile":{"main":"https://photos.motogp.com/riders/e/e/ee8395aa-420a-4ea8-9ef4-f76215fc9494/profile/main/89_Jorge_Martin_Rider_DS_5365.png","secondary":null},"bike":{"main":"https://photos.motogp.com/riders/4/e/4e0ca675-372e-4f4a-9bd7-0d0534543eae/bike/main/_0000_89-Jorge-Martin_Bike45.png","secondary":null},"helmet":{"main":"https://photos.motogp.com/riders/e/e/ee8395aa-420a-4ea8-9ef4-f76215fc9494/helmet/main/89JorgeMartin_HelmetLG6_6387.jpg","secondary":null},"number":"https://photos.motogp.com/riders/5/2/5232f339-ae49-4af2-9cb1-90ad7bcd0a4f/number/89-Jorge-Martin.png","portrait":"https://photos.motogp.com/riders/e/e/ee8395aa-420a-4ea8-9ef4-f76215fc9494/portrait/89_Jorge_Martin_Rider_DS_5357.jpg"}},{"season":2021,"number":89,"sponsored_team":"Pramac Racing","team":{"id":"612440fd-90eb-4823-bec9-f9e37520d00f","constructor":{"id":"38af1078-e2f1-4399-811c-1e98cf6f6150","name":"Ducati","legacy_id":110},"name":"Pramac Racing","legacy_id":32,"color":"#cc3333","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/f/0/f016bb93-2d0d-4e44-be2e-0b6a51e4cda8/pramacracing.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":"JM89","current":false,"pictures":{"profile":{"main":"https://photos.motogp.com/riders/5/4/548f51e1-5dd1-4108-8951-9a975005e189/profile/main/_0004_89-Jorge-Martin,-Rider_A7R0809.png","secondary":null},"bike":{"main":"https://photos.motogp.com/riders/5/4/548f51e1-5dd1-4108-8951-9a975005e189/bike/main/_0003_89-Jorge-Martin,-Bike_LG86691.png","secondary":null},"helmet":{"main":"https://photos.motogp.com/riders/5/4/548f51e1-5dd1-4108-8951-9a975005e189/helmet/main/_0000_89-Jorge-Martin,-Helmet_LG60709.png","secondary":null},"number":"https://photos.motogp.com/riders/5/2/5232f339-ae49-4af2-9cb1-90ad7bcd0a4f/number/89-Jorge-Martin.png","portrait":"https://photos.motogp.com/riders/5/4/548f51e1-5dd1-4108-8951-9a975005e189/portrait/_0002_89-Jorge-Martin,-Rider_A7R0802.jpg"}},{"season":2020,"number":88,"sponsored_team":"Red Bull KTM Ajo","team":{"id":"3c73638c-cffb-4e42-a6ca-b6506ab6bf5c","constructor":{"id":"791160c2-6d2f-47ad-8d87-29e4f729073a","name":"Kalex","legacy_id":447},"name":"Red Bull KTM Ajo","legacy_id":113,"color":"#e13f00","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/5/8/582449b6-5434-4af3-9423-e50a6bc4fe40/37-Augusto-Fernandez-Bike-Moto2DSC03002.png","published":true},"category":{"id":"ea854a67-73a4-4a28-ac77-d67b3b2a530a","name":"Moto2","legacy_id":2},"in_grid":true,"short_nickname":"JM88","current":false,"pictures":{"profile":{"main":"https://photos.motogp.com/riders/9/0/90c15e71-c904-4248-9146-7c73cfe73c1a/profile/main/88-Jorge-Martin-ESP,-Rider---DSC_0321.png","secondary":null},"bike":{"main":"https://photos.motogp.com/2020/riders/moto2/bike/original/rider_8146_1583840753.jpg","secondary":null},"helmet":{"main":"https://photos.motogp.com/2020/riders/moto2/helmet/original/rider_8146_1584104094.jpg","secondary":null},"number":"https://photos.motogp.com/2020/dorsales/others/88.png","portrait":"https://photos.motogp.com/2020/riders/moto2/grid/original/rider_8146_1583402493.jpg"}},{"season":2019,"number":88,"sponsored_team":"Red Bull KTM Ajo","team":{"id":"3c73638c-cffb-4e42-a6ca-b6506ab6bf5c","constructor":{"id":"791160c2-6d2f-47ad-8d87-29e4f729073a","name":"Kalex","legacy_id":447},"name":"Red Bull KTM Ajo","legacy_id":113,"color":"#e13f00","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/5/8/582449b6-5434-4af3-9423-e50a6bc4fe40/37-Augusto-Fernandez-Bike-Moto2DSC03002.png","published":true},"category":{"id":"ea854a67-73a4-4a28-ac77-d67b3b2a530a","name":"Moto2","legacy_id":2},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2019/riders/moto2/bike/original/rider_8146_1551780702.jpg","secondary":null},"helmet":{"main":"https://photos.motogp.com/2019/riders/moto2/helmet/original/rider_8146_1551784605.jpg","secondary":null},"number":"https://photos.motogp.com/2020/dorsales/others/88.png","portrait":"https://photos.motogp.com/2019/riders/moto2/grid/original/rider_8146_1551890080.jpg"}},{"season":2018,"number":0,"sponsored_team":"Red Bull KTM Ajo","team":{"id":"3c73638c-cffb-4e42-a6ca-b6506ab6bf5c","constructor":{"id":"791160c2-6d2f-47ad-8d87-29e4f729073a","name":"Kalex","legacy_id":447},"name":"Red Bull KTM Ajo","legacy_id":113,"color":"#e13f00","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/5/8/582449b6-5434-4af3-9423-e50a6bc4fe40/37-Augusto-Fernandez-Bike-Moto2DSC03002.png","published":true},"category":{"id":"1ab203aa-e292-4842-8bed-971911357af1","name":"Moto3","legacy_id":1},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2018/riders/moto3/bike/original/rider_8146_1521132736.jpg","secondary":null},"helmet":{"main":"https://photos.motogp.com/2018/riders/moto3/helmet/original/rider_8146_1521312710.jpg","secondary":null},"number":null,"portrait":"https://photos.motogp.com/2018/riders/moto3/grid/original/rider_8146_1521047880.jpg"}},{"season":2017,"number":88,"sponsored_team":"Del Conca Gresini Moto3","team":{"id":"2e9ead6f-cea5-44e7-b26b-bb5b7f95f735","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Del Conca Gresini Moto3","legacy_id":112,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/moto3/original/team_bike_112_1584101123.jpg","published":true},"category":{"id":"1ab203aa-e292-4842-8bed-971911357af1","name":"Moto3","legacy_id":1},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2017/riders/moto3/bike/original/rider_8146_1490207801.jpg","secondary":null},"helmet":{"main":"https://photos.motogp.com/2017/riders/moto3/helmet/original/rider_8146_1490546560.jpg","secondary":null},"number":null,"portrait":"https://photos.motogp.com/2017/riders/moto3/grid/original/rider_8146_1490197880.jpg"}},{"season":2016,"number":88,"sponsored_team":"Pull & Bear Aspar Mahindra Team","team":{"id":"b1dab8f5-c52c-49f7-9a9b-937829248864","constructor":{"id":"fe62d196-ff34-409a-aa32-4aae146e2e3c","name":"Speed Up","legacy_id":431},"name":"Pull & Bear Aspar Mahindra Team","legacy_id":107,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/moto2/original/team_bike_107_1583857096.jpg","published":true},"category":{"id":"1ab203aa-e292-4842-8bed-971911357af1","name":"Moto3","legacy_id":1},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2016/riders/moto3/bike/original/rider_8146_1458824007.jpg","secondary":null},"helmet":{"main":"https://photos.motogp.com/2016/riders/moto3/helmet/original/rider_8146_1458821844.jpg","secondary":null},"number":null,"portrait":"https://photos.motogp.com/2016/riders/moto3/grid/original/rider_8146_1471606104.jpg"}},{"season":2015,"number":88,"sponsored_team":"MAPFRE Team MAHINDRA","team":{"id":"4218bb47-2163-4fd2-9d41-86c42c0e10ab","constructor":{"id":"fe62d196-ff34-409a-aa32-4aae146e2e3c","name":"Speed Up","legacy_id":431},"name":"MAPFRE Team MAHINDRA","legacy_id":107,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/moto2/original/team_bike_107_1583857096.jpg","published":true},"category":{"id":"1ab203aa-e292-4842-8bed-971911357af1","name":"Moto3","legacy_id":1},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/8146"}}],"biography":{"text":"Jorge Martin joined the Red Bull Rookies Cup for the 2012 season. Unfortunately it was a season plagued by various injuries, but the following year he tried again and finished runner-up behind the 2013 champion Karel Hanika. In 2014 he dominated the same Championship and took the crown. For 2015 Martín took the next step and participated in his first full season in the Moto3™ World Championship, where he joined the Mahindra Mapfre Aspar team. An awesome seventh in Aragon helped the Spaniard to finish the year 17th overall, with he and the Aspar team electing to continue their relationship for 2016. For 2017, the Spaniard moved to Del Conca Gresini Racing Moto3 to replace outgoing title contender Enea Bastianini. The master of qualifying and on pole for half the entire season, Martin took an impressive nine podiums despite a mid-season injury, and his maiden win in the season finale on the way to P4 overall. His stellar year would arrive in 2018 as Martin beat Marco Bezzecchi to the Moto3™ crown, claiming seven victories despite picking up another mid-season injury. Red Bull KTM Ajo in Moto2™ became the Spaniards home in 2019, and he rewarded his new team with podium finishes in Japan and Austria toward the tail end of the season. A title charge awaited in 2020, a Spanish GP podium followed up with a victory and podium finish in the Spielberg double, he was right in the Championship mix. However, a positive Covid-19 test meant he missed the Misano double, and successive retirements put to bed any plans of the Championship. There were three more podiums in the final five Grand Prix, including victory in Valencia, which helped him secure fifth place in the standings. 2021 brought a move up to MotoGP™ with Pramac Racing on a GP21, and it's safe to say Martin hit the ground running. A debut pole and podium were secured in Doha before a huge crash in Portimao saw him break eight bones. Missing four races, Martin returned and after the summer break, in Austria, a first victory was his. Two more podiums helped Martin secure the Rookie of the Year crown, and in 2022, the Spaniard is being tipped for greatness. ","media":{"video":null,"picture":"https://photos.motogp.com/riders/8/2/824d7bf5-ea19-47de-b74c-5d7e1c3ca130/biography/89_Jorge_Martin_DSC4698.jpg"}},"legend":false,"legacy_id":8146,"merchandise_url":null,"published":true,"injured":false,"banned":false,"wildcard":false} \ No newline at end of file +{ + "id": "5b9af34e-da94-4ca2-9c4c-6be0fc8b1bbc", + "name": "Jorge", + "surname": "Martin", + "nickname": null, + "country": { + "iso": "ES", + "name": "Spain" + }, + "birth_city": "Madrid", + "birth_date": "1998-01-29", + "physical_attributes": { + "height": 168, + "weight": 62 + }, + "career": [ + { + "season": 2022, + "number": 89, + "sponsored_team": "Pramac Racing", + "team": { + "id": "612440fd-90eb-4823-bec9-f9e37520d00f", + "constructor": { + "id": "38af1078-e2f1-4399-811c-1e98cf6f6150", + "name": "Ducati", + "legacy_id": 110 + }, + "name": "Pramac Racing", + "legacy_id": 32, + "color": "#cc3333", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/f/0/f016bb93-2d0d-4e44-be2e-0b6a51e4cda8/pramacracing.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "JM89", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/e/e/ee8395aa-420a-4ea8-9ef4-f76215fc9494/profile/main/89_Jorge_Martin_Rider_DS_5365.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/4/e/4e0ca675-372e-4f4a-9bd7-0d0534543eae/bike/main/_0000_89-Jorge-Martin_Bike45.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/e/e/ee8395aa-420a-4ea8-9ef4-f76215fc9494/helmet/main/89JorgeMartin_HelmetLG6_6387.jpg", + "secondary": null + }, + "number": "http://localhost:8089/riders/5/2/5232f339-ae49-4af2-9cb1-90ad7bcd0a4f/number/89-Jorge-Martin.png", + "portrait": "http://localhost:8089/riders/e/e/ee8395aa-420a-4ea8-9ef4-f76215fc9494/portrait/89_Jorge_Martin_Rider_DS_5357.jpg" + } + }, + { + "season": 2021, + "number": 89, + "sponsored_team": "Pramac Racing", + "team": { + "id": "612440fd-90eb-4823-bec9-f9e37520d00f", + "constructor": { + "id": "38af1078-e2f1-4399-811c-1e98cf6f6150", + "name": "Ducati", + "legacy_id": 110 + }, + "name": "Pramac Racing", + "legacy_id": 32, + "color": "#cc3333", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/f/0/f016bb93-2d0d-4e44-be2e-0b6a51e4cda8/pramacracing.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "JM89", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/5/4/548f51e1-5dd1-4108-8951-9a975005e189/profile/main/_0004_89-Jorge-Martin,-Rider_A7R0809.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/5/4/548f51e1-5dd1-4108-8951-9a975005e189/bike/main/_0003_89-Jorge-Martin,-Bike_LG86691.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/5/4/548f51e1-5dd1-4108-8951-9a975005e189/helmet/main/_0000_89-Jorge-Martin,-Helmet_LG60709.png", + "secondary": null + }, + "number": "http://localhost:8089/riders/5/2/5232f339-ae49-4af2-9cb1-90ad7bcd0a4f/number/89-Jorge-Martin.png", + "portrait": "http://localhost:8089/riders/5/4/548f51e1-5dd1-4108-8951-9a975005e189/portrait/_0002_89-Jorge-Martin,-Rider_A7R0802.jpg" + } + }, + { + "season": 2020, + "number": 88, + "sponsored_team": "Red Bull KTM Ajo", + "team": { + "id": "3c73638c-cffb-4e42-a6ca-b6506ab6bf5c", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "Red Bull KTM Ajo", + "legacy_id": 113, + "color": "#e13f00", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/5/8/582449b6-5434-4af3-9423-e50a6bc4fe40/37-Augusto-Fernandez-Bike-Moto2DSC03002.png", + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": "JM88", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/9/0/90c15e71-c904-4248-9146-7c73cfe73c1a/profile/main/88-Jorge-Martin-ESP,-Rider---DSC_0321.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2020/riders/moto2/bike/original/rider_8146_1583840753.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2020/riders/moto2/helmet/original/rider_8146_1584104094.jpg", + "secondary": null + }, + "number": "http://localhost:8089/2020/dorsales/others/88.png", + "portrait": "http://localhost:8089/2020/riders/moto2/grid/original/rider_8146_1583402493.jpg" + } + }, + { + "season": 2019, + "number": 88, + "sponsored_team": "Red Bull KTM Ajo", + "team": { + "id": "3c73638c-cffb-4e42-a6ca-b6506ab6bf5c", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "Red Bull KTM Ajo", + "legacy_id": 113, + "color": "#e13f00", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/5/8/582449b6-5434-4af3-9423-e50a6bc4fe40/37-Augusto-Fernandez-Bike-Moto2DSC03002.png", + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2019/riders/moto2/bike/original/rider_8146_1551780702.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2019/riders/moto2/helmet/original/rider_8146_1551784605.jpg", + "secondary": null + }, + "number": "http://localhost:8089/2020/dorsales/others/88.png", + "portrait": "http://localhost:8089/2019/riders/moto2/grid/original/rider_8146_1551890080.jpg" + } + }, + { + "season": 2018, + "number": 0, + "sponsored_team": "Red Bull KTM Ajo", + "team": { + "id": "3c73638c-cffb-4e42-a6ca-b6506ab6bf5c", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "Red Bull KTM Ajo", + "legacy_id": 113, + "color": "#e13f00", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/5/8/582449b6-5434-4af3-9423-e50a6bc4fe40/37-Augusto-Fernandez-Bike-Moto2DSC03002.png", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2018/riders/moto3/bike/original/rider_8146_1521132736.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2018/riders/moto3/helmet/original/rider_8146_1521312710.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2018/riders/moto3/grid/original/rider_8146_1521047880.jpg" + } + }, + { + "season": 2017, + "number": 88, + "sponsored_team": "Del Conca Gresini Moto3", + "team": { + "id": "2e9ead6f-cea5-44e7-b26b-bb5b7f95f735", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Del Conca Gresini Moto3", + "legacy_id": 112, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_112_1584101123.jpg", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2017/riders/moto3/bike/original/rider_8146_1490207801.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2017/riders/moto3/helmet/original/rider_8146_1490546560.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2017/riders/moto3/grid/original/rider_8146_1490197880.jpg" + } + }, + { + "season": 2016, + "number": 88, + "sponsored_team": "Pull & Bear Aspar Mahindra Team", + "team": { + "id": "b1dab8f5-c52c-49f7-9a9b-937829248864", + "constructor": { + "id": "fe62d196-ff34-409a-aa32-4aae146e2e3c", + "name": "Speed Up", + "legacy_id": 431 + }, + "name": "Pull & Bear Aspar Mahindra Team", + "legacy_id": 107, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto2/original/team_bike_107_1583857096.jpg", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2016/riders/moto3/bike/original/rider_8146_1458824007.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2016/riders/moto3/helmet/original/rider_8146_1458821844.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2016/riders/moto3/grid/original/rider_8146_1471606104.jpg" + } + }, + { + "season": 2015, + "number": 88, + "sponsored_team": "MAPFRE Team MAHINDRA", + "team": { + "id": "4218bb47-2163-4fd2-9d41-86c42c0e10ab", + "constructor": { + "id": "fe62d196-ff34-409a-aa32-4aae146e2e3c", + "name": "Speed Up", + "legacy_id": 431 + }, + "name": "MAPFRE Team MAHINDRA", + "legacy_id": 107, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto2/original/team_bike_107_1583857096.jpg", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/8146" + } + } + ], + "biography": { + "text": "Jorge Martin joined the Red Bull Rookies Cup for the 2012 season. Unfortunately it was a season plagued by various injuries, but the following year he tried again and finished runner-up behind the 2013 champion Karel Hanika. In 2014 he dominated the same Championship and took the crown. For 2015 Martín took the next step and participated in his first full season in the Moto3™ World Championship, where he joined the Mahindra Mapfre Aspar team. An awesome seventh in Aragon helped the Spaniard to finish the year 17th overall, with he and the Aspar team electing to continue their relationship for 2016. For 2017, the Spaniard moved to Del Conca Gresini Racing Moto3 to replace outgoing title contender Enea Bastianini. The master of qualifying and on pole for half the entire season, Martin took an impressive nine podiums despite a mid-season injury, and his maiden win in the season finale on the way to P4 overall. His stellar year would arrive in 2018 as Martin beat Marco Bezzecchi to the Moto3™ crown, claiming seven victories despite picking up another mid-season injury. Red Bull KTM Ajo in Moto2™ became the Spaniards home in 2019, and he rewarded his new team with podium finishes in Japan and Austria toward the tail end of the season. A title charge awaited in 2020, a Spanish GP podium followed up with a victory and podium finish in the Spielberg double, he was right in the Championship mix. However, a positive Covid-19 test meant he missed the Misano double, and successive retirements put to bed any plans of the Championship. There were three more podiums in the final five Grand Prix, including victory in Valencia, which helped him secure fifth place in the standings. 2021 brought a move up to MotoGP™ with Pramac Racing on a GP21, and it's safe to say Martin hit the ground running. A debut pole and podium were secured in Doha before a huge crash in Portimao saw him break eight bones. Missing four races, Martin returned and after the summer break, in Austria, a first victory was his. Two more podiums helped Martin secure the Rookie of the Year crown, and in 2022, the Spaniard is being tipped for greatness. ", + "media": { + "video": null, + "picture": "http://localhost:8089/riders/8/2/824d7bf5-ea19-47de-b74c-5d7e1c3ca130/biography/89_Jorge_Martin_DSC4698.jpg" + } + }, + "legend": false, + "legacy_id": 8146, + "merchandise_url": null, + "published": true, + "injured": false, + "banned": false, + "wildcard": false +} \ No newline at end of file diff --git a/src/test/resources/__files/rider/8148.json b/src/test/resources/__files/rider/8148.json index d0de434..d5fa103 100644 --- a/src/test/resources/__files/rider/8148.json +++ b/src/test/resources/__files/rider/8148.json @@ -29,7 +29,7 @@ "legacy_id": 11, "color": "#b7340b", "text_color": "#ffffff", - "picture": "https://photos.motogp.com/teams/8/c/8cbb2dae-cd62-4850-901d-994227434a5c/Tech3KTM.png", + "picture": "http://localhost:8089/teams/8/c/8cbb2dae-cd62-4850-901d-994227434a5c/Tech3KTM.png", "published": true }, "category": { @@ -42,19 +42,19 @@ "current": false, "pictures": { "profile": { - "main": "https://photos.motogp.com/riders/c/9/c9e8148b-db1f-42b4-b820-1a33f9de7c01/profile/main/_0000_09-Danilo-Petrucci,-Rider_A7R0752.png", + "main": "http://localhost:8089/riders/c/9/c9e8148b-db1f-42b4-b820-1a33f9de7c01/profile/main/_0000_09-Danilo-Petrucci,-Rider_A7R0752.png", "secondary": null }, "bike": { - "main": "https://photos.motogp.com/riders/c/9/c9e8148b-db1f-42b4-b820-1a33f9de7c01/bike/main/_0007_09-Danilo-Petrucci,-Bike_LG86662.png", + "main": "http://localhost:8089/riders/c/9/c9e8148b-db1f-42b4-b820-1a33f9de7c01/bike/main/_0007_09-Danilo-Petrucci,-Bike_LG86662.png", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/riders/c/9/c9e8148b-db1f-42b4-b820-1a33f9de7c01/helmet/main/_0007_09-Danilo-Petrucci,-Helmet_LG60638.png", + "main": "http://localhost:8089/riders/c/9/c9e8148b-db1f-42b4-b820-1a33f9de7c01/helmet/main/_0007_09-Danilo-Petrucci,-Helmet_LG60638.png", "secondary": null }, - "number": "https://photos.motogp.com/riders/8/c/8c649199-2778-4c7c-87be-dfc7f058d6fb/number/09-Danilo-Petrucci.png", - "portrait": "https://photos.motogp.com/riders/c/9/c9e8148b-db1f-42b4-b820-1a33f9de7c01/portrait/_0007_09-Danilo-Petrucci,-Rider_A7R0748.jpg" + "number": "http://localhost:8089/riders/8/c/8c649199-2778-4c7c-87be-dfc7f058d6fb/number/09-Danilo-Petrucci.png", + "portrait": "http://localhost:8089/riders/c/9/c9e8148b-db1f-42b4-b820-1a33f9de7c01/portrait/_0007_09-Danilo-Petrucci,-Rider_A7R0748.jpg" } }, { @@ -72,7 +72,7 @@ "legacy_id": 15, "color": "#f92515", "text_color": "#ffffff", - "picture": "https://photos.motogp.com/teams/7/d/7da82702-139c-4a2c-8ee3-a1478cb43c37/ducatilenovo.png", + "picture": "http://localhost:8089/teams/7/d/7da82702-139c-4a2c-8ee3-a1478cb43c37/ducatilenovo.png", "published": true }, "category": { @@ -85,19 +85,19 @@ "current": false, "pictures": { "profile": { - "main": "https://photos.motogp.com/riders/c/4/c423e8f6-3284-43c4-87d5-a94b33b5cc8b/profile/main/1_0002_09-Danilo-Petrucci-ITA,-Body_DSC1386.png", + "main": "http://localhost:8089/riders/c/4/c423e8f6-3284-43c4-87d5-a94b33b5cc8b/profile/main/1_0002_09-Danilo-Petrucci-ITA,-Body_DSC1386.png", "secondary": null }, "bike": { - "main": "https://photos.motogp.com/riders/e/1/e144e3f0-ff0b-41df-b375-17392e9b6d36/bike/main/09-Danilo-Petrucci.png", + "main": "http://localhost:8089/riders/e/1/e144e3f0-ff0b-41df-b375-17392e9b6d36/bike/main/09-Danilo-Petrucci.png", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/riders/2/b/2b7a3024-ec77-47c7-86c7-1c1d88852eb8/helmet/main/09-Danilo-Petrucci.jpg", + "main": "http://localhost:8089/riders/2/b/2b7a3024-ec77-47c7-86c7-1c1d88852eb8/helmet/main/09-Danilo-Petrucci.jpg", "secondary": null }, - "number": "https://photos.motogp.com/2019/dorsales/3/8148.png", - "portrait": "https://photos.motogp.com/riders/6/3/63041630-9660-4ee2-a507-e655085fe2b3/portrait/09_Danilo_Petrucci.jpg" + "number": "http://localhost:8089/2019/dorsales/3/8148.png", + "portrait": "http://localhost:8089/riders/6/3/63041630-9660-4ee2-a507-e655085fe2b3/portrait/09_Danilo_Petrucci.jpg" } }, { @@ -115,7 +115,7 @@ "legacy_id": 15, "color": "#f92515", "text_color": "#ffffff", - "picture": "https://photos.motogp.com/teams/7/d/7da82702-139c-4a2c-8ee3-a1478cb43c37/ducatilenovo.png", + "picture": "http://localhost:8089/teams/7/d/7da82702-139c-4a2c-8ee3-a1478cb43c37/ducatilenovo.png", "published": true }, "category": { @@ -132,15 +132,15 @@ "secondary": null }, "bike": { - "main": "https://photos.motogp.com/2019/riders/motogp/bike/original/rider_8148_1568365157.jpg", + "main": "http://localhost:8089/2019/riders/motogp/bike/original/rider_8148_1568365157.jpg", "secondary": null }, "helmet": { "main": null, "secondary": null }, - "number": "https://photos.motogp.com/2019/dorsales/3/8148.png", - "portrait": "https://photos.motogp.com/2019/riders/motogp/grid/original/rider_8148_1583942953.jpg" + "number": "http://localhost:8089/2019/dorsales/3/8148.png", + "portrait": "http://localhost:8089/2019/riders/motogp/grid/original/rider_8148_1583942953.jpg" } }, { @@ -158,7 +158,7 @@ "legacy_id": 15, "color": null, "text_color": null, - "picture": "https://photos.motogp.com/2020/teams/motogp/original/team_bike_15_1574329098.jpg", + "picture": "http://localhost:8089/2020/teams/motogp/original/team_bike_15_1574329098.jpg", "published": true }, "category": { @@ -175,15 +175,15 @@ "secondary": null }, "bike": { - "main": "https://photos.motogp.com/2018/riders/motogp/bike/original/rider_8148_1521313135.jpg", + "main": "http://localhost:8089/2018/riders/motogp/bike/original/rider_8148_1521313135.jpg", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/2018/riders/motogp/helmet/original/rider_8148_1521312628.jpg", + "main": "http://localhost:8089/2018/riders/motogp/helmet/original/rider_8148_1521312628.jpg", "secondary": null }, - "number": "https://photos.motogp.com/2018/dorsales/3/8148.png", - "portrait": "https://photos.motogp.com/2018/riders/motogp/grid/original/rider_8148_1521213978.jpg" + "number": "http://localhost:8089/2018/dorsales/3/8148.png", + "portrait": "http://localhost:8089/2018/riders/motogp/grid/original/rider_8148_1521213978.jpg" } }, { @@ -201,7 +201,7 @@ "legacy_id": 32, "color": null, "text_color": null, - "picture": "https://photos.motogp.com/2020/teams/motogp/original/team_bike_32_1574329095.jpg", + "picture": "http://localhost:8089/2020/teams/motogp/original/team_bike_32_1574329095.jpg", "published": true }, "category": { @@ -218,15 +218,15 @@ "secondary": null }, "bike": { - "main": "https://photos.motogp.com/2017/riders/motogp/bike/original/rider_8148_1490378255.jpg", + "main": "http://localhost:8089/2017/riders/motogp/bike/original/rider_8148_1490378255.jpg", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/2017/riders/motogp/helmet/original/rider_8148_1490543467.jpg", + "main": "http://localhost:8089/2017/riders/motogp/helmet/original/rider_8148_1490543467.jpg", "secondary": null }, "number": null, - "portrait": "https://photos.motogp.com/2017/riders/motogp/grid/original/rider_8148_1490884036.jpg" + "portrait": "http://localhost:8089/2017/riders/motogp/grid/original/rider_8148_1490884036.jpg" } }, { @@ -244,7 +244,7 @@ "legacy_id": 32, "color": null, "text_color": null, - "picture": "https://photos.motogp.com/2020/teams/motogp/original/team_bike_32_1574329095.jpg", + "picture": "http://localhost:8089/2020/teams/motogp/original/team_bike_32_1574329095.jpg", "published": true }, "category": { @@ -261,15 +261,15 @@ "secondary": null }, "bike": { - "main": "https://photos.motogp.com/2016/riders/motogp/bike/original/rider_8148_1458324184.jpg", + "main": "http://localhost:8089/2016/riders/motogp/bike/original/rider_8148_1458324184.jpg", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/2016/riders/motogp/helmet/original/rider_8148_1458324117.jpg", + "main": "http://localhost:8089/2016/riders/motogp/helmet/original/rider_8148_1458324117.jpg", "secondary": null }, "number": null, - "portrait": "https://photos.motogp.com/2016/riders/motogp/grid/original/rider_8148_1464880393.jpg" + "portrait": "http://localhost:8089/2016/riders/motogp/grid/original/rider_8148_1464880393.jpg" } }, { @@ -287,7 +287,7 @@ "legacy_id": 32, "color": null, "text_color": null, - "picture": "https://photos.motogp.com/2020/teams/motogp/original/team_bike_32_1574329095.jpg", + "picture": "http://localhost:8089/2020/teams/motogp/original/team_bike_32_1574329095.jpg", "published": true }, "category": { @@ -312,7 +312,7 @@ "secondary": null }, "number": null, - "portrait": "https://www.motogp.com/en/api/rider/photo/grid/old/8148" + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/8148" } }, { @@ -330,7 +330,7 @@ "legacy_id": 32, "color": null, "text_color": null, - "picture": "https://photos.motogp.com/2020/teams/motogp/original/team_bike_32_1574329095.jpg", + "picture": "http://localhost:8089/2020/teams/motogp/original/team_bike_32_1574329095.jpg", "published": true }, "category": { @@ -355,7 +355,7 @@ "secondary": null }, "number": null, - "portrait": "https://www.motogp.com/en/api/rider/photo/grid/old/8148" + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/8148" } }, { @@ -373,7 +373,7 @@ "legacy_id": 32, "color": null, "text_color": null, - "picture": "https://photos.motogp.com/2020/teams/motogp/original/team_bike_32_1574329095.jpg", + "picture": "http://localhost:8089/2020/teams/motogp/original/team_bike_32_1574329095.jpg", "published": true }, "category": { @@ -398,7 +398,7 @@ "secondary": null }, "number": null, - "portrait": "https://www.motogp.com/en/api/rider/photo/grid/old/8148" + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/8148" } }, { @@ -416,7 +416,7 @@ "legacy_id": 32, "color": null, "text_color": null, - "picture": "https://photos.motogp.com/2020/teams/motogp/original/team_bike_32_1574329095.jpg", + "picture": "http://localhost:8089/2020/teams/motogp/original/team_bike_32_1574329095.jpg", "published": true }, "category": { @@ -441,7 +441,7 @@ "secondary": null }, "number": null, - "portrait": "https://www.motogp.com/en/api/rider/photo/grid/old/8148" + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/8148" } } ], @@ -449,12 +449,12 @@ "text": "Petrucci won the 2011 national Superstock Championship in his native Italy, as well as finishing runner up in the FIM Superstock 1000 Cup in the same year. A test rider for Ducati’s Superbike project, ‘Petrux’ then moved into MotoGP™ in 2012 with IodaRacing Project. In his second year the Italian scored points an impressive 11 times, and following recovery from a wrist injury, Petrucci then moved to Octo Pramac Yakhnich thereafter and then scored his first podium at Silverstone in 2015. 2016 was interrupted by injury, but the Italian showed his talent sufficiently to gain a 2017 Ducati for this season whilst remaining with Pramac - the only non-Ducati Team rider to have the new machine. 2017 was his best season yet, with numerous podiums and on occasion, threats at the victory. He stayed at the squad for 2018 and impressed once again, earning a seat at the factory Ducati Team for 2019. A run of nine-straight top six results saw Petrucci begin his factory career in fine style, with a fairy-tale maiden Grand Prix victory coming his way at Mugello, in between two P3s in Le Mans and Barcelona. A more difficult latter half of the season saw Petrucci slip from third to sixth in the overall standings. 2020 proved a challenging year on-track for the Italian as he failed to find the speed to consistency challenge for the top places but he did have his moment also, securing victory in the rain in Le Mans, securing his second premier class victory. That was as good as it got though as he had to settle for 12th in the Championship. He will hope 2021 will bring renewed fortunes, as he joins up with Red Bull KTM Tech 3. ", "media": { "video": null, - "picture": "https://photos.motogp.com/riders/c/c/cc42cf7a-6b4f-4863-b628-56818e9e5edf/biography/09_Danilo_Petrucci_DSC7692.jpg" + "picture": "http://localhost:8089/riders/c/c/cc42cf7a-6b4f-4863-b628-56818e9e5edf/biography/09_Danilo_Petrucci_DSC7692.jpg" } }, "legend": false, "legacy_id": 8148, - "merchandise_url": "https://store.motogp.com/en/danilo-petrucci-09-merchandise?utm_source=motogp.com&utm_medium=Link&utm_content=DP9&utm_campaign=Store&o=motogp-riders-stats", + "merchandise_url": "http://localhost:8089/en/danilo-petrucci-09-merchandise?utm_source=localhost:8089&utm_medium=Link&utm_content=DP9&utm_campaign=Store&o=motogp-riders-stats", "published": true, "injured": false, "banned": false, diff --git a/src/test/resources/__files/rider/8150.json b/src/test/resources/__files/rider/8150.json index 9cf0b89..a686d95 100644 --- a/src/test/resources/__files/rider/8150.json +++ b/src/test/resources/__files/rider/8150.json @@ -1 +1,505 @@ -{"id":"04bf0ce4-5062-44fc-9745-ec85a8d8f8d3","name":"Alex","surname":"Rins","nickname":null,"country":{"iso":"ES","name":"Spain"},"birth_city":"Barcelona","birth_date":"1995-12-08","physical_attributes":{"height":176,"weight":72},"career":[{"season":2022,"number":42,"sponsored_team":"Team SUZUKI ECSTAR","team":{"id":"baac93d0-3068-4c7a-8d3f-ca215b568f77","constructor":{"id":"de2d5a0a-83e3-4114-b5c6-72d10d8a9619","name":"Suzuki","legacy_id":2},"name":"Team SUZUKI ECSTAR","legacy_id":37,"color":"#4294c1","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/6/a/6ae0f119-6c7c-4171-9062-b431459e7c18/Suzuki.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":"AR42","current":false,"pictures":{"profile":{"main":"https://photos.motogp.com/riders/8/5/85082afe-660d-41a0-9af3-02d224742f8c/profile/main/42_Alex_Rins.png","secondary":null},"bike":{"main":"https://photos.motogp.com/riders/8/5/85082afe-660d-41a0-9af3-02d224742f8c/bike/main/42_Alex_Rins_B.png","secondary":null},"helmet":{"main":"https://photos.motogp.com/riders/8/5/85082afe-660d-41a0-9af3-02d224742f8c/helmet/main/42-Alex-Rins.jpg","secondary":null},"number":"https://photos.motogp.com/riders/4/a/4ad4da7f-9b7b-4318-9023-d408e11608fd/number/42-Alex-Rins.png","portrait":"https://photos.motogp.com/riders/8/5/85082afe-660d-41a0-9af3-02d224742f8c/portrait/42_Alex_Rins.jpg"}},{"season":2021,"number":42,"sponsored_team":"Team SUZUKI ECSTAR","team":{"id":"baac93d0-3068-4c7a-8d3f-ca215b568f77","constructor":{"id":"de2d5a0a-83e3-4114-b5c6-72d10d8a9619","name":"Suzuki","legacy_id":2},"name":"Team SUZUKI ECSTAR","legacy_id":37,"color":"#4294c1","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/6/a/6ae0f119-6c7c-4171-9062-b431459e7c18/Suzuki.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":"AR42","current":false,"pictures":{"profile":{"main":"https://photos.motogp.com/riders/0/a/0a089dcc-2d76-464b-b43b-af3f634c3965/profile/main/_0004_42-Alex-Rins,-Rider_A7R1401.png","secondary":null},"bike":{"main":"https://photos.motogp.com/riders/0/a/0a089dcc-2d76-464b-b43b-af3f634c3965/bike/main/_0006_42-Alex-Rins,-Bike_LG87036.png","secondary":null},"helmet":{"main":"https://photos.motogp.com/riders/0/a/0a089dcc-2d76-464b-b43b-af3f634c3965/helmet/main/_0005_42-Alex-Rins,-Helmet_LG61417.jpg","secondary":null},"number":"https://photos.motogp.com/riders/4/a/4ad4da7f-9b7b-4318-9023-d408e11608fd/number/42-Alex-Rins.png","portrait":"https://photos.motogp.com/riders/8/a/8af1bf61-60f1-4469-b176-160fdc568bef/portrait/_0004_42-Alex-Rins,-Rider_A7R1396.jpg"}},{"season":2020,"number":42,"sponsored_team":"Team SUZUKI ECSTAR","team":{"id":"baac93d0-3068-4c7a-8d3f-ca215b568f77","constructor":{"id":"de2d5a0a-83e3-4114-b5c6-72d10d8a9619","name":"Suzuki","legacy_id":2},"name":"Team SUZUKI ECSTAR","legacy_id":37,"color":"#4294c1","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/6/a/6ae0f119-6c7c-4171-9062-b431459e7c18/Suzuki.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":"AR42","current":false,"pictures":{"profile":{"main":"https://photos.motogp.com/riders/7/1/71b24b28-cdcf-4427-9b20-d5a43febf7f7/profile/main/1_0013_42-Alex-Rins-ESP_DSC7041.png","secondary":null},"bike":{"main":"https://photos.motogp.com/riders/6/7/67a2e3f6-90cc-4971-a0a9-a435243bd0f0/bike/main/42-Alex-Rins.png","secondary":null},"helmet":{"main":"https://photos.motogp.com/riders/0/2/02009856-1392-46b6-b960-3610afa2e643/helmet/main/42-Alex-Rins.jpg","secondary":null},"number":"https://photos.motogp.com/2019/dorsales/3/8150.png","portrait":"https://photos.motogp.com/riders/a/8/a8fd9e89-9d51-4b0a-bd2c-7958bdd956c9/portrait/42_Alex_Rins.jpg"}},{"season":2019,"number":42,"sponsored_team":"Team SUZUKI ECSTAR","team":{"id":"baac93d0-3068-4c7a-8d3f-ca215b568f77","constructor":{"id":"de2d5a0a-83e3-4114-b5c6-72d10d8a9619","name":"Suzuki","legacy_id":2},"name":"Team SUZUKI ECSTAR","legacy_id":37,"color":"#4294c1","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/6/a/6ae0f119-6c7c-4171-9062-b431459e7c18/Suzuki.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2019/riders/motogp/bike/original/rider_8150_1552058425.jpg","secondary":null},"helmet":{"main":null,"secondary":null},"number":"https://photos.motogp.com/2019/dorsales/3/8150.png","portrait":"https://photos.motogp.com/2019/riders/motogp/grid/original/rider_8150_1554806171.jpg"}},{"season":2018,"number":42,"sponsored_team":"Team SUZUKI ECSTAR","team":{"id":"baac93d0-3068-4c7a-8d3f-ca215b568f77","constructor":{"id":"de2d5a0a-83e3-4114-b5c6-72d10d8a9619","name":"Suzuki","legacy_id":2},"name":"Team SUZUKI ECSTAR","legacy_id":37,"color":"#4294c1","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/6/a/6ae0f119-6c7c-4171-9062-b431459e7c18/Suzuki.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2018/riders/motogp/bike/original/rider_8150_1521313102.jpg","secondary":null},"helmet":{"main":"https://photos.motogp.com/2018/riders/motogp/helmet/original/rider_8150_1521312581.jpg","secondary":null},"number":"https://photos.motogp.com/2018/dorsales/3/8150.png","portrait":"https://photos.motogp.com/2018/riders/motogp/grid/original/rider_8150_1521213924.jpg"}},{"season":2017,"number":42,"sponsored_team":"Team SUZUKI ECSTAR","team":{"id":"baac93d0-3068-4c7a-8d3f-ca215b568f77","constructor":{"id":"de2d5a0a-83e3-4114-b5c6-72d10d8a9619","name":"Suzuki","legacy_id":2},"name":"Team SUZUKI ECSTAR","legacy_id":37,"color":"#4294c1","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/6/a/6ae0f119-6c7c-4171-9062-b431459e7c18/Suzuki.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2017/riders/motogp/bike/original/rider_8150_1490379253.jpg","secondary":null},"helmet":{"main":"https://photos.motogp.com/2017/riders/motogp/helmet/original/rider_8150_1490543435.jpg","secondary":null},"number":null,"portrait":"https://photos.motogp.com/2017/riders/motogp/grid/original/rider_8150_1490884065.jpg"}},{"season":2016,"number":40,"sponsored_team":"Paginas Amarillas HP 40","team":{"id":"4d67eea8-8244-44a5-9dcd-424e2b4e4bdf","constructor":{"id":"791160c2-6d2f-47ad-8d87-29e4f729073a","name":"Kalex","legacy_id":447},"name":"Paginas Amarillas HP 40","legacy_id":213,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/moto2/original/team_bike_213_1583857100.jpg","published":true},"category":{"id":"ea854a67-73a4-4a28-ac77-d67b3b2a530a","name":"Moto2","legacy_id":2},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2016/riders/moto2/bike/original/rider_8150_1467032006.jpg","secondary":null},"helmet":{"main":"https://photos.motogp.com/2016/riders/moto2/helmet/original/rider_8150_1458821585.jpg","secondary":null},"number":null,"portrait":"https://photos.motogp.com/2016/riders/moto2/grid/original/rider_8150_1458821373.jpg"}},{"season":2015,"number":40,"sponsored_team":"Paginas Amarillas HP 40","team":{"id":"4d67eea8-8244-44a5-9dcd-424e2b4e4bdf","constructor":{"id":"791160c2-6d2f-47ad-8d87-29e4f729073a","name":"Kalex","legacy_id":447},"name":"Paginas Amarillas HP 40","legacy_id":213,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/moto2/original/team_bike_213_1583857100.jpg","published":true},"category":{"id":"ea854a67-73a4-4a28-ac77-d67b3b2a530a","name":"Moto2","legacy_id":2},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/8150"}},{"season":2014,"number":42,"sponsored_team":"Estrella Galicia 0,0","team":{"id":"ae848aa2-b716-49d5-8b95-218651605120","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Estrella Galicia 0,0","legacy_id":106,"color":"#027bce","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/4/f/4f858066-fdbe-47b4-9fb0-5e65910ea0fd/team_106_moto3_2020.png","published":true},"category":{"id":"1ab203aa-e292-4842-8bed-971911357af1","name":"Moto3","legacy_id":1},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/8150"}},{"season":2013,"number":42,"sponsored_team":"Estrella Galicia 0,0","team":{"id":"ae848aa2-b716-49d5-8b95-218651605120","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Estrella Galicia 0,0","legacy_id":106,"color":"#027bce","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/4/f/4f858066-fdbe-47b4-9fb0-5e65910ea0fd/team_106_moto3_2020.png","published":true},"category":{"id":"1ab203aa-e292-4842-8bed-971911357af1","name":"Moto3","legacy_id":1},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/8150"}},{"season":2012,"number":42,"sponsored_team":"Estrella Galicia 0,0","team":{"id":"ae848aa2-b716-49d5-8b95-218651605120","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Estrella Galicia 0,0","legacy_id":106,"color":"#027bce","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/4/f/4f858066-fdbe-47b4-9fb0-5e65910ea0fd/team_106_moto3_2020.png","published":true},"category":{"id":"1ab203aa-e292-4842-8bed-971911357af1","name":"Moto3","legacy_id":1},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/8150"}}],"biography":{"text":"Alex Rins won the CEV in 2011 before moving up to the Moto3™ World Championship in 2012 and gaining the title of Rookie of the Year. A title contender down to the last corner in 2013 after more wins and podiums, the Spaniard was just beaten to the crown by compatriot Maverick Viñales. After a more difficult 2014 affected slightly by injury, Rins moved to Moto2™ for 2015 and was Rookie of the Year, taking wins in his debut season in the intermediate class. A title challenger in 2016, the former national Champion finished the season in third after more impressive wins and podiums, and moved up to MotoGP™ in 2017 with Team Suzuki Ecstar. Despite some trouble with injury and missed races, Rins was impressive and took some top five results as a rookie – a good springboard for his sophomore season. He went on to take five podiums in 2018 and consistently fight at the front; another solid foundation for 2019. The next step was made in 2019 as Rins claimed a maiden MotoGP™ victory at the Americas GP, before repeating the feat in Silverstone. 2020 was another outstanding year for the Spaniard as he claimed victory in the Aragon GP as well as podium finishes in the Catalan, Teruel and European GPs, helping him claim 3rd overall in the Championship. 2021 was a year to forget for Rins, with crashes at crucial times costing him dearly. He threw away opportunities on no fewer than six occasions, tasting podium success once at the British GP. The Spaniard will be desperate to bounce back in 2022.","media":{"video":null,"picture":"https://photos.motogp.com/riders/4/1/413ad512-9013-4a90-9b5f-06187e3a3379/biography/42_Alex_Rins_DSC7505.jpg"}},"legend":false,"legacy_id":8150,"merchandise_url":"https://store.motogp.com/en/alex-rins-42-merchandise?utm_source=motogp.com&utm_medium=Link&utm_content=AR12&utm_campaign=Store&o=motogp-riders-stats","published":true,"injured":false,"banned":false,"wildcard":false} \ No newline at end of file +{ + "id": "04bf0ce4-5062-44fc-9745-ec85a8d8f8d3", + "name": "Alex", + "surname": "Rins", + "nickname": null, + "country": { + "iso": "ES", + "name": "Spain" + }, + "birth_city": "Barcelona", + "birth_date": "1995-12-08", + "physical_attributes": { + "height": 176, + "weight": 72 + }, + "career": [ + { + "season": 2022, + "number": 42, + "sponsored_team": "Team SUZUKI ECSTAR", + "team": { + "id": "baac93d0-3068-4c7a-8d3f-ca215b568f77", + "constructor": { + "id": "de2d5a0a-83e3-4114-b5c6-72d10d8a9619", + "name": "Suzuki", + "legacy_id": 2 + }, + "name": "Team SUZUKI ECSTAR", + "legacy_id": 37, + "color": "#4294c1", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/6/a/6ae0f119-6c7c-4171-9062-b431459e7c18/Suzuki.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "AR42", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/8/5/85082afe-660d-41a0-9af3-02d224742f8c/profile/main/42_Alex_Rins.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/8/5/85082afe-660d-41a0-9af3-02d224742f8c/bike/main/42_Alex_Rins_B.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/8/5/85082afe-660d-41a0-9af3-02d224742f8c/helmet/main/42-Alex-Rins.jpg", + "secondary": null + }, + "number": "http://localhost:8089/riders/4/a/4ad4da7f-9b7b-4318-9023-d408e11608fd/number/42-Alex-Rins.png", + "portrait": "http://localhost:8089/riders/8/5/85082afe-660d-41a0-9af3-02d224742f8c/portrait/42_Alex_Rins.jpg" + } + }, + { + "season": 2021, + "number": 42, + "sponsored_team": "Team SUZUKI ECSTAR", + "team": { + "id": "baac93d0-3068-4c7a-8d3f-ca215b568f77", + "constructor": { + "id": "de2d5a0a-83e3-4114-b5c6-72d10d8a9619", + "name": "Suzuki", + "legacy_id": 2 + }, + "name": "Team SUZUKI ECSTAR", + "legacy_id": 37, + "color": "#4294c1", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/6/a/6ae0f119-6c7c-4171-9062-b431459e7c18/Suzuki.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "AR42", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/0/a/0a089dcc-2d76-464b-b43b-af3f634c3965/profile/main/_0004_42-Alex-Rins,-Rider_A7R1401.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/0/a/0a089dcc-2d76-464b-b43b-af3f634c3965/bike/main/_0006_42-Alex-Rins,-Bike_LG87036.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/0/a/0a089dcc-2d76-464b-b43b-af3f634c3965/helmet/main/_0005_42-Alex-Rins,-Helmet_LG61417.jpg", + "secondary": null + }, + "number": "http://localhost:8089/riders/4/a/4ad4da7f-9b7b-4318-9023-d408e11608fd/number/42-Alex-Rins.png", + "portrait": "http://localhost:8089/riders/8/a/8af1bf61-60f1-4469-b176-160fdc568bef/portrait/_0004_42-Alex-Rins,-Rider_A7R1396.jpg" + } + }, + { + "season": 2020, + "number": 42, + "sponsored_team": "Team SUZUKI ECSTAR", + "team": { + "id": "baac93d0-3068-4c7a-8d3f-ca215b568f77", + "constructor": { + "id": "de2d5a0a-83e3-4114-b5c6-72d10d8a9619", + "name": "Suzuki", + "legacy_id": 2 + }, + "name": "Team SUZUKI ECSTAR", + "legacy_id": 37, + "color": "#4294c1", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/6/a/6ae0f119-6c7c-4171-9062-b431459e7c18/Suzuki.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "AR42", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/7/1/71b24b28-cdcf-4427-9b20-d5a43febf7f7/profile/main/1_0013_42-Alex-Rins-ESP_DSC7041.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/6/7/67a2e3f6-90cc-4971-a0a9-a435243bd0f0/bike/main/42-Alex-Rins.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/0/2/02009856-1392-46b6-b960-3610afa2e643/helmet/main/42-Alex-Rins.jpg", + "secondary": null + }, + "number": "http://localhost:8089/2019/dorsales/3/8150.png", + "portrait": "http://localhost:8089/riders/a/8/a8fd9e89-9d51-4b0a-bd2c-7958bdd956c9/portrait/42_Alex_Rins.jpg" + } + }, + { + "season": 2019, + "number": 42, + "sponsored_team": "Team SUZUKI ECSTAR", + "team": { + "id": "baac93d0-3068-4c7a-8d3f-ca215b568f77", + "constructor": { + "id": "de2d5a0a-83e3-4114-b5c6-72d10d8a9619", + "name": "Suzuki", + "legacy_id": 2 + }, + "name": "Team SUZUKI ECSTAR", + "legacy_id": 37, + "color": "#4294c1", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/6/a/6ae0f119-6c7c-4171-9062-b431459e7c18/Suzuki.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2019/riders/motogp/bike/original/rider_8150_1552058425.jpg", + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": "http://localhost:8089/2019/dorsales/3/8150.png", + "portrait": "http://localhost:8089/2019/riders/motogp/grid/original/rider_8150_1554806171.jpg" + } + }, + { + "season": 2018, + "number": 42, + "sponsored_team": "Team SUZUKI ECSTAR", + "team": { + "id": "baac93d0-3068-4c7a-8d3f-ca215b568f77", + "constructor": { + "id": "de2d5a0a-83e3-4114-b5c6-72d10d8a9619", + "name": "Suzuki", + "legacy_id": 2 + }, + "name": "Team SUZUKI ECSTAR", + "legacy_id": 37, + "color": "#4294c1", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/6/a/6ae0f119-6c7c-4171-9062-b431459e7c18/Suzuki.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2018/riders/motogp/bike/original/rider_8150_1521313102.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2018/riders/motogp/helmet/original/rider_8150_1521312581.jpg", + "secondary": null + }, + "number": "http://localhost:8089/2018/dorsales/3/8150.png", + "portrait": "http://localhost:8089/2018/riders/motogp/grid/original/rider_8150_1521213924.jpg" + } + }, + { + "season": 2017, + "number": 42, + "sponsored_team": "Team SUZUKI ECSTAR", + "team": { + "id": "baac93d0-3068-4c7a-8d3f-ca215b568f77", + "constructor": { + "id": "de2d5a0a-83e3-4114-b5c6-72d10d8a9619", + "name": "Suzuki", + "legacy_id": 2 + }, + "name": "Team SUZUKI ECSTAR", + "legacy_id": 37, + "color": "#4294c1", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/6/a/6ae0f119-6c7c-4171-9062-b431459e7c18/Suzuki.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2017/riders/motogp/bike/original/rider_8150_1490379253.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2017/riders/motogp/helmet/original/rider_8150_1490543435.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2017/riders/motogp/grid/original/rider_8150_1490884065.jpg" + } + }, + { + "season": 2016, + "number": 40, + "sponsored_team": "Paginas Amarillas HP 40", + "team": { + "id": "4d67eea8-8244-44a5-9dcd-424e2b4e4bdf", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "Paginas Amarillas HP 40", + "legacy_id": 213, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto2/original/team_bike_213_1583857100.jpg", + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2016/riders/moto2/bike/original/rider_8150_1467032006.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2016/riders/moto2/helmet/original/rider_8150_1458821585.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2016/riders/moto2/grid/original/rider_8150_1458821373.jpg" + } + }, + { + "season": 2015, + "number": 40, + "sponsored_team": "Paginas Amarillas HP 40", + "team": { + "id": "4d67eea8-8244-44a5-9dcd-424e2b4e4bdf", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "Paginas Amarillas HP 40", + "legacy_id": 213, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto2/original/team_bike_213_1583857100.jpg", + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/8150" + } + }, + { + "season": 2014, + "number": 42, + "sponsored_team": "Estrella Galicia 0,0", + "team": { + "id": "ae848aa2-b716-49d5-8b95-218651605120", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Estrella Galicia 0,0", + "legacy_id": 106, + "color": "#027bce", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/4/f/4f858066-fdbe-47b4-9fb0-5e65910ea0fd/team_106_moto3_2020.png", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/8150" + } + }, + { + "season": 2013, + "number": 42, + "sponsored_team": "Estrella Galicia 0,0", + "team": { + "id": "ae848aa2-b716-49d5-8b95-218651605120", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Estrella Galicia 0,0", + "legacy_id": 106, + "color": "#027bce", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/4/f/4f858066-fdbe-47b4-9fb0-5e65910ea0fd/team_106_moto3_2020.png", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/8150" + } + }, + { + "season": 2012, + "number": 42, + "sponsored_team": "Estrella Galicia 0,0", + "team": { + "id": "ae848aa2-b716-49d5-8b95-218651605120", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Estrella Galicia 0,0", + "legacy_id": 106, + "color": "#027bce", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/4/f/4f858066-fdbe-47b4-9fb0-5e65910ea0fd/team_106_moto3_2020.png", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/8150" + } + } + ], + "biography": { + "text": "Alex Rins won the CEV in 2011 before moving up to the Moto3™ World Championship in 2012 and gaining the title of Rookie of the Year. A title contender down to the last corner in 2013 after more wins and podiums, the Spaniard was just beaten to the crown by compatriot Maverick Viñales. After a more difficult 2014 affected slightly by injury, Rins moved to Moto2™ for 2015 and was Rookie of the Year, taking wins in his debut season in the intermediate class. A title challenger in 2016, the former national Champion finished the season in third after more impressive wins and podiums, and moved up to MotoGP™ in 2017 with Team Suzuki Ecstar. Despite some trouble with injury and missed races, Rins was impressive and took some top five results as a rookie – a good springboard for his sophomore season. He went on to take five podiums in 2018 and consistently fight at the front; another solid foundation for 2019. The next step was made in 2019 as Rins claimed a maiden MotoGP™ victory at the Americas GP, before repeating the feat in Silverstone. 2020 was another outstanding year for the Spaniard as he claimed victory in the Aragon GP as well as podium finishes in the Catalan, Teruel and European GPs, helping him claim 3rd overall in the Championship. 2021 was a year to forget for Rins, with crashes at crucial times costing him dearly. He threw away opportunities on no fewer than six occasions, tasting podium success once at the British GP. The Spaniard will be desperate to bounce back in 2022.", + "media": { + "video": null, + "picture": "http://localhost:8089/riders/4/1/413ad512-9013-4a90-9b5f-06187e3a3379/biography/42_Alex_Rins_DSC7505.jpg" + } + }, + "legend": false, + "legacy_id": 8150, + "merchandise_url": "http://localhost:8089/en/alex-rins-42-merchandise?utm_source=localhost:8089&utm_medium=Link&utm_content=AR12&utm_campaign=Store&o=motogp-riders-stats", + "published": true, + "injured": false, + "banned": false, + "wildcard": false +} \ No newline at end of file diff --git a/src/test/resources/__files/rider/8173.json b/src/test/resources/__files/rider/8173.json index e977c5d..7ca1554 100644 --- a/src/test/resources/__files/rider/8173.json +++ b/src/test/resources/__files/rider/8173.json @@ -1 +1,548 @@ -{"id":"41195f0f-9817-4a4d-913e-c1fbbb351d9b","name":"Alex","surname":"Marquez","nickname":null,"country":{"iso":"ES","name":"Spain"},"birth_city":"Cervera","birth_date":"1996-04-23","physical_attributes":{"height":179,"weight":65},"career":[{"season":2022,"number":73,"sponsored_team":"LCR Honda Castrol","team":{"id":"77a0174a-c84d-4955-a722-b39e4d8e4ce5","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"LCR Honda","legacy_id":17,"color":"#fafafa","text_color":"#323232","picture":"https://photos.motogp.com/teams/6/a/6ad36fc5-ecaa-437a-9324-f45420b4198b/LCR.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":"AM73","current":false,"pictures":{"profile":{"main":"https://photos.motogp.com/riders/7/2/7221ae81-1352-4bca-b6bc-080d95c8779a/profile/main/73_Alex_Marquez.png","secondary":null},"bike":{"main":"https://photos.motogp.com/riders/6/4/64e3b6a1-f321-4394-b7a2-74179fafa460/bike/main/_0000_73-Alex-Marquez-Bike-MotoGPDSC04156.png","secondary":null},"helmet":{"main":"https://photos.motogp.com/riders/7/2/7221ae81-1352-4bca-b6bc-080d95c8779a/helmet/main/73-Alex-Marquez.jpg","secondary":null},"number":"https://photos.motogp.com/riders/1/3/13629988-e81d-4d1a-b7fa-5d608e1960f6/number/73-Alex-Marquez.png","portrait":"https://photos.motogp.com/riders/7/2/7221ae81-1352-4bca-b6bc-080d95c8779a/portrait/73_Alex_Marquez.jpg"}},{"season":2021,"number":73,"sponsored_team":"LCR Honda Castrol","team":{"id":"77a0174a-c84d-4955-a722-b39e4d8e4ce5","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"LCR Honda","legacy_id":17,"color":"#fafafa","text_color":"#323232","picture":"https://photos.motogp.com/teams/6/a/6ad36fc5-ecaa-437a-9324-f45420b4198b/LCR.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":"AM73","current":false,"pictures":{"profile":{"main":"https://photos.motogp.com/riders/f/4/f4ecfe15-f9a1-463b-b6ed-ee739e1ab77d/profile/main/_0005_73-Alex-Marquez,-Rider_A7R0531.png","secondary":null},"bike":{"main":"https://photos.motogp.com/riders/f/4/f4ecfe15-f9a1-463b-b6ed-ee739e1ab77d/bike/main/_0001_73-Alex-Marquez,-Bike_LG86539.png","secondary":null},"helmet":{"main":"https://photos.motogp.com/riders/f/4/f4ecfe15-f9a1-463b-b6ed-ee739e1ab77d/helmet/main/_0001_73-Alex-Marquez,-Helmet_LG60476.png","secondary":null},"number":"https://photos.motogp.com/riders/1/3/13629988-e81d-4d1a-b7fa-5d608e1960f6/number/73-Alex-Marquez.png","portrait":"https://photos.motogp.com/riders/f/4/f4ecfe15-f9a1-463b-b6ed-ee739e1ab77d/portrait/_0001_73-Alex-Marquez,-Rider_A7R0524.jpg"}},{"season":2020,"number":73,"sponsored_team":"Repsol Honda Team","team":{"id":"ce837bd3-bc07-40ef-83cf-6a8025bededf","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Repsol Honda Team","legacy_id":14,"color":"#ff9912","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":"AM73","current":false,"pictures":{"profile":{"main":"https://photos.motogp.com/riders/e/a/eaca9c44-ae6b-45a4-996f-8a9c06aa1bce/profile/main/1_0019_73-Alex-Marquez-ESP,-Body_DSC1652.png","secondary":null},"bike":{"main":"https://photos.motogp.com/riders/8/9/892d7e39-4c70-4a00-ad66-671ffbbc84da/bike/main/73-Alex-Marquez.png","secondary":null},"helmet":{"main":"https://photos.motogp.com/riders/5/d/5dfa6dfd-d709-482e-a02b-9d9eb1294d5d/helmet/main/73-Alex-Marquez.jpg","secondary":null},"number":"https://photos.motogp.com/riders/4/e/4ebc671a-82ac-4497-aa85-505bc0300ce7/number/73_Alex_Marquez-.png","portrait":"https://photos.motogp.com/riders/8/7/870c16c1-9a93-4968-b104-8a27d00e42d4/portrait/73_Alex_Marquez.jpg"}},{"season":2019,"number":73,"sponsored_team":"EG 0,0 Marc VDS","team":{"id":"2369c22c-90fb-4d77-8270-4df47c1fdf23","constructor":{"id":"791160c2-6d2f-47ad-8d87-29e4f729073a","name":"Kalex","legacy_id":447},"name":"ELF Marc VDS Racing Team","legacy_id":205,"color":"#702538","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/6/9/6977e13c-7011-48d5-950d-ff1d077b4e20/22-Sam-Lowes-Bike-Moto2DSC03544.png","published":true},"category":{"id":"ea854a67-73a4-4a28-ac77-d67b3b2a530a","name":"Moto2","legacy_id":2},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2019/riders/moto2/bike/original/rider_8173_1551780726.jpg","secondary":null},"helmet":{"main":"https://photos.motogp.com/2019/riders/moto2/helmet/original/rider_8173_1551784627.jpg","secondary":null},"number":"https://photos.motogp.com/2020/dorsales/others/73.png","portrait":"https://photos.motogp.com/2019/riders/moto2/grid/original/rider_8173_1582296492.jpg"}},{"season":2018,"number":73,"sponsored_team":"EG 0,0 Marc VDS","team":{"id":"2369c22c-90fb-4d77-8270-4df47c1fdf23","constructor":{"id":"791160c2-6d2f-47ad-8d87-29e4f729073a","name":"Kalex","legacy_id":447},"name":"ELF Marc VDS Racing Team","legacy_id":205,"color":"#702538","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/6/9/6977e13c-7011-48d5-950d-ff1d077b4e20/22-Sam-Lowes-Bike-Moto2DSC03544.png","published":true},"category":{"id":"ea854a67-73a4-4a28-ac77-d67b3b2a530a","name":"Moto2","legacy_id":2},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2018/riders/moto2/bike/original/rider_8173_1521135555.jpg","secondary":null},"helmet":{"main":"https://photos.motogp.com/2018/riders/moto2/helmet/original/rider_8173_1521312577.jpg","secondary":null},"number":"https://photos.motogp.com/2020/dorsales/others/73.png","portrait":"https://photos.motogp.com/2018/riders/moto2/grid/original/rider_8173_1521039331.jpg"}},{"season":2017,"number":73,"sponsored_team":"EG 0,0 Marc VDS","team":{"id":"2369c22c-90fb-4d77-8270-4df47c1fdf23","constructor":{"id":"791160c2-6d2f-47ad-8d87-29e4f729073a","name":"Kalex","legacy_id":447},"name":"ELF Marc VDS Racing Team","legacy_id":205,"color":"#702538","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/6/9/6977e13c-7011-48d5-950d-ff1d077b4e20/22-Sam-Lowes-Bike-Moto2DSC03544.png","published":true},"category":{"id":"ea854a67-73a4-4a28-ac77-d67b3b2a530a","name":"Moto2","legacy_id":2},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2017/riders/moto2/bike/original/rider_8173_1490204517.jpg","secondary":null},"helmet":{"main":"https://photos.motogp.com/2017/riders/moto2/helmet/original/rider_8173_1490546444.jpg","secondary":null},"number":null,"portrait":"https://photos.motogp.com/2017/riders/moto2/grid/original/rider_8173_1490198311.jpg"}},{"season":2016,"number":73,"sponsored_team":"Estrella Galicia 0,0 Marc VDS","team":{"id":"2369c22c-90fb-4d77-8270-4df47c1fdf23","constructor":{"id":"791160c2-6d2f-47ad-8d87-29e4f729073a","name":"Kalex","legacy_id":447},"name":"ELF Marc VDS Racing Team","legacy_id":205,"color":"#702538","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/6/9/6977e13c-7011-48d5-950d-ff1d077b4e20/22-Sam-Lowes-Bike-Moto2DSC03544.png","published":true},"category":{"id":"ea854a67-73a4-4a28-ac77-d67b3b2a530a","name":"Moto2","legacy_id":2},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2016/riders/moto2/bike/original/rider_8173_1458824299.jpg","secondary":null},"helmet":{"main":"https://photos.motogp.com/2016/riders/moto2/helmet/original/rider_8173_1458821551.jpg","secondary":null},"number":null,"portrait":"https://photos.motogp.com/2016/riders/moto2/grid/original/rider_8173_1458821433.jpg"}},{"season":2015,"number":73,"sponsored_team":"EG 0,0 Marc VDS","team":{"id":"2369c22c-90fb-4d77-8270-4df47c1fdf23","constructor":{"id":"791160c2-6d2f-47ad-8d87-29e4f729073a","name":"Kalex","legacy_id":447},"name":"ELF Marc VDS Racing Team","legacy_id":205,"color":"#702538","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/6/9/6977e13c-7011-48d5-950d-ff1d077b4e20/22-Sam-Lowes-Bike-Moto2DSC03544.png","published":true},"category":{"id":"ea854a67-73a4-4a28-ac77-d67b3b2a530a","name":"Moto2","legacy_id":2},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/8173"}},{"season":2014,"number":12,"sponsored_team":"Estrella Galicia 0,0","team":{"id":"ae848aa2-b716-49d5-8b95-218651605120","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Estrella Galicia 0,0","legacy_id":106,"color":"#027bce","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/4/f/4f858066-fdbe-47b4-9fb0-5e65910ea0fd/team_106_moto3_2020.png","published":true},"category":{"id":"1ab203aa-e292-4842-8bed-971911357af1","name":"Moto3","legacy_id":1},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/8173"}},{"season":2013,"number":12,"sponsored_team":"Estrella Galicia 0,0","team":{"id":"ae848aa2-b716-49d5-8b95-218651605120","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Estrella Galicia 0,0","legacy_id":106,"color":"#027bce","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/4/f/4f858066-fdbe-47b4-9fb0-5e65910ea0fd/team_106_moto3_2020.png","published":true},"category":{"id":"1ab203aa-e292-4842-8bed-971911357af1","name":"Moto3","legacy_id":1},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/8173"}},{"season":2012,"number":12,"sponsored_team":"Ambrogio Next Racing","team":{"id":"06a79f3b-fe43-423b-b8c7-a5d06d353342","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Ambrogio Next Racing","legacy_id":109,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/moto3/original/team_bike_109_1584101114.jpg","published":true},"category":{"id":"1ab203aa-e292-4842-8bed-971911357af1","name":"Moto3","legacy_id":1},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/8173"}},{"season":2012,"number":12,"sponsored_team":"Estrella Galicia 0,0","team":{"id":"ae848aa2-b716-49d5-8b95-218651605120","constructor":{"id":"8e21365c-a465-476a-a66b-5fda45058c2e","name":"Honda","legacy_id":1},"name":"Estrella Galicia 0,0","legacy_id":106,"color":"#027bce","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/4/f/4f858066-fdbe-47b4-9fb0-5e65910ea0fd/team_106_moto3_2020.png","published":true},"category":{"id":"1ab203aa-e292-4842-8bed-971911357af1","name":"Moto3","legacy_id":1},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/8173"}}],"biography":{"text":"The younger brother of reigning MotoGP™ World Champion Marc Marquez, Alex Marquez began his path to the world stage in 2010 when he joined Team Competition Monlau 125 in the FIM CEV Repsol. He did not participate in the first race of the Championship, as he was five days below the minimum age to compete. Yet in the second race, held at Albacete, he achieved 11th place. That year he finished 11th in the final standings with 24 points. In 2011 he then came very close finishing the season top, but just missed out to older rival Alex Rins. 2012 proved to be his year, as he won the Moto3™ CEV title, and took part in numerous wildcard rides in the Moto3™ World Championship including an incredible performance at the Catalan GP. For the 2013 season he stepped up full time with the Estrella Galicia 0,0 team and secured his first victory at Motegi, coming fourth overall. In 2014, Marquez won more races and took more podiums on the way to taking the Moto3™ World Championship. Marquez then moved up to Moto2™ with the EG0,0 Marc VDS team for 2015 and had a tough rookie year with two top four finishes, looking to expand on the potential he showed the following year as rider and team remained together in 2016. He started the season with an arm injury, but then took his first podium finish with a stunning ride at MotorLand Aragon to come home P2 after a last corner duel. Taking his first intermediate class win after proving unstoppable on home turf at Jerez, Marquez followed it up with another win at home in the Catalan GP. Then injured mid-season and taking some time to recover fully, the rider from Cervera was unable to fight for the title but took fourth overall, after another victory at Motegi in a tactical masterpiece. In 2018, Marquez was able to claim six podium finishes, but he went the year without a win. Remaining with the team for another year, 2019 saw Marquez step up to the plate. Five victories and another five podiums saw him claim his second World Championship with a race to spare, and following Jorge Lorenzo’s retirement from MotoGP™, the then Moto2™ World Champion stepped into the Repsol Honda colours to partner his brother Marc for 2020. While it was a year to forget for the older Marquez brother, Alex made hay as he claimed back-to-back second places in the French and Aragon GPs. He narrowly missed out on the Rookie of the Year award, coming 14th overall in his maiden year. 2021 saw him remain with Honda, but in the LCR Honda Castrol ranks under the guidance of Lucio Cecchinello. A struggling Honda package saw Marquez struggle to find any real form, but P4 at the Algarve GP was a reminder of the speed Marquez possesses. Staying with LCR in 2022, a brand-new HRC bike will hopefully bring better fortunes for the double World Champion. ","media":{"video":null,"picture":"https://photos.motogp.com/riders/7/d/7dbf5f45-d60b-4799-9c9f-52f17c71fe3f/biography/73_Alex_Marquez_DSC8805.jpg"}},"legend":false,"legacy_id":8173,"merchandise_url":"https://store.motogp.com/en/73-alex-marquez-merchandise?utm_source=motogp.com&utm_medium=Link&utm_content=AM73&utm_campaign=Store&o=motogp-riders-stats","published":true,"injured":false,"banned":false,"wildcard":false} \ No newline at end of file +{ + "id": "41195f0f-9817-4a4d-913e-c1fbbb351d9b", + "name": "Alex", + "surname": "Marquez", + "nickname": null, + "country": { + "iso": "ES", + "name": "Spain" + }, + "birth_city": "Cervera", + "birth_date": "1996-04-23", + "physical_attributes": { + "height": 179, + "weight": 65 + }, + "career": [ + { + "season": 2022, + "number": 73, + "sponsored_team": "LCR Honda Castrol", + "team": { + "id": "77a0174a-c84d-4955-a722-b39e4d8e4ce5", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "LCR Honda", + "legacy_id": 17, + "color": "#fafafa", + "text_color": "#323232", + "picture": "http://localhost:8089/teams/6/a/6ad36fc5-ecaa-437a-9324-f45420b4198b/LCR.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "AM73", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/7/2/7221ae81-1352-4bca-b6bc-080d95c8779a/profile/main/73_Alex_Marquez.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/6/4/64e3b6a1-f321-4394-b7a2-74179fafa460/bike/main/_0000_73-Alex-Marquez-Bike-MotoGPDSC04156.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/7/2/7221ae81-1352-4bca-b6bc-080d95c8779a/helmet/main/73-Alex-Marquez.jpg", + "secondary": null + }, + "number": "http://localhost:8089/riders/1/3/13629988-e81d-4d1a-b7fa-5d608e1960f6/number/73-Alex-Marquez.png", + "portrait": "http://localhost:8089/riders/7/2/7221ae81-1352-4bca-b6bc-080d95c8779a/portrait/73_Alex_Marquez.jpg" + } + }, + { + "season": 2021, + "number": 73, + "sponsored_team": "LCR Honda Castrol", + "team": { + "id": "77a0174a-c84d-4955-a722-b39e4d8e4ce5", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "LCR Honda", + "legacy_id": 17, + "color": "#fafafa", + "text_color": "#323232", + "picture": "http://localhost:8089/teams/6/a/6ad36fc5-ecaa-437a-9324-f45420b4198b/LCR.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "AM73", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/f/4/f4ecfe15-f9a1-463b-b6ed-ee739e1ab77d/profile/main/_0005_73-Alex-Marquez,-Rider_A7R0531.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/f/4/f4ecfe15-f9a1-463b-b6ed-ee739e1ab77d/bike/main/_0001_73-Alex-Marquez,-Bike_LG86539.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/f/4/f4ecfe15-f9a1-463b-b6ed-ee739e1ab77d/helmet/main/_0001_73-Alex-Marquez,-Helmet_LG60476.png", + "secondary": null + }, + "number": "http://localhost:8089/riders/1/3/13629988-e81d-4d1a-b7fa-5d608e1960f6/number/73-Alex-Marquez.png", + "portrait": "http://localhost:8089/riders/f/4/f4ecfe15-f9a1-463b-b6ed-ee739e1ab77d/portrait/_0001_73-Alex-Marquez,-Rider_A7R0524.jpg" + } + }, + { + "season": 2020, + "number": 73, + "sponsored_team": "Repsol Honda Team", + "team": { + "id": "ce837bd3-bc07-40ef-83cf-6a8025bededf", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Repsol Honda Team", + "legacy_id": 14, + "color": "#ff9912", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/3/9/3937b141-c9a0-4f1e-856d-ee132ba6dab1/RepsolHonda.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "AM73", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/e/a/eaca9c44-ae6b-45a4-996f-8a9c06aa1bce/profile/main/1_0019_73-Alex-Marquez-ESP,-Body_DSC1652.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/8/9/892d7e39-4c70-4a00-ad66-671ffbbc84da/bike/main/73-Alex-Marquez.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/5/d/5dfa6dfd-d709-482e-a02b-9d9eb1294d5d/helmet/main/73-Alex-Marquez.jpg", + "secondary": null + }, + "number": "http://localhost:8089/riders/4/e/4ebc671a-82ac-4497-aa85-505bc0300ce7/number/73_Alex_Marquez-.png", + "portrait": "http://localhost:8089/riders/8/7/870c16c1-9a93-4968-b104-8a27d00e42d4/portrait/73_Alex_Marquez.jpg" + } + }, + { + "season": 2019, + "number": 73, + "sponsored_team": "EG 0,0 Marc VDS", + "team": { + "id": "2369c22c-90fb-4d77-8270-4df47c1fdf23", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "ELF Marc VDS Racing Team", + "legacy_id": 205, + "color": "#702538", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/6/9/6977e13c-7011-48d5-950d-ff1d077b4e20/22-Sam-Lowes-Bike-Moto2DSC03544.png", + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2019/riders/moto2/bike/original/rider_8173_1551780726.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2019/riders/moto2/helmet/original/rider_8173_1551784627.jpg", + "secondary": null + }, + "number": "http://localhost:8089/2020/dorsales/others/73.png", + "portrait": "http://localhost:8089/2019/riders/moto2/grid/original/rider_8173_1582296492.jpg" + } + }, + { + "season": 2018, + "number": 73, + "sponsored_team": "EG 0,0 Marc VDS", + "team": { + "id": "2369c22c-90fb-4d77-8270-4df47c1fdf23", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "ELF Marc VDS Racing Team", + "legacy_id": 205, + "color": "#702538", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/6/9/6977e13c-7011-48d5-950d-ff1d077b4e20/22-Sam-Lowes-Bike-Moto2DSC03544.png", + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2018/riders/moto2/bike/original/rider_8173_1521135555.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2018/riders/moto2/helmet/original/rider_8173_1521312577.jpg", + "secondary": null + }, + "number": "http://localhost:8089/2020/dorsales/others/73.png", + "portrait": "http://localhost:8089/2018/riders/moto2/grid/original/rider_8173_1521039331.jpg" + } + }, + { + "season": 2017, + "number": 73, + "sponsored_team": "EG 0,0 Marc VDS", + "team": { + "id": "2369c22c-90fb-4d77-8270-4df47c1fdf23", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "ELF Marc VDS Racing Team", + "legacy_id": 205, + "color": "#702538", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/6/9/6977e13c-7011-48d5-950d-ff1d077b4e20/22-Sam-Lowes-Bike-Moto2DSC03544.png", + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2017/riders/moto2/bike/original/rider_8173_1490204517.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2017/riders/moto2/helmet/original/rider_8173_1490546444.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2017/riders/moto2/grid/original/rider_8173_1490198311.jpg" + } + }, + { + "season": 2016, + "number": 73, + "sponsored_team": "Estrella Galicia 0,0 Marc VDS", + "team": { + "id": "2369c22c-90fb-4d77-8270-4df47c1fdf23", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "ELF Marc VDS Racing Team", + "legacy_id": 205, + "color": "#702538", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/6/9/6977e13c-7011-48d5-950d-ff1d077b4e20/22-Sam-Lowes-Bike-Moto2DSC03544.png", + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2016/riders/moto2/bike/original/rider_8173_1458824299.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2016/riders/moto2/helmet/original/rider_8173_1458821551.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2016/riders/moto2/grid/original/rider_8173_1458821433.jpg" + } + }, + { + "season": 2015, + "number": 73, + "sponsored_team": "EG 0,0 Marc VDS", + "team": { + "id": "2369c22c-90fb-4d77-8270-4df47c1fdf23", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "ELF Marc VDS Racing Team", + "legacy_id": 205, + "color": "#702538", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/6/9/6977e13c-7011-48d5-950d-ff1d077b4e20/22-Sam-Lowes-Bike-Moto2DSC03544.png", + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/8173" + } + }, + { + "season": 2014, + "number": 12, + "sponsored_team": "Estrella Galicia 0,0", + "team": { + "id": "ae848aa2-b716-49d5-8b95-218651605120", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Estrella Galicia 0,0", + "legacy_id": 106, + "color": "#027bce", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/4/f/4f858066-fdbe-47b4-9fb0-5e65910ea0fd/team_106_moto3_2020.png", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/8173" + } + }, + { + "season": 2013, + "number": 12, + "sponsored_team": "Estrella Galicia 0,0", + "team": { + "id": "ae848aa2-b716-49d5-8b95-218651605120", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Estrella Galicia 0,0", + "legacy_id": 106, + "color": "#027bce", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/4/f/4f858066-fdbe-47b4-9fb0-5e65910ea0fd/team_106_moto3_2020.png", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/8173" + } + }, + { + "season": 2012, + "number": 12, + "sponsored_team": "Ambrogio Next Racing", + "team": { + "id": "06a79f3b-fe43-423b-b8c7-a5d06d353342", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Ambrogio Next Racing", + "legacy_id": 109, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_109_1584101114.jpg", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/8173" + } + }, + { + "season": 2012, + "number": 12, + "sponsored_team": "Estrella Galicia 0,0", + "team": { + "id": "ae848aa2-b716-49d5-8b95-218651605120", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Estrella Galicia 0,0", + "legacy_id": 106, + "color": "#027bce", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/4/f/4f858066-fdbe-47b4-9fb0-5e65910ea0fd/team_106_moto3_2020.png", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/8173" + } + } + ], + "biography": { + "text": "The younger brother of reigning MotoGP™ World Champion Marc Marquez, Alex Marquez began his path to the world stage in 2010 when he joined Team Competition Monlau 125 in the FIM CEV Repsol. He did not participate in the first race of the Championship, as he was five days below the minimum age to compete. Yet in the second race, held at Albacete, he achieved 11th place. That year he finished 11th in the final standings with 24 points. In 2011 he then came very close finishing the season top, but just missed out to older rival Alex Rins. 2012 proved to be his year, as he won the Moto3™ CEV title, and took part in numerous wildcard rides in the Moto3™ World Championship including an incredible performance at the Catalan GP. For the 2013 season he stepped up full time with the Estrella Galicia 0,0 team and secured his first victory at Motegi, coming fourth overall. In 2014, Marquez won more races and took more podiums on the way to taking the Moto3™ World Championship. Marquez then moved up to Moto2™ with the EG0,0 Marc VDS team for 2015 and had a tough rookie year with two top four finishes, looking to expand on the potential he showed the following year as rider and team remained together in 2016. He started the season with an arm injury, but then took his first podium finish with a stunning ride at MotorLand Aragon to come home P2 after a last corner duel. Taking his first intermediate class win after proving unstoppable on home turf at Jerez, Marquez followed it up with another win at home in the Catalan GP. Then injured mid-season and taking some time to recover fully, the rider from Cervera was unable to fight for the title but took fourth overall, after another victory at Motegi in a tactical masterpiece. In 2018, Marquez was able to claim six podium finishes, but he went the year without a win. Remaining with the team for another year, 2019 saw Marquez step up to the plate. Five victories and another five podiums saw him claim his second World Championship with a race to spare, and following Jorge Lorenzo’s retirement from MotoGP™, the then Moto2™ World Champion stepped into the Repsol Honda colours to partner his brother Marc for 2020. While it was a year to forget for the older Marquez brother, Alex made hay as he claimed back-to-back second places in the French and Aragon GPs. He narrowly missed out on the Rookie of the Year award, coming 14th overall in his maiden year. 2021 saw him remain with Honda, but in the LCR Honda Castrol ranks under the guidance of Lucio Cecchinello. A struggling Honda package saw Marquez struggle to find any real form, but P4 at the Algarve GP was a reminder of the speed Marquez possesses. Staying with LCR in 2022, a brand-new HRC bike will hopefully bring better fortunes for the double World Champion. ", + "media": { + "video": null, + "picture": "http://localhost:8089/riders/7/d/7dbf5f45-d60b-4799-9c9f-52f17c71fe3f/biography/73_Alex_Marquez_DSC8805.jpg" + } + }, + "legend": false, + "legacy_id": 8173, + "merchandise_url": "http://localhost:8089/en/73-alex-marquez-merchandise?utm_source=localhost:8089&utm_medium=Link&utm_content=AM73&utm_campaign=Store&o=motogp-riders-stats", + "published": true, + "injured": false, + "banned": false, + "wildcard": false +} \ No newline at end of file diff --git a/src/test/resources/__files/rider/8269.json b/src/test/resources/__files/rider/8269.json new file mode 100644 index 0000000..668c67e --- /dev/null +++ b/src/test/resources/__files/rider/8269.json @@ -0,0 +1,376 @@ +{ + "id": "eec1f7dc-b115-44f6-82aa-73130e5c92cf", + "name": "Raul", + "surname": "Fernandez", + "nickname": null, + "country": { + "iso": "ES", + "name": "Spain" + }, + "birth_city": "Madrid", + "birth_date": "2000-10-23", + "physical_attributes": { + "height": 177, + "weight": 63 + }, + "career": [ + { + "season": 2023, + "number": 25, + "sponsored_team": "RNF MotoGP™ Team", + "team": { + "id": "c5b8c645-8fc5-467e-99d7-5b18e07e5834", + "constructor": { + "id": "21fbe597-b587-42e1-b571-a06af5cc2487", + "name": "Aprilia", + "legacy_id": 7 + }, + "name": "RNF MotoGP™ Team", + "legacy_id": 46, + "color": null, + "text_color": null, + "picture": null, + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "RF25", + "current": true, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/1/8/18caae2c-1b6c-40f1-a02b-6f8170bed0e3/profile/main/25RaulFernandez.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/2/7/27134770-0aa2-4c12-9137-922d0ab13d05/bike/main/_0006_25-Raul-Fernandez_Bike45.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/2/7/27134770-0aa2-4c12-9137-922d0ab13d05/helmet/main/25-Raul-Fernandez-Helmet-MotoGPDSC07060.jpg", + "secondary": null + }, + "number": "http://localhost:8089/riders/2/7/27134770-0aa2-4c12-9137-922d0ab13d05/number/25_Raul_Fernandez.png", + "portrait": "http://localhost:8089/riders/f/8/f8d46893-4859-4945-976b-7aeba320df14/portrait/25_Raul_Fernandez.jpg" + } + }, + { + "season": 2022, + "number": 25, + "sponsored_team": "Tech3 KTM Factory Racing", + "team": { + "id": "e7de07e2-4309-4a30-8f70-67ead4d6794e", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "Tech3 KTM Factory Racing", + "legacy_id": 11, + "color": "#b52d27", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/8/c/8cbb2dae-cd62-4850-901d-994227434a5c/Tech3KTM.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "RF25", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/c/5/c56022bd-18a1-4356-b185-5d81cc4c081c/profile/main/25-Raul-Fernandez-Rider_DS_5024.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/c/5/c56022bd-18a1-4356-b185-5d81cc4c081c/bike/main/_0006_25-Raul-Fernandez_Bike45.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/6/e/6efb2b38-662a-4397-b473-e15b1a848d30/helmet/main/25-Raul-Fernandez-Helmet-MotoGPDSC07060.jpg", + "secondary": null + }, + "number": "http://localhost:8089/riders/7/1/71ee2475-50e6-4d53-b008-61fa839a96ab/number/25_Raul_Fernandez.png", + "portrait": "http://localhost:8089/riders/c/5/c56022bd-18a1-4356-b185-5d81cc4c081c/portrait/25-Raul-Fernandez_DS_5015.jpg" + } + }, + { + "season": 2021, + "number": 25, + "sponsored_team": "Red Bull KTM Ajo", + "team": { + "id": "3c73638c-cffb-4e42-a6ca-b6506ab6bf5c", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "Red Bull KTM Ajo", + "legacy_id": 211, + "color": "#e05a17", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/5/8/582449b6-5434-4af3-9423-e50a6bc4fe40/37-Augusto-Fernandez-Bike-Moto2DSC03002.png", + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": "RF25", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/7/e/7e161e35-ce78-4eb4-ad43-73134bb80394/profile/main/_0016_25-Raul-Fernandez,-Rider_A7R9231.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/2/4/2422619a-5495-4651-9b41-6d24eb430e0a/bike/main/_0001_25-Raul-Fernandez,-Bike_LG85644.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/7/e/7e161e35-ce78-4eb4-ad43-73134bb80394/helmet/main/_0016_25-Raul-Fernandez.jpg", + "secondary": null + }, + "number": "http://localhost:8089/riders/1/1/11878855-cd7e-490f-8ef3-72b2ae9ffad1/number/_0026_25_Raul_Fernandez.png", + "portrait": "http://localhost:8089/riders/7/e/7e161e35-ce78-4eb4-ad43-73134bb80394/portrait/_0016_25-Raul-Fernandez.jpg" + } + }, + { + "season": 2020, + "number": 25, + "sponsored_team": "Red Bull KTM Ajo", + "team": { + "id": "9340a4a6-b2d4-4b72-be92-86718936c547", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "Red Bull KTM Ajo", + "legacy_id": 113, + "color": "#e05a17", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/4/f/4f217917-e694-45d2-8ea6-71ad0dd48603/KTMAjo.png", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": "RF25", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/0/b/0b4d4147-2435-4e42-bbc5-8bcd64251066/profile/main/25-Raul-Fernandez,-Rider---DSC_0284.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2020/riders/moto3/bike/original/rider_8269_1583849907.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2020/riders/moto3/helmet/original/rider_8269_1584100036.jpg", + "secondary": null + }, + "number": "http://localhost:8089/2020/dorsales/others/25.png", + "portrait": "http://localhost:8089/2020/riders/moto3/grid/original/rider_8269_1583409629.jpg" + } + }, + { + "season": 2019, + "number": 25, + "sponsored_team": "Valresa Angel Nieto Team", + "team": { + "id": "7027a17e-ed86-4fe7-b899-c252a03982a3", + "constructor": { + "id": "fe62d196-ff34-409a-aa32-4aae146e2e3c", + "name": "Speed Up", + "legacy_id": 431 + }, + "name": "Valresa Angel Nieto Team", + "legacy_id": 107, + "color": "#2e307a", + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto2/original/team_bike_107_1583857096.jpg", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2019/riders/moto3/bike/original/rider_8269_1551780715.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2019/riders/moto3/helmet/original/rider_8269_1551784629.jpg", + "secondary": null + }, + "number": "http://localhost:8089/2020/dorsales/others/25.png", + "portrait": "http://localhost:8089/2019/riders/moto3/grid/original/rider_8269_1551889703.jpg" + } + }, + { + "season": 2018, + "number": 25, + "sponsored_team": "Angel Nieto Team", + "team": { + "id": "8d46f1f5-bcf9-412f-87af-73e11fe1d5be", + "constructor": { + "id": "fe62d196-ff34-409a-aa32-4aae146e2e3c", + "name": "Speed Up", + "legacy_id": 431 + }, + "name": "Angel Nieto Team", + "legacy_id": 107, + "color": "#2e307a", + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto2/original/team_bike_107_1583857096.jpg", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": "http://localhost:8089/2020/dorsales/others/25.png", + "portrait": "http://localhost:8089/2018/riders/moto3/grid/original/rider_8269_1542297574.jpg" + } + }, + { + "season": 2017, + "number": 31, + "sponsored_team": "Mahindra MRW Aspar Team", + "team": { + "id": "02cf5928-4812-4551-87c4-a8125c59ca73", + "constructor": { + "id": "cdb641bf-2ec0-41cd-9959-e4322000fae9", + "name": "Energica", + "legacy_id": 589 + }, + "name": "Red Bull MotoGP Rookies Cup", + "legacy_id": 225, + "color": null, + "text_color": null, + "picture": null, + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2017/riders/moto3/grid/original/rider_8269_1493979262.jpg" + } + }, + { + "season": 2016, + "number": 31, + "sponsored_team": "Red Bull MotoGP Rookies Cup", + "team": { + "id": "02cf5928-4812-4551-87c4-a8125c59ca73", + "constructor": { + "id": "cdb641bf-2ec0-41cd-9959-e4322000fae9", + "name": "Energica", + "legacy_id": 589 + }, + "name": "Red Bull MotoGP Rookies Cup", + "legacy_id": 225, + "color": null, + "text_color": null, + "picture": null, + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/8269" + } + } + ], + "biography": { + "text": "From Madrid, Raul Fernandez began racing when he was 11 and went from the Cuna de Campeones to PreMoto3, then moved into the FIM CEV Repsol and raced in the Red Bull MotoGP Rookies Cup. By 2016 he was third overall in the Rookies with two wins and six podiums, took a win in the Moto3™ Junior World Championship and made his Grand Prix debut with a P11 finish. 2017 was a more difficult year in the FIM CEV Repsol despite Fernandez taking pole position in Portugal, but in 2018 the Spaniard bounced back in style to accrue three wins and six podiums on the way to winning the FIM CEV Repsol Moto3™ Junior World Championship. He also made four more Grand Prix appearances as a mixture of wildcards and replacement rides; Catalunya, Germany, Aragon and Valencia saw him take two top tens and score points in three of the four Grands Prix he contested. \n\nIn 2019, Fernandez moved into the Moto3™ World Championship full time in the same Angel Nieto Team structure with whom he won the CEV title, and proved a quick learner as he was a regular Top 10 finisher. 2020 proved to be his breakout year, with stunning Qualifying times meaning he was a regular sight on pole position. A first podium in Aragon was followed up by a maiden victory in the European GP, while he earned another podium and victory in the season-ending Valencia and Portimao GPs respectively. \n\nFernandez well and truly declared himself as the hottest prospect in MotoGP™ in 2021 as he enjoyed the most successful rookie campaign in Moto2™ history. An incredible eight victories, bettering Marc Marquez's previous record for rookie wins, saw him play his part in a stunning title duel against teammate Remy Gardner. However, a crash with three rounds to go in Misano all but ended his charge, eventually having to settle for runner-up. Fernandez made his MotoGP™ debut in 2022 with Tech3 KTM Factory Racing. A not-so rider friendly KTM RC16 made life tough for the talented Spaniard, finishing inside the points six times. He'll be hoping for much better when he jumps on an Aprilia RS-GP in 2023 with the RNF Team.", + "media": { + "video": null, + "picture": "http://localhost:8089/riders/f/7/f7075e70-cccb-490e-9345-a9ddd387ebfc/biography/25_Raul_Fernandez.jpg" + } + }, + "legend": false, + "legacy_id": 8269, + "merchandise_url": null, + "published": true, + "injured": false, + "banned": false, + "wildcard": false +} \ No newline at end of file diff --git a/src/test/resources/__files/rider/8273.json b/src/test/resources/__files/rider/8273.json index 3256a30..fa4ab42 100644 --- a/src/test/resources/__files/rider/8273.json +++ b/src/test/resources/__files/rider/8273.json @@ -1 +1,462 @@ -{"id":"66b78301-5826-4986-b11e-fa68a7bd77a7","name":"Francesco","surname":"Bagnaia","nickname":null,"country":{"iso":"IT","name":"Italy"},"birth_city":"Torino","birth_date":"1997-01-14","physical_attributes":{"height":176,"weight":67},"career":[{"season":2022,"number":63,"sponsored_team":"Ducati Lenovo Team","team":{"id":"892fff2f-7402-4fbd-99fb-5fd567d8a80c","constructor":{"id":"38af1078-e2f1-4399-811c-1e98cf6f6150","name":"Ducati","legacy_id":110},"name":"Ducati Lenovo Team","legacy_id":15,"color":"#f92515","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/7/d/7da82702-139c-4a2c-8ee3-a1478cb43c37/ducatilenovo.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":"FB63","current":false,"pictures":{"profile":{"main":"https://photos.motogp.com/riders/e/a/eac63974-aeee-4f62-81a4-f9588a47009d/profile/main/63_Francesco_Bagnaia.png","secondary":null},"bike":{"main":"https://photos.motogp.com/riders/4/e/4e947398-047a-44c5-acc5-3971b2a14b09/bike/main/_0002_63-Francesco-Bagnaia_Bike45.png","secondary":null},"helmet":{"main":"https://photos.motogp.com/riders/9/6/96689675-4eaf-489b-9b0c-4363495fdace/helmet/main/_0002_63-Francesco-Bagnaia,-Helmet_LG61639.jpg","secondary":null},"number":"https://photos.motogp.com/riders/9/a/9ab0200d-1cc8-4882-a1ac-7764d83d65ce/number/63-Francesco-Bagnaia.png","portrait":"https://photos.motogp.com/riders/4/e/4e947398-047a-44c5-acc5-3971b2a14b09/portrait/63-Francesco-Bagnaia-Rider_DS_4948.jpg"}},{"season":2021,"number":63,"sponsored_team":"Ducati Lenovo Team","team":{"id":"892fff2f-7402-4fbd-99fb-5fd567d8a80c","constructor":{"id":"38af1078-e2f1-4399-811c-1e98cf6f6150","name":"Ducati","legacy_id":110},"name":"Ducati Lenovo Team","legacy_id":15,"color":"#f92515","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/7/d/7da82702-139c-4a2c-8ee3-a1478cb43c37/ducatilenovo.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":"FB63","current":false,"pictures":{"profile":{"main":"https://photos.motogp.com/riders/9/6/96689675-4eaf-489b-9b0c-4363495fdace/profile/main/_0000_63-Francesco-Bagnaia,-Rider_A7R1507.png","secondary":null},"bike":{"main":"https://photos.motogp.com/riders/9/6/96689675-4eaf-489b-9b0c-4363495fdace/bike/main/_0002_63-Francesco-Bagnaia,-Bike_LG87333.png","secondary":null},"helmet":{"main":"https://photos.motogp.com/riders/9/6/96689675-4eaf-489b-9b0c-4363495fdace/helmet/main/_0002_63-Francesco-Bagnaia,-Helmet_LG61639.jpg","secondary":null},"number":"https://photos.motogp.com/riders/9/a/9ab0200d-1cc8-4882-a1ac-7764d83d65ce/number/63-Francesco-Bagnaia.png","portrait":"https://photos.motogp.com/riders/8/e/8ef10c9a-fb3b-4f55-a6b6-50041e697f82/portrait/_0000_63-Francesco-Bagnaia,Rider_A7R1501.jpg"}},{"season":2020,"number":63,"sponsored_team":"Pramac Racing","team":{"id":"612440fd-90eb-4823-bec9-f9e37520d00f","constructor":{"id":"38af1078-e2f1-4399-811c-1e98cf6f6150","name":"Ducati","legacy_id":110},"name":"Pramac Racing","legacy_id":32,"color":"#cc3333","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/f/0/f016bb93-2d0d-4e44-be2e-0b6a51e4cda8/pramacracing.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":"FB63","current":false,"pictures":{"profile":{"main":"https://photos.motogp.com/riders/e/3/e3147f1c-9a28-4d21-914e-ed4265e2891a/profile/main/1_0018_63-Francesco-Bagnaia-ITA,-Body_DSC5817.png","secondary":null},"bike":{"main":"https://photos.motogp.com/riders/6/6/66f72d9d-8e6b-4ce5-b863-c8f5214fabe9/bike/main/63-Francesco-Bagnaia.png","secondary":null},"helmet":{"main":"https://photos.motogp.com/riders/1/e/1eae2f03-9ea6-4ed0-8742-2d1fde288502/helmet/main/63-Francesco-Bagnaia.jpg","secondary":null},"number":"https://photos.motogp.com/riders/4/e/4efbf36c-5932-46b3-81a8-7ef3486284a0/number/63_Francesco_Bagnaia.png","portrait":"https://photos.motogp.com/riders/0/7/073f5f14-53cc-42d4-b529-93786a005e43/portrait/63_Francesco_Bagnaia.jpg"}},{"season":2019,"number":63,"sponsored_team":"Pramac Racing","team":{"id":"612440fd-90eb-4823-bec9-f9e37520d00f","constructor":{"id":"38af1078-e2f1-4399-811c-1e98cf6f6150","name":"Ducati","legacy_id":110},"name":"Pramac Racing","legacy_id":32,"color":"#cc3333","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/f/0/f016bb93-2d0d-4e44-be2e-0b6a51e4cda8/pramacracing.png","published":true},"category":{"id":"737ab122-76e1-4081-bedb-334caaa18c70","name":"MotoGP","legacy_id":3},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2019/riders/motogp/bike/original/rider_8273_1568365175.jpg","secondary":null},"helmet":{"main":null,"secondary":null},"number":"https://photos.motogp.com/2019/dorsales/3/8273.png","portrait":"https://photos.motogp.com/2019/riders/motogp/grid/original/rider_8273_1554806163.jpg"}},{"season":2018,"number":0,"sponsored_team":"Alma Pramac Racing","team":{"id":"671fb411-26f5-4692-b08e-6f7b88172b36","constructor":{"id":"38af1078-e2f1-4399-811c-1e98cf6f6150","name":"Ducati","legacy_id":110},"name":"Alma Pramac Racing","legacy_id":32,"color":"#bf4039","text_color":null,"picture":"https://photos.motogp.com/2020/teams/motogp/original/team_bike_32_1574329095.jpg","published":true},"category":{"id":"ea854a67-73a4-4a28-ac77-d67b3b2a530a","name":"Moto2","legacy_id":2},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2018/riders/moto2/bike/original/rider_8273_1521135580.jpg","secondary":null},"helmet":{"main":"https://photos.motogp.com/2018/riders/moto2/helmet/original/rider_8273_1521313587.jpg","secondary":null},"number":null,"portrait":"https://photos.motogp.com/2018/riders/moto2/grid/original/rider_8273_1521039552.jpg"}},{"season":2017,"number":42,"sponsored_team":"Pull&Bear Aspar Team","team":{"id":"f7018a62-3aee-41f1-b196-6b7e1b7387da","constructor":{"id":"791160c2-6d2f-47ad-8d87-29e4f729073a","name":"Kalex","legacy_id":447},"name":"SKY Racing Team VR46","legacy_id":101,"color":"#008ac5","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/2/0/20a547d5-23fe-4c17-8125-fa0a6a47891d/Sky-Racing-Team-VR46.png","published":true},"category":{"id":"ea854a67-73a4-4a28-ac77-d67b3b2a530a","name":"Moto2","legacy_id":2},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2017/riders/moto2/bike/original/rider_8273_1490204479.jpg","secondary":null},"helmet":{"main":"https://photos.motogp.com/2017/riders/moto2/helmet/original/rider_8273_1490546514.jpg","secondary":null},"number":null,"portrait":"https://photos.motogp.com/2017/riders/moto2/grid/original/rider_8273_1490198436.jpg"}},{"season":2017,"number":42,"sponsored_team":"SKY Racing Team VR46","team":{"id":"f7018a62-3aee-41f1-b196-6b7e1b7387da","constructor":{"id":"791160c2-6d2f-47ad-8d87-29e4f729073a","name":"Kalex","legacy_id":447},"name":"SKY Racing Team VR46","legacy_id":101,"color":"#008ac5","text_color":"#ffffff","picture":"https://photos.motogp.com/teams/2/0/20a547d5-23fe-4c17-8125-fa0a6a47891d/Sky-Racing-Team-VR46.png","published":true},"category":{"id":"ea854a67-73a4-4a28-ac77-d67b3b2a530a","name":"Moto2","legacy_id":2},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2017/riders/moto2/bike/original/rider_8273_1490204479.jpg","secondary":null},"helmet":{"main":"https://photos.motogp.com/2017/riders/moto2/helmet/original/rider_8273_1490546514.jpg","secondary":null},"number":null,"portrait":"https://photos.motogp.com/2017/riders/moto2/grid/original/rider_8273_1490198436.jpg"}},{"season":2016,"number":21,"sponsored_team":"Pull & Bear Aspar Mahindra Team","team":{"id":"b1dab8f5-c52c-49f7-9a9b-937829248864","constructor":{"id":"fe62d196-ff34-409a-aa32-4aae146e2e3c","name":"Speed Up","legacy_id":431},"name":"Pull & Bear Aspar Mahindra Team","legacy_id":107,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/moto2/original/team_bike_107_1583857096.jpg","published":true},"category":{"id":"1ab203aa-e292-4842-8bed-971911357af1","name":"Moto3","legacy_id":1},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":"https://photos.motogp.com/2016/riders/moto3/bike/original/rider_8273_1458823965.jpg","secondary":null},"helmet":{"main":"https://photos.motogp.com/2016/riders/moto3/helmet/original/rider_8273_1458821877.jpg","secondary":null},"number":null,"portrait":"https://photos.motogp.com/2016/riders/moto3/grid/original/rider_8273_1471606098.jpg"}},{"season":2015,"number":21,"sponsored_team":"MAPFRE Team MAHINDRA","team":{"id":"4218bb47-2163-4fd2-9d41-86c42c0e10ab","constructor":{"id":"fe62d196-ff34-409a-aa32-4aae146e2e3c","name":"Speed Up","legacy_id":431},"name":"MAPFRE Team MAHINDRA","legacy_id":107,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/moto2/original/team_bike_107_1583857096.jpg","published":true},"category":{"id":"1ab203aa-e292-4842-8bed-971911357af1","name":"Moto3","legacy_id":1},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/8273"}},{"season":2014,"number":21,"sponsored_team":"SKY Racing Team VR46","team":{"id":"465fb7c8-a4d3-4c57-a8f6-37daa54fb706","constructor":{"id":"ce40d972-fa4a-421e-b747-d67d3ca1afc6","name":"Husqvarna","legacy_id":164},"name":"SKY Racing Team VR46","legacy_id":116,"color":null,"text_color":null,"picture":"https://photos.motogp.com/2020/teams/moto3/original/team_bike_116_1584101125.jpg","published":true},"category":{"id":"1ab203aa-e292-4842-8bed-971911357af1","name":"Moto3","legacy_id":1},"in_grid":true,"short_nickname":null,"current":false,"pictures":{"profile":{"main":null,"secondary":null},"bike":{"main":null,"secondary":null},"helmet":{"main":null,"secondary":null},"number":null,"portrait":"https://www.motogp.com/en/api/rider/photo/grid/old/8273"}}],"biography":{"text":"Italian Francesco Bagnaia moved to the highly competitive CEV Championship in Spain in 2010, and he came third overall that year. He was reconfirmed for the Monlau Competicion team for 2012 and won another race before the step up to the World Championship, where he partnered Roman Fenati in the Team Italia FMI in 2013. For 2014 he switched teams as well as machinery as he lined up for the Sky Racing Team VR46 on a KTM, and 2015 brought another new challenge with the new Aspar Team Mahindra. Ending the year as the top Mahindra rider, the Italian was also frequently involved in the podium battle, retaining his seat for 2016 and going on to take not only a maiden win in Assen, but also a second win in Sepang. Earning a test ride on the team’s MotoGP™ machine in Valencia at the end of the season, Bagnaia moved up to Moto2™ in 2017 with the new Sky Racing Team VR46 intermediate class effort and was Rookie of the Year, taking several podiums. In 2018 he hit the ground running and was a contender for the crown from the off, with some incredible wins and consistency seeing him eventually take the title in Malaysia. Impressive in his first outings in the premier class in testing, Bagnaia moved up to MotoGP™ with Pramac Racing in 2019. It was a difficult rookie year for Bagnaia but a fantastic P4 in Australia showed plenty signs of promise. 2020 proved a mixed year for the Italian and his GP-20. He earned an impressive second place in the San Marino GP and a week later at the same track, he was on the verge of a maiden premier class victory until a heartbreaking slide off the track ended his hopes. He never quite got going again in the remaining races but 2021 brought renewed hope for Pecco in the factory squad. Three podiums and a pole at the opening four rounds signalled the Italian as a title contender and, despite a blip in the middle of the season, he finished the year as the form man of the Championship. A debut MotoGP™ win came at Aragon after an incredible head-to-head with Marc Marquez, and he backed it up with victory in Misano a week after. His title charge slipped through his fingers with a crash during our second visit to Misano, but victory at the final two rounds of the year has the Italian as one of the huge favourites for the 2022 crown.","media":{"video":null,"picture":"https://photos.motogp.com/riders/6/0/60ece05f-236a-4728-a9f9-e335fd9398e9/biography/63_Francesco_Bagnaia_DSC8424.jpg"}},"legend":false,"legacy_id":8273,"merchandise_url":"https://store.motogp.com/en/francesco-bagnaia-pecco-merchandise?utm_source=motogp.com&utm_medium=Link&utm_content=FB63&utm_campaign=Store&o=motogp-riders-stats","published":true,"injured":false,"banned":false,"wildcard":false} \ No newline at end of file +{ + "id": "66b78301-5826-4986-b11e-fa68a7bd77a7", + "name": "Francesco", + "surname": "Bagnaia", + "nickname": null, + "country": { + "iso": "IT", + "name": "Italy" + }, + "birth_city": "Torino", + "birth_date": "1997-01-14", + "physical_attributes": { + "height": 176, + "weight": 67 + }, + "career": [ + { + "season": 2022, + "number": 63, + "sponsored_team": "Ducati Lenovo Team", + "team": { + "id": "892fff2f-7402-4fbd-99fb-5fd567d8a80c", + "constructor": { + "id": "38af1078-e2f1-4399-811c-1e98cf6f6150", + "name": "Ducati", + "legacy_id": 110 + }, + "name": "Ducati Lenovo Team", + "legacy_id": 15, + "color": "#f92515", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/7/d/7da82702-139c-4a2c-8ee3-a1478cb43c37/ducatilenovo.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "FB63", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/e/a/eac63974-aeee-4f62-81a4-f9588a47009d/profile/main/63_Francesco_Bagnaia.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/4/e/4e947398-047a-44c5-acc5-3971b2a14b09/bike/main/_0002_63-Francesco-Bagnaia_Bike45.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/9/6/96689675-4eaf-489b-9b0c-4363495fdace/helmet/main/_0002_63-Francesco-Bagnaia,-Helmet_LG61639.jpg", + "secondary": null + }, + "number": "http://localhost:8089/riders/9/a/9ab0200d-1cc8-4882-a1ac-7764d83d65ce/number/63-Francesco-Bagnaia.png", + "portrait": "http://localhost:8089/riders/4/e/4e947398-047a-44c5-acc5-3971b2a14b09/portrait/63-Francesco-Bagnaia-Rider_DS_4948.jpg" + } + }, + { + "season": 2021, + "number": 63, + "sponsored_team": "Ducati Lenovo Team", + "team": { + "id": "892fff2f-7402-4fbd-99fb-5fd567d8a80c", + "constructor": { + "id": "38af1078-e2f1-4399-811c-1e98cf6f6150", + "name": "Ducati", + "legacy_id": 110 + }, + "name": "Ducati Lenovo Team", + "legacy_id": 15, + "color": "#f92515", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/7/d/7da82702-139c-4a2c-8ee3-a1478cb43c37/ducatilenovo.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "FB63", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/9/6/96689675-4eaf-489b-9b0c-4363495fdace/profile/main/_0000_63-Francesco-Bagnaia,-Rider_A7R1507.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/9/6/96689675-4eaf-489b-9b0c-4363495fdace/bike/main/_0002_63-Francesco-Bagnaia,-Bike_LG87333.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/9/6/96689675-4eaf-489b-9b0c-4363495fdace/helmet/main/_0002_63-Francesco-Bagnaia,-Helmet_LG61639.jpg", + "secondary": null + }, + "number": "http://localhost:8089/riders/9/a/9ab0200d-1cc8-4882-a1ac-7764d83d65ce/number/63-Francesco-Bagnaia.png", + "portrait": "http://localhost:8089/riders/8/e/8ef10c9a-fb3b-4f55-a6b6-50041e697f82/portrait/_0000_63-Francesco-Bagnaia,Rider_A7R1501.jpg" + } + }, + { + "season": 2020, + "number": 63, + "sponsored_team": "Pramac Racing", + "team": { + "id": "612440fd-90eb-4823-bec9-f9e37520d00f", + "constructor": { + "id": "38af1078-e2f1-4399-811c-1e98cf6f6150", + "name": "Ducati", + "legacy_id": 110 + }, + "name": "Pramac Racing", + "legacy_id": 32, + "color": "#cc3333", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/f/0/f016bb93-2d0d-4e44-be2e-0b6a51e4cda8/pramacracing.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "FB63", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/e/3/e3147f1c-9a28-4d21-914e-ed4265e2891a/profile/main/1_0018_63-Francesco-Bagnaia-ITA,-Body_DSC5817.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/6/6/66f72d9d-8e6b-4ce5-b863-c8f5214fabe9/bike/main/63-Francesco-Bagnaia.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/1/e/1eae2f03-9ea6-4ed0-8742-2d1fde288502/helmet/main/63-Francesco-Bagnaia.jpg", + "secondary": null + }, + "number": "http://localhost:8089/riders/4/e/4efbf36c-5932-46b3-81a8-7ef3486284a0/number/63_Francesco_Bagnaia.png", + "portrait": "http://localhost:8089/riders/0/7/073f5f14-53cc-42d4-b529-93786a005e43/portrait/63_Francesco_Bagnaia.jpg" + } + }, + { + "season": 2019, + "number": 63, + "sponsored_team": "Pramac Racing", + "team": { + "id": "612440fd-90eb-4823-bec9-f9e37520d00f", + "constructor": { + "id": "38af1078-e2f1-4399-811c-1e98cf6f6150", + "name": "Ducati", + "legacy_id": 110 + }, + "name": "Pramac Racing", + "legacy_id": 32, + "color": "#cc3333", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/f/0/f016bb93-2d0d-4e44-be2e-0b6a51e4cda8/pramacracing.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2019/riders/motogp/bike/original/rider_8273_1568365175.jpg", + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": "http://localhost:8089/2019/dorsales/3/8273.png", + "portrait": "http://localhost:8089/2019/riders/motogp/grid/original/rider_8273_1554806163.jpg" + } + }, + { + "season": 2018, + "number": 0, + "sponsored_team": "Alma Pramac Racing", + "team": { + "id": "671fb411-26f5-4692-b08e-6f7b88172b36", + "constructor": { + "id": "38af1078-e2f1-4399-811c-1e98cf6f6150", + "name": "Ducati", + "legacy_id": 110 + }, + "name": "Alma Pramac Racing", + "legacy_id": 32, + "color": "#bf4039", + "text_color": null, + "picture": "http://localhost:8089/2020/teams/motogp/original/team_bike_32_1574329095.jpg", + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2018/riders/moto2/bike/original/rider_8273_1521135580.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2018/riders/moto2/helmet/original/rider_8273_1521313587.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2018/riders/moto2/grid/original/rider_8273_1521039552.jpg" + } + }, + { + "season": 2017, + "number": 42, + "sponsored_team": "Pull&Bear Aspar Team", + "team": { + "id": "f7018a62-3aee-41f1-b196-6b7e1b7387da", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "SKY Racing Team VR46", + "legacy_id": 101, + "color": "#008ac5", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/2/0/20a547d5-23fe-4c17-8125-fa0a6a47891d/Sky-Racing-Team-VR46.png", + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2017/riders/moto2/bike/original/rider_8273_1490204479.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2017/riders/moto2/helmet/original/rider_8273_1490546514.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2017/riders/moto2/grid/original/rider_8273_1490198436.jpg" + } + }, + { + "season": 2017, + "number": 42, + "sponsored_team": "SKY Racing Team VR46", + "team": { + "id": "f7018a62-3aee-41f1-b196-6b7e1b7387da", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "SKY Racing Team VR46", + "legacy_id": 101, + "color": "#008ac5", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/2/0/20a547d5-23fe-4c17-8125-fa0a6a47891d/Sky-Racing-Team-VR46.png", + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2017/riders/moto2/bike/original/rider_8273_1490204479.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2017/riders/moto2/helmet/original/rider_8273_1490546514.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2017/riders/moto2/grid/original/rider_8273_1490198436.jpg" + } + }, + { + "season": 2016, + "number": 21, + "sponsored_team": "Pull & Bear Aspar Mahindra Team", + "team": { + "id": "b1dab8f5-c52c-49f7-9a9b-937829248864", + "constructor": { + "id": "fe62d196-ff34-409a-aa32-4aae146e2e3c", + "name": "Speed Up", + "legacy_id": 431 + }, + "name": "Pull & Bear Aspar Mahindra Team", + "legacy_id": 107, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto2/original/team_bike_107_1583857096.jpg", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2016/riders/moto3/bike/original/rider_8273_1458823965.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2016/riders/moto3/helmet/original/rider_8273_1458821877.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2016/riders/moto3/grid/original/rider_8273_1471606098.jpg" + } + }, + { + "season": 2015, + "number": 21, + "sponsored_team": "MAPFRE Team MAHINDRA", + "team": { + "id": "4218bb47-2163-4fd2-9d41-86c42c0e10ab", + "constructor": { + "id": "fe62d196-ff34-409a-aa32-4aae146e2e3c", + "name": "Speed Up", + "legacy_id": 431 + }, + "name": "MAPFRE Team MAHINDRA", + "legacy_id": 107, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto2/original/team_bike_107_1583857096.jpg", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/8273" + } + }, + { + "season": 2014, + "number": 21, + "sponsored_team": "SKY Racing Team VR46", + "team": { + "id": "465fb7c8-a4d3-4c57-a8f6-37daa54fb706", + "constructor": { + "id": "ce40d972-fa4a-421e-b747-d67d3ca1afc6", + "name": "Husqvarna", + "legacy_id": 164 + }, + "name": "SKY Racing Team VR46", + "legacy_id": 116, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_116_1584101125.jpg", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/8273" + } + } + ], + "biography": { + "text": "Italian Francesco Bagnaia moved to the highly competitive CEV Championship in Spain in 2010, and he came third overall that year. He was reconfirmed for the Monlau Competicion team for 2012 and won another race before the step up to the World Championship, where he partnered Roman Fenati in the Team Italia FMI in 2013. For 2014 he switched teams as well as machinery as he lined up for the Sky Racing Team VR46 on a KTM, and 2015 brought another new challenge with the new Aspar Team Mahindra. Ending the year as the top Mahindra rider, the Italian was also frequently involved in the podium battle, retaining his seat for 2016 and going on to take not only a maiden win in Assen, but also a second win in Sepang. Earning a test ride on the team’s MotoGP™ machine in Valencia at the end of the season, Bagnaia moved up to Moto2™ in 2017 with the new Sky Racing Team VR46 intermediate class effort and was Rookie of the Year, taking several podiums. In 2018 he hit the ground running and was a contender for the crown from the off, with some incredible wins and consistency seeing him eventually take the title in Malaysia. Impressive in his first outings in the premier class in testing, Bagnaia moved up to MotoGP™ with Pramac Racing in 2019. It was a difficult rookie year for Bagnaia but a fantastic P4 in Australia showed plenty signs of promise. 2020 proved a mixed year for the Italian and his GP-20. He earned an impressive second place in the San Marino GP and a week later at the same track, he was on the verge of a maiden premier class victory until a heartbreaking slide off the track ended his hopes. He never quite got going again in the remaining races but 2021 brought renewed hope for Pecco in the factory squad. Three podiums and a pole at the opening four rounds signalled the Italian as a title contender and, despite a blip in the middle of the season, he finished the year as the form man of the Championship. A debut MotoGP™ win came at Aragon after an incredible head-to-head with Marc Marquez, and he backed it up with victory in Misano a week after. His title charge slipped through his fingers with a crash during our second visit to Misano, but victory at the final two rounds of the year has the Italian as one of the huge favourites for the 2022 crown.", + "media": { + "video": null, + "picture": "http://localhost:8089/riders/6/0/60ece05f-236a-4728-a9f9-e335fd9398e9/biography/63_Francesco_Bagnaia_DSC8424.jpg" + } + }, + "legend": false, + "legacy_id": 8273, + "merchandise_url": "http://localhost:8089/en/francesco-bagnaia-pecco-merchandise?utm_source=localhost:8089&utm_medium=Link&utm_content=FB63&utm_campaign=Store&o=motogp-riders-stats", + "published": true, + "injured": false, + "banned": false, + "wildcard": false +} \ No newline at end of file diff --git a/src/test/resources/__files/rider/8295.json b/src/test/resources/__files/rider/8295.json index 8bd2ddd..f8a395a 100644 --- a/src/test/resources/__files/rider/8295.json +++ b/src/test/resources/__files/rider/8295.json @@ -29,7 +29,7 @@ "legacy_id": 10, "color": "#a1b7e5", "text_color": "#323232", - "picture": "https://photos.motogp.com/teams/6/5/6577f3de-817e-4dc6-bbe6-edddd661f1ad/GresiniRacing.png", + "picture": "http://localhost:8089/teams/6/5/6577f3de-817e-4dc6-bbe6-edddd661f1ad/GresiniRacing.png", "published": true }, "category": { @@ -42,19 +42,19 @@ "current": false, "pictures": { "profile": { - "main": "https://photos.motogp.com/riders/5/4/5452166d-95a7-4857-bf1b-7bf9f919fccf/profile/main/23-Enea-Bastiani-Rider_DS_5148.png", + "main": "http://localhost:8089/riders/5/4/5452166d-95a7-4857-bf1b-7bf9f919fccf/profile/main/23-Enea-Bastiani-Rider_DS_5148.png", "secondary": null }, "bike": { - "main": "https://photos.motogp.com/riders/5/4/5452166d-95a7-4857-bf1b-7bf9f919fccf/bike/main/_0007_23-Enea-Bastianini_Bike45.png", + "main": "http://localhost:8089/riders/5/4/5452166d-95a7-4857-bf1b-7bf9f919fccf/bike/main/_0007_23-Enea-Bastianini_Bike45.png", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/riders/2/3/23c2f9a5-4c4f-42e7-9bfb-682cccc1859b/helmet/main/23-Enea-Bastianini.jpg", + "main": "http://localhost:8089/riders/2/3/23c2f9a5-4c4f-42e7-9bfb-682cccc1859b/helmet/main/23-Enea-Bastianini.jpg", "secondary": null }, - "number": "https://photos.motogp.com/riders/e/e/ee1e90f4-020d-42bd-a4d0-3f94bdc605a3/number/23_Enea_Bastianini_.png", - "portrait": "https://photos.motogp.com/riders/5/4/5452166d-95a7-4857-bf1b-7bf9f919fccf/portrait/23-Enea-Bastianini.jpg" + "number": "http://localhost:8089/riders/e/e/ee1e90f4-020d-42bd-a4d0-3f94bdc605a3/number/23_Enea_Bastianini_.png", + "portrait": "http://localhost:8089/riders/5/4/5452166d-95a7-4857-bf1b-7bf9f919fccf/portrait/23-Enea-Bastianini.jpg" } }, { @@ -72,7 +72,7 @@ "legacy_id": 115, "color": "#1e4374", "text_color": "#ffffff", - "picture": "https://photos.motogp.com/teams/9/2/927bbed8-8d40-4324-a531-ae7a894232c8/SKY-vr46-Esponsorama.png", + "picture": "http://localhost:8089/teams/9/2/927bbed8-8d40-4324-a531-ae7a894232c8/SKY-vr46-Esponsorama.png", "published": true }, "category": { @@ -85,19 +85,19 @@ "current": false, "pictures": { "profile": { - "main": "https://photos.motogp.com/riders/1/f/1f343065-c3df-49a4-9b49-b2a39a28ee94/profile/main/_0007_23-Enea-Bastianini,-Rider_A7R1080.png", + "main": "http://localhost:8089/riders/1/f/1f343065-c3df-49a4-9b49-b2a39a28ee94/profile/main/_0007_23-Enea-Bastianini,-Rider_A7R1080.png", "secondary": null }, "bike": { - "main": "https://photos.motogp.com/riders/1/f/1f343065-c3df-49a4-9b49-b2a39a28ee94/bike/main/_0007_23-Enea-Bastianini,-Bike_LG86852.png", + "main": "http://localhost:8089/riders/1/f/1f343065-c3df-49a4-9b49-b2a39a28ee94/bike/main/_0007_23-Enea-Bastianini,-Bike_LG86852.png", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/riders/1/f/1f343065-c3df-49a4-9b49-b2a39a28ee94/helmet/main/_0009_23-Enea-Bastianini,-Helmet_LG60979.jpg", + "main": "http://localhost:8089/riders/1/f/1f343065-c3df-49a4-9b49-b2a39a28ee94/helmet/main/_0009_23-Enea-Bastianini,-Helmet_LG60979.jpg", "secondary": null }, - "number": "https://photos.motogp.com/riders/e/e/ee1e90f4-020d-42bd-a4d0-3f94bdc605a3/number/23_Enea_Bastianini_.png", - "portrait": "https://photos.motogp.com/riders/a/2/a2c687f1-8d4a-49cd-86e8-17815bbaf23a/portrait/_0008_23-Enea-Bastianini,-Rider_A7R1074.jpg" + "number": "http://localhost:8089/riders/e/e/ee1e90f4-020d-42bd-a4d0-3f94bdc605a3/number/23_Enea_Bastianini_.png", + "portrait": "http://localhost:8089/riders/a/2/a2c687f1-8d4a-49cd-86e8-17815bbaf23a/portrait/_0008_23-Enea-Bastianini,-Rider_A7R1074.jpg" } }, { @@ -115,7 +115,7 @@ "legacy_id": null, "color": "#ff8600", "text_color": null, - "picture": "https://photos.motogp.com/teams/b/5/b5442dd5-0102-493a-909a-25d9dc015aae/team_bike_209_1583857097-.jpg", + "picture": "http://localhost:8089/teams/b/5/b5442dd5-0102-493a-909a-25d9dc015aae/team_bike_209_1583857097-.jpg", "published": true }, "category": { @@ -128,19 +128,19 @@ "current": false, "pictures": { "profile": { - "main": "https://photos.motogp.com/riders/6/4/644201a4-5194-4d66-9bc7-c40e990a3160/profile/main/33-Enea-Bastianini,-Rider---DSC_0419.png", + "main": "http://localhost:8089/riders/6/4/644201a4-5194-4d66-9bc7-c40e990a3160/profile/main/33-Enea-Bastianini,-Rider---DSC_0419.png", "secondary": null }, "bike": { - "main": "https://photos.motogp.com/2020/riders/moto2/bike/original/rider_8295_1583840799.jpg", + "main": "http://localhost:8089/2020/riders/moto2/bike/original/rider_8295_1583840799.jpg", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/2020/riders/moto2/helmet/original/rider_8295_1584104131.jpg", + "main": "http://localhost:8089/2020/riders/moto2/helmet/original/rider_8295_1584104131.jpg", "secondary": null }, - "number": "https://photos.motogp.com/2020/dorsales/others/33.png", - "portrait": "https://photos.motogp.com/2020/riders/moto2/grid/original/rider_8295_1583402793.jpg" + "number": "http://localhost:8089/2020/dorsales/others/33.png", + "portrait": "http://localhost:8089/2020/riders/moto2/grid/original/rider_8295_1583402793.jpg" } }, { @@ -158,7 +158,7 @@ "legacy_id": null, "color": "#ff8600", "text_color": null, - "picture": "https://photos.motogp.com/teams/b/5/b5442dd5-0102-493a-909a-25d9dc015aae/team_bike_209_1583857097-.jpg", + "picture": "http://localhost:8089/teams/b/5/b5442dd5-0102-493a-909a-25d9dc015aae/team_bike_209_1583857097-.jpg", "published": true }, "category": { @@ -175,15 +175,15 @@ "secondary": null }, "bike": { - "main": "https://photos.motogp.com/2019/riders/moto2/bike/original/rider_8295_1551966359.jpg", + "main": "http://localhost:8089/2019/riders/moto2/bike/original/rider_8295_1551966359.jpg", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/2019/riders/moto2/helmet/original/rider_8295_1551784648.jpg", + "main": "http://localhost:8089/2019/riders/moto2/helmet/original/rider_8295_1551784648.jpg", "secondary": null }, - "number": "https://photos.motogp.com/2020/dorsales/others/33.png", - "portrait": "https://photos.motogp.com/2019/riders/moto2/grid/original/rider_8295_1551890094.jpg" + "number": "http://localhost:8089/2020/dorsales/others/33.png", + "portrait": "http://localhost:8089/2019/riders/moto2/grid/original/rider_8295_1551890094.jpg" } }, { @@ -201,7 +201,7 @@ "legacy_id": null, "color": "#ff8600", "text_color": null, - "picture": "https://photos.motogp.com/teams/b/5/b5442dd5-0102-493a-909a-25d9dc015aae/team_bike_209_1583857097-.jpg", + "picture": "http://localhost:8089/teams/b/5/b5442dd5-0102-493a-909a-25d9dc015aae/team_bike_209_1583857097-.jpg", "published": true }, "category": { @@ -218,15 +218,15 @@ "secondary": null }, "bike": { - "main": "https://photos.motogp.com/2018/riders/moto3/bike/original/rider_8295_1521135336.jpg", + "main": "http://localhost:8089/2018/riders/moto3/bike/original/rider_8295_1521135336.jpg", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/2018/riders/moto3/helmet/original/rider_8295_1521312649.jpg", + "main": "http://localhost:8089/2018/riders/moto3/helmet/original/rider_8295_1521312649.jpg", "secondary": null }, "number": null, - "portrait": "https://photos.motogp.com/2018/riders/moto3/grid/original/rider_8295_1521047835.jpg" + "portrait": "http://localhost:8089/2018/riders/moto3/grid/original/rider_8295_1521047835.jpg" } }, { @@ -244,7 +244,7 @@ "legacy_id": 106, "color": "#027bce", "text_color": "#ffffff", - "picture": "https://photos.motogp.com/teams/4/f/4f858066-fdbe-47b4-9fb0-5e65910ea0fd/team_106_moto3_2020.png", + "picture": "http://localhost:8089/teams/4/f/4f858066-fdbe-47b4-9fb0-5e65910ea0fd/team_106_moto3_2020.png", "published": true }, "category": { @@ -261,7 +261,7 @@ "secondary": null }, "bike": { - "main": "https://photos.motogp.com/2017/riders/moto3/bike/original/rider_8295_1490207399.jpg", + "main": "http://localhost:8089/2017/riders/moto3/bike/original/rider_8295_1490207399.jpg", "secondary": null }, "helmet": { @@ -269,7 +269,7 @@ "secondary": null }, "number": null, - "portrait": "https://photos.motogp.com/2017/riders/moto3/grid/original/rider_8295_1490197780.jpg" + "portrait": "http://localhost:8089/2017/riders/moto3/grid/original/rider_8295_1490197780.jpg" } }, { @@ -287,7 +287,7 @@ "legacy_id": 112, "color": null, "text_color": null, - "picture": "https://photos.motogp.com/2020/teams/moto3/original/team_bike_112_1584101123.jpg", + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_112_1584101123.jpg", "published": true }, "category": { @@ -304,15 +304,15 @@ "secondary": null }, "bike": { - "main": "https://photos.motogp.com/2016/riders/moto3/bike/original/rider_8295_1458824019.jpg", + "main": "http://localhost:8089/2016/riders/moto3/bike/original/rider_8295_1458824019.jpg", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/2016/riders/moto3/helmet/original/rider_8295_1458821835.jpg", + "main": "http://localhost:8089/2016/riders/moto3/helmet/original/rider_8295_1458821835.jpg", "secondary": null }, "number": null, - "portrait": "https://photos.motogp.com/2016/riders/moto3/grid/original/rider_8295_1458821662.jpg" + "portrait": "http://localhost:8089/2016/riders/moto3/grid/original/rider_8295_1458821662.jpg" } }, { @@ -330,7 +330,7 @@ "legacy_id": 112, "color": null, "text_color": null, - "picture": "https://photos.motogp.com/2020/teams/moto3/original/team_bike_112_1584101123.jpg", + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_112_1584101123.jpg", "published": true }, "category": { @@ -355,7 +355,7 @@ "secondary": null }, "number": null, - "portrait": "https://www.motogp.com/en/api/rider/photo/grid/old/8295" + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/8295" } }, { @@ -373,7 +373,7 @@ "legacy_id": 112, "color": null, "text_color": null, - "picture": "https://photos.motogp.com/2020/teams/moto3/original/team_bike_112_1584101123.jpg", + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_112_1584101123.jpg", "published": true }, "category": { @@ -398,7 +398,7 @@ "secondary": null }, "number": null, - "portrait": "https://www.motogp.com/en/api/rider/photo/grid/old/8295" + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/8295" } } ], @@ -406,7 +406,7 @@ "text": "Enea Bastianini was victorious in two races of the 2013 Red Bull MotoGP Rookies Cup and combined his participation in that with five rides in the Italian national Moto3™ championship. Bastianini turned 16 at the end of 2013 and arrived in the World Championship in 2014 to ride with the Junior Team GO&FUN Moto3™ of Fausto Gresini on a KTM. He impressed in his rookie season as he hit the podium three times, staying with the team for 2015, but on a Honda. In 2015 he challenged for the title in the early stages of the year, taking his first victory on the world stage at home in Misano as well as five additional podiums. He remained with the Gresini team and on Honda machinery, and was second in the Championship in 2016. For 2017, Bastianini changed to Estrella Galicia 0,0 and had a more difficult year, gaining traction in the latter stages and taking a pole and three podiums. For 2018 he replaced outgoing reigning Champion Joan Mir at Leopard Racing, finishing fourth in the Championship after six podium finishes, including one victory. 2020 saw Bastianini become a World Champion as he took the Moto2™ crown. A podium finish in Qatar helped him launch his title attack, but it really took flight after back to back victories in the Andalusian and Czech GPs before a victory and podium finish in Misano helped cement his place among the leading contenders. From there, Bastianini only once failed to break into the Top 6 places, including podiums in the Aragon double, and it was that consistency that saw him become a World Champion. 2021 brought a new challenge, and one he thrived in. Bastianini, despite being one of only three men to be on older machinery, was one of the breakout stars of the season, with a double podium in Misano just reward for his brilliant late-season form. The Beast will jump on Pecco Bagnaia's 2021 Ducati in 2022 and moves across to newly-powered Gresini Racing MotoGP team.", "media": { "video": null, - "picture": "https://photos.motogp.com/riders/5/4/54c5c44e-d28e-4e73-8ebe-3429ef89ad15/biography/23_Enea_Bastianini_DSC7711.jpg" + "picture": "http://localhost:8089/riders/5/4/54c5c44e-d28e-4e73-8ebe-3429ef89ad15/biography/23_Enea_Bastianini_DSC7711.jpg" } }, "legend": false, diff --git a/src/test/resources/__files/rider/8296.json b/src/test/resources/__files/rider/8296.json new file mode 100644 index 0000000..743ed1c --- /dev/null +++ b/src/test/resources/__files/rider/8296.json @@ -0,0 +1,376 @@ +{ + "id": "3c4a2a9d-7d61-4931-a0d5-5b4b0d4d7888", + "name": "Darryn", + "surname": "Binder", + "nickname": null, + "country": { + "iso": "ZA", + "name": "South Africa" + }, + "birth_city": "Potchefstroom", + "birth_date": "1998-01-21", + "physical_attributes": { + "height": 175, + "weight": 63 + }, + "career": [ + { + "season": 2023, + "number": 15, + "sponsored_team": "Liqui Moly Husqvarna Intact GP", + "team": { + "id": "1fbb67bf-225e-44d3-a432-4ce3a839b0d2", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "Liqui Moly Husqvarna Intact GP", + "legacy_id": 206, + "color": null, + "text_color": null, + "picture": null, + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": "DB15", + "current": true, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/6/3/630ef4b4-69ed-406f-a004-fda5018562ac/profile/main/40_Darryn_Binder.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/6/3/630ef4b4-69ed-406f-a004-fda5018562ac/bike/main/40_Darryn_Binder_B.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/6/3/630ef4b4-69ed-406f-a004-fda5018562ac/helmet/main/40-Darryn-Binder.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/riders/6/3/630ef4b4-69ed-406f-a004-fda5018562ac/portrait/40_Darryn_Binder.jpg" + } + }, + { + "season": 2022, + "number": 40, + "sponsored_team": "WithU Yamaha RNF MotoGP™ Team", + "team": { + "id": "c91950d9-f784-4a16-a8fa-591e7e028dcf", + "constructor": { + "id": "f2e835be-7fab-4782-a26b-de3d583d132c", + "name": "Yamaha", + "legacy_id": 3 + }, + "name": "WithU Yamaha RNF MotoGP™ Team", + "legacy_id": 46, + "color": "#6d6e71", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/b/2/b2036bcc-48c9-441d-9ad0-0405d83065fc/RNF.png", + "published": false + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "DB40", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/2/1/210323bd-6bac-44be-ba0f-fafb39e44440/profile/main/40_Darryn_Binder.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/2/1/210323bd-6bac-44be-ba0f-fafb39e44440/bike/main/40_Darryn_Binder_B.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/2/1/210323bd-6bac-44be-ba0f-fafb39e44440/helmet/main/40-Darryn-Binder.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/riders/2/1/210323bd-6bac-44be-ba0f-fafb39e44440/portrait/40_Darryn_Binder.jpg" + } + }, + { + "season": 2021, + "number": 40, + "sponsored_team": "Petronas Sprinta Racing", + "team": { + "id": "34059d28-3f75-4f53-980b-5a8f60df2f03", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Petronas Sprinta Racing", + "legacy_id": 102, + "color": "#009e99", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/3/0/304e1c4c-2f72-4424-8dcb-5922ee3530f6/m3_4455_honda.png", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": "DB40", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/0/c/0c6cb84f-6471-4023-a13d-25e760856f4a/profile/main/_0009_40-Darryn-Binder,-Rider_A7R0267.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/3/1/311ba9df-4685-4af6-bc47-39fefb393ce4/bike/main/40_Darryn_Binder_Bike_LG85621.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/0/c/0c6cb84f-6471-4023-a13d-25e760856f4a/helmet/main/_0021_40_Darryn_Binder_Helmet_LG60139.jpg", + "secondary": null + }, + "number": "http://localhost:8089/riders/9/d/9da6ba75-1ff0-439b-bc06-b0de7d194752/number/_0015_40_Darryn_Binder.png", + "portrait": "http://localhost:8089/riders/0/c/0c6cb84f-6471-4023-a13d-25e760856f4a/portrait/_0025_40_Darryn_Binder_Rider_A7R0264.jpg" + } + }, + { + "season": 2020, + "number": 40, + "sponsored_team": "CIP Green Power", + "team": { + "id": "5f0a22a4-af1f-46ca-baf6-e688f6da8843", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "CIP Green Power", + "legacy_id": 110, + "color": "#4ed747", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/5/2/524d167d-7c41-4b05-9256-641c8abd7194/CIPGreenPower.png", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": "DB40", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/b/6/b6fc0217-6703-4278-894a-f2ea90c8528c/profile/main/40-Darryn-Binder-SAF,-Rider---DSC_0575.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2020/riders/moto3/bike/original/rider_8296_1583849947.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2020/riders/moto3/helmet/original/rider_8296_1584100026.jpg", + "secondary": null + }, + "number": "http://localhost:8089/2020/dorsales/others/40.png", + "portrait": "http://localhost:8089/2020/riders/moto3/grid/original/rider_8296_1583408902.jpg" + } + }, + { + "season": 2019, + "number": 40, + "sponsored_team": "CIP Green Power", + "team": { + "id": "5f0a22a4-af1f-46ca-baf6-e688f6da8843", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "CIP Green Power", + "legacy_id": 110, + "color": "#4ed747", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/5/2/524d167d-7c41-4b05-9256-641c8abd7194/CIPGreenPower.png", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2019/riders/moto3/bike/original/rider_8296_1551780718.jpg", + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": "http://localhost:8089/2020/dorsales/others/40.png", + "portrait": "http://localhost:8089/2019/riders/moto3/grid/original/rider_8296_1551888867.jpg" + } + }, + { + "season": 2018, + "number": 40, + "sponsored_team": "CIP Green Power", + "team": { + "id": "5f0a22a4-af1f-46ca-baf6-e688f6da8843", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "CIP Green Power", + "legacy_id": 110, + "color": "#4ed747", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/5/2/524d167d-7c41-4b05-9256-641c8abd7194/CIPGreenPower.png", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2018/riders/moto3/bike/original/rider_8296_1521135329.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2018/riders/moto3/helmet/original/rider_8296_1521312636.jpg", + "secondary": null + }, + "number": "http://localhost:8089/2020/dorsales/others/40.png", + "portrait": "http://localhost:8089/2018/riders/moto3/grid/original/rider_8296_1521047820.jpg" + } + }, + { + "season": 2017, + "number": 40, + "sponsored_team": "Platinum Bay Real Estate", + "team": { + "id": "5f0a22a4-af1f-46ca-baf6-e688f6da8843", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "CIP Green Power", + "legacy_id": 110, + "color": "#4ed747", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/5/2/524d167d-7c41-4b05-9256-641c8abd7194/CIPGreenPower.png", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2017/riders/moto3/bike/original/rider_8296_1490207394.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2017/riders/moto3/helmet/original/rider_8296_1490546489.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2017/riders/moto3/grid/original/rider_8296_1495118352.jpg" + } + }, + { + "season": 2016, + "number": 40, + "sponsored_team": "Platinum Bay Real Estate", + "team": { + "id": "5f0a22a4-af1f-46ca-baf6-e688f6da8843", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "CIP Green Power", + "legacy_id": 110, + "color": "#4ed747", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/5/2/524d167d-7c41-4b05-9256-641c8abd7194/CIPGreenPower.png", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2016/riders/moto3/bike/original/rider_8296_1458823947.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2016/riders/moto3/helmet/original/rider_8296_1458821890.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2016/riders/moto3/grid/original/rider_8296_1458821742.jpg" + } + } + ], + "biography": { + "text": "Another graduate of the Red Bull Rookies Cup and younger brother of South African 2016 Moto3™ World Champion Brad Binder, Darryn Binder faced his first full season in 2015. It was a difficult debut season, but with Platinum Bay Real Estate in 2016 the South African made real inroads, including a fourth place in Phillip Island. For 2017 Binder remained with the team, and made big progress despite an injury – taking top tens, points finishes and a best of fourth. In 2018, he moved to Red Bull KTM Ajo in a single rider team but had a tough season until the latter races - finally then taking his first podium. In 2019 he'll switch to CIP - Green Power. For the 2019 season he signed with CIP Green Power, adding his second podium in Argentina in a somewhat controversial year. For 2020 he was confident of being able to rub shoulders with the usual race leaders and did so, taking victory at the Catalan GP and a 2nd position at the Aragon GP. Binder started 2021 in fine form, with podiums at the Qatar and Doha Grands Prix. Despite being unable to take any further rostrums, fighting at the sharp end on a regular basis caught the eye of WithU Yamaha RNF management. So much so, the South African will be the second man in history to make the move from Moto3™ to MotoGP™. Binder managed to adapt to life in the premier class relatively quickly, scoring a top 10 finish in Round 2 in Indonseia, while there were further point scoring finishes in Catalunya and Australia. Despite a respectable debut season in MotoGP™, Binder couldn’t secure a seat for 2023 and has dropped down to Moto2™ with Liqui Moly Husqvarna Intact GP.", + "media": { + "video": null, + "picture": "http://localhost:8089/riders/9/7/9780ea46-f994-4da1-9b41-c614d9d15f72/biography/40_Darryn_Binder.jpg" + } + }, + "legend": false, + "legacy_id": 8296, + "merchandise_url": null, + "published": true, + "injured": false, + "banned": false, + "wildcard": false +} \ No newline at end of file diff --git a/src/test/resources/__files/rider/8431.json b/src/test/resources/__files/rider/8431.json index 98614df..30360f2 100644 --- a/src/test/resources/__files/rider/8431.json +++ b/src/test/resources/__files/rider/8431.json @@ -29,7 +29,7 @@ "legacy_id": 43, "color": "#dbff03", "text_color": "#323232", - "picture": "https://photos.motogp.com/teams/f/9/f939b79d-2007-4fd8-842b-7bfdd32f4ef1/MooneyVR46.png", + "picture": "http://localhost:8089/teams/f/9/f939b79d-2007-4fd8-842b-7bfdd32f4ef1/MooneyVR46.png", "published": true }, "category": { @@ -42,19 +42,19 @@ "current": false, "pictures": { "profile": { - "main": "https://photos.motogp.com/riders/8/0/807d9f63-4b52-4450-b080-aa063b73bbde/profile/main/10_Luca_Marini_GP_0503.png", + "main": "http://localhost:8089/riders/8/0/807d9f63-4b52-4450-b080-aa063b73bbde/profile/main/10_Luca_Marini_GP_0503.png", "secondary": null }, "bike": { - "main": "https://photos.motogp.com/riders/2/5/25155175-3491-4613-b409-b796e203711d/bike/main/_0009_10-Luca-Marini-Bike-MotoGPDSC04406.png", + "main": "http://localhost:8089/riders/2/5/25155175-3491-4613-b409-b796e203711d/bike/main/_0009_10-Luca-Marini-Bike-MotoGPDSC04406.png", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/riders/2/5/25155175-3491-4613-b409-b796e203711d/helmet/main/10-Luca-Marini.jpg", + "main": "http://localhost:8089/riders/2/5/25155175-3491-4613-b409-b796e203711d/helmet/main/10-Luca-Marini.jpg", "secondary": null }, - "number": "https://photos.motogp.com/riders/f/6/f6cd2b6d-24c7-49ec-a4c2-7ec69275c792/number/10_Luca_Marini_.png", - "portrait": "https://photos.motogp.com/riders/2/5/25155175-3491-4613-b409-b796e203711d/portrait/10_Luca_Marini.jpg" + "number": "http://localhost:8089/riders/f/6/f6cd2b6d-24c7-49ec-a4c2-7ec69275c792/number/10_Luca_Marini_.png", + "portrait": "http://localhost:8089/riders/2/5/25155175-3491-4613-b409-b796e203711d/portrait/10_Luca_Marini.jpg" } }, { @@ -72,7 +72,7 @@ "legacy_id": 115, "color": "#1e4374", "text_color": "#ffffff", - "picture": "https://photos.motogp.com/teams/9/2/927bbed8-8d40-4324-a531-ae7a894232c8/SKY-vr46-Esponsorama.png", + "picture": "http://localhost:8089/teams/9/2/927bbed8-8d40-4324-a531-ae7a894232c8/SKY-vr46-Esponsorama.png", "published": true }, "category": { @@ -85,19 +85,19 @@ "current": false, "pictures": { "profile": { - "main": "https://photos.motogp.com/riders/d/f/dffad82b-031e-408c-aead-8df9d02f6e50/profile/main/_0002_10-Luca-Marini,-Rider_A7R1020.png", + "main": "http://localhost:8089/riders/d/f/dffad82b-031e-408c-aead-8df9d02f6e50/profile/main/_0002_10-Luca-Marini,-Rider_A7R1020.png", "secondary": null }, "bike": { - "main": "https://photos.motogp.com/riders/d/f/dffad82b-031e-408c-aead-8df9d02f6e50/bike/main/_0002_10-Luca-Marini,-Bike_LG86817.png", + "main": "http://localhost:8089/riders/d/f/dffad82b-031e-408c-aead-8df9d02f6e50/bike/main/_0002_10-Luca-Marini,-Bike_LG86817.png", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/riders/d/f/dffad82b-031e-408c-aead-8df9d02f6e50/helmet/main/_0006_10-Luca-Marini,-Helmet_LG60945.png", + "main": "http://localhost:8089/riders/d/f/dffad82b-031e-408c-aead-8df9d02f6e50/helmet/main/_0006_10-Luca-Marini,-Helmet_LG60945.png", "secondary": null }, - "number": "https://photos.motogp.com/riders/f/6/f6cd2b6d-24c7-49ec-a4c2-7ec69275c792/number/10_Luca_Marini_.png", - "portrait": "https://photos.motogp.com/riders/d/f/dffad82b-031e-408c-aead-8df9d02f6e50/portrait/_0006_10-Luca-Marini,-Rider_A7R1012.jpg" + "number": "http://localhost:8089/riders/f/6/f6cd2b6d-24c7-49ec-a4c2-7ec69275c792/number/10_Luca_Marini_.png", + "portrait": "http://localhost:8089/riders/d/f/dffad82b-031e-408c-aead-8df9d02f6e50/portrait/_0006_10-Luca-Marini,-Rider_A7R1012.jpg" } }, { @@ -115,7 +115,7 @@ "legacy_id": 101, "color": "#008ac5", "text_color": "#ffffff", - "picture": "https://photos.motogp.com/teams/2/0/20a547d5-23fe-4c17-8125-fa0a6a47891d/Sky-Racing-Team-VR46.png", + "picture": "http://localhost:8089/teams/2/0/20a547d5-23fe-4c17-8125-fa0a6a47891d/Sky-Racing-Team-VR46.png", "published": true }, "category": { @@ -128,19 +128,19 @@ "current": false, "pictures": { "profile": { - "main": "https://photos.motogp.com/riders/c/6/c69bbb5f-d0a2-4ba5-9e8c-05d7ed64f726/profile/main/10-Luca-Marini-ITA---DSC_0799.png", + "main": "http://localhost:8089/riders/c/6/c69bbb5f-d0a2-4ba5-9e8c-05d7ed64f726/profile/main/10-Luca-Marini-ITA---DSC_0799.png", "secondary": null }, "bike": { - "main": "https://photos.motogp.com/2020/riders/moto2/bike/original/rider_8431_1583840766.jpg", + "main": "http://localhost:8089/2020/riders/moto2/bike/original/rider_8431_1583840766.jpg", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/2020/riders/moto2/helmet/original/rider_8431_1584104117.jpg", + "main": "http://localhost:8089/2020/riders/moto2/helmet/original/rider_8431_1584104117.jpg", "secondary": null }, - "number": "https://photos.motogp.com/2020/dorsales/others/10.png", - "portrait": "https://photos.motogp.com/2020/riders/moto2/grid/original/rider_8431_1583402910.jpg" + "number": "http://localhost:8089/2020/dorsales/others/10.png", + "portrait": "http://localhost:8089/2020/riders/moto2/grid/original/rider_8431_1583402910.jpg" } }, { @@ -158,7 +158,7 @@ "legacy_id": 101, "color": "#008ac5", "text_color": "#ffffff", - "picture": "https://photos.motogp.com/teams/2/0/20a547d5-23fe-4c17-8125-fa0a6a47891d/Sky-Racing-Team-VR46.png", + "picture": "http://localhost:8089/teams/2/0/20a547d5-23fe-4c17-8125-fa0a6a47891d/Sky-Racing-Team-VR46.png", "published": true }, "category": { @@ -175,15 +175,15 @@ "secondary": null }, "bike": { - "main": "https://photos.motogp.com/2019/riders/moto2/bike/original/rider_8431_1551780674.jpg", + "main": "http://localhost:8089/2019/riders/moto2/bike/original/rider_8431_1551780674.jpg", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/2019/riders/moto2/helmet/original/rider_8431_1551784612.jpg", + "main": "http://localhost:8089/2019/riders/moto2/helmet/original/rider_8431_1551784612.jpg", "secondary": null }, - "number": "https://photos.motogp.com/2020/dorsales/others/10.png", - "portrait": "https://photos.motogp.com/2019/riders/moto2/grid/original/rider_8431_1551890363.jpg" + "number": "http://localhost:8089/2020/dorsales/others/10.png", + "portrait": "http://localhost:8089/2019/riders/moto2/grid/original/rider_8431_1551890363.jpg" } }, { @@ -201,7 +201,7 @@ "legacy_id": 101, "color": "#008ac5", "text_color": "#ffffff", - "picture": "https://photos.motogp.com/teams/2/0/20a547d5-23fe-4c17-8125-fa0a6a47891d/Sky-Racing-Team-VR46.png", + "picture": "http://localhost:8089/teams/2/0/20a547d5-23fe-4c17-8125-fa0a6a47891d/Sky-Racing-Team-VR46.png", "published": true }, "category": { @@ -218,15 +218,15 @@ "secondary": null }, "bike": { - "main": "https://photos.motogp.com/2018/riders/moto2/bike/original/rider_8431_1521135611.jpg", + "main": "http://localhost:8089/2018/riders/moto2/bike/original/rider_8431_1521135611.jpg", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/2018/riders/moto2/helmet/original/rider_8431_1521312753.jpg", + "main": "http://localhost:8089/2018/riders/moto2/helmet/original/rider_8431_1521312753.jpg", "secondary": null }, - "number": "https://photos.motogp.com/2020/dorsales/others/10.png", - "portrait": "https://photos.motogp.com/2018/riders/moto2/grid/original/rider_8431_1521039270.jpg" + "number": "http://localhost:8089/2020/dorsales/others/10.png", + "portrait": "http://localhost:8089/2018/riders/moto2/grid/original/rider_8431_1521039270.jpg" } }, { @@ -244,7 +244,7 @@ "legacy_id": 202, "color": null, "text_color": null, - "picture": "https://photos.motogp.com/2020/teams/moto2/original/team_bike_202_1583857104.jpg", + "picture": "http://localhost:8089/2020/teams/moto2/original/team_bike_202_1583857104.jpg", "published": true }, "category": { @@ -261,15 +261,15 @@ "secondary": null }, "bike": { - "main": "https://photos.motogp.com/2017/riders/moto2/bike/original/rider_8431_1490204526.jpg", + "main": "http://localhost:8089/2017/riders/moto2/bike/original/rider_8431_1490204526.jpg", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/2017/riders/moto2/helmet/original/rider_8431_1490546601.jpg", + "main": "http://localhost:8089/2017/riders/moto2/helmet/original/rider_8431_1490546601.jpg", "secondary": null }, "number": null, - "portrait": "https://photos.motogp.com/2017/riders/moto2/grid/original/rider_8431_1490198326.jpg" + "portrait": "http://localhost:8089/2017/riders/moto2/grid/original/rider_8431_1490198326.jpg" } }, { @@ -287,7 +287,7 @@ "legacy_id": 202, "color": null, "text_color": null, - "picture": "https://photos.motogp.com/2020/teams/moto2/original/team_bike_202_1583857104.jpg", + "picture": "http://localhost:8089/2020/teams/moto2/original/team_bike_202_1583857104.jpg", "published": true }, "category": { @@ -304,15 +304,15 @@ "secondary": null }, "bike": { - "main": "https://photos.motogp.com/2016/riders/moto2/bike/original/rider_8431_1458824268.jpg", + "main": "http://localhost:8089/2016/riders/moto2/bike/original/rider_8431_1458824268.jpg", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/2016/riders/moto2/helmet/original/rider_8431_1458821577.jpg", + "main": "http://localhost:8089/2016/riders/moto2/helmet/original/rider_8431_1458821577.jpg", "secondary": null }, "number": null, - "portrait": "https://photos.motogp.com/2016/riders/moto2/grid/original/rider_8431_1458821471.jpg" + "portrait": "http://localhost:8089/2016/riders/moto2/grid/original/rider_8431_1458821471.jpg" } } ], @@ -320,7 +320,7 @@ "text": "Luca Marini, half brother of Valentino Rossi, cut his teeth racing in the Italian CIV series, ending the 2013 CIV Moto3™ championship in fourth with six podium finishes. He moved to the Spanish CEV Moto3™ series in 2014, before in 2015 he moved to the Moto2™ European Championship with the Paginas Amarillas HP 40 Junior team, taking second in just his third race. A run of aggressive rides saw him finish the year in fifth overall, and he was a regular top five contender. 2016 saw the Italian make his full time World Championship debut with the Forward Racing team alongside fellow Italian and VR46 Academy rider Lorenzo Baldassarri, where he remained for 2017. A move to Sky Racing Team VR46 for the 2018 season saw Marini string together his best year yet - claiming five podium finishes, including a maiden Grand Prix win in Sepang. Starting the season as a title favourite, Marini’s winter shoulder surgery would mean he had a difficult opening to the year. However, P2 at Mugello kick-started the Italian’s campaign, with two victories coming his way in Thailand and Japan. Marini was once again among the favourites for the Moto2™ crown in 2020 with SKY Racing Team VR46, and he lived up to the tag as he lead the chasing pack for much of the Championship. However, a nasty crash in the French GP Qualifying took its toll on the Italian as he finished P17, losing his title lead in the process. Despite battling through the injury and securing P2 in Portimao, Marini couldn’t reach the summit again and finished second in the Championship. As one of the most promising youngsters in the sport, he made the jump up to the premier class and partnered the man who edged him to the title, Enea Bastianini, at Esponsorama Racing in 2021. The young Italian found it tough at first, his big frame not suited to modern MotoGP™, but he cracked it late in 2021. A front-row start at home in Misano and a top five finish in Austria are likely to give him a boost heading into 2022 with the new VR46 Racing squad.", "media": { "video": null, - "picture": "https://photos.motogp.com/riders/f/4/f4a1843d-c0a9-44e5-8380-f3c9d2e70c8d/biography/10_Luca_Marini_DSC0819.jpg" + "picture": "http://localhost:8089/riders/f/4/f4a1843d-c0a9-44e5-8380-f3c9d2e70c8d/biography/10_Luca_Marini_DSC0819.jpg" } }, "legend": false, diff --git a/src/test/resources/__files/rider/8513.json b/src/test/resources/__files/rider/8513.json new file mode 100644 index 0000000..e0f1960 --- /dev/null +++ b/src/test/resources/__files/rider/8513.json @@ -0,0 +1,462 @@ +{ + "id": "4ec18d03-c7a1-4e35-b05f-e2b66c6130f8", + "name": "Remy", + "surname": "Gardner", + "nickname": null, + "country": { + "iso": "AU", + "name": "Australia" + }, + "birth_city": "Sydney", + "birth_date": "1998-02-24", + "physical_attributes": { + "height": 178, + "weight": 72 + }, + "career": [ + { + "season": 2022, + "number": 87, + "sponsored_team": "Tech3 KTM Factory Racing", + "team": { + "id": "e7de07e2-4309-4a30-8f70-67ead4d6794e", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "Tech3 KTM Factory Racing", + "legacy_id": 11, + "color": "#b52d27", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/8/c/8cbb2dae-cd62-4850-901d-994227434a5c/Tech3KTM.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "RG87", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/0/2/0246d6f1-c7e6-4eb8-b412-f24178a4fe4a/profile/main/87-Ramy-Garder_Rider_DS_5119.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/0/2/0246d6f1-c7e6-4eb8-b412-f24178a4fe4a/bike/main/_0001_87-Remy-Gardner_Bike45.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/7/c/7c9e4278-ac4a-4364-a1dc-40f830bfd6d3/helmet/main/87RemyGardner_LG6_6346.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/riders/0/2/0246d6f1-c7e6-4eb8-b412-f24178a4fe4a/portrait/87-Ramy-Garder_Rider_DS_5115.jpg" + } + }, + { + "season": 2021, + "number": 87, + "sponsored_team": "Red Bull KTM Ajo", + "team": { + "id": "3c73638c-cffb-4e42-a6ca-b6506ab6bf5c", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "Red Bull KTM Ajo", + "legacy_id": 211, + "color": "#e05a17", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/5/8/582449b6-5434-4af3-9423-e50a6bc4fe40/37-Augusto-Fernandez-Bike-Moto2DSC03002.png", + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": "RG87", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/e/7/e7fd5675-ce4c-474b-b182-51adb35dd898/profile/main/_0008_87-Remy-Gardner,-Rider_A7R9261.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/8/e/8e657999-6003-4d9f-8f8e-0d64b9416e00/bike/main/_0000_87-Remy-Gardner,-Bike_LG85676.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/e/7/e7fd5675-ce4c-474b-b182-51adb35dd898/helmet/main/_0008_87-Remy-Gardner.jpg", + "secondary": null + }, + "number": "http://localhost:8089/riders/9/0/905e9df2-5a42-4dc3-9bd3-3808b330a250/number/_0014_87_Remy_Gardner.png", + "portrait": "http://localhost:8089/riders/e/7/e7fd5675-ce4c-474b-b182-51adb35dd898/portrait/_0008_87-Remy-Gardner.jpg" + } + }, + { + "season": 2020, + "number": 87, + "sponsored_team": "Onexox TKKR SAG Team", + "team": { + "id": "12b49bae-d41e-47bb-b0b1-595b45e3b9f2", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "Pertamina Mandalika SAG Team", + "legacy_id": 201, + "color": "#006cb8", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/a/7/a74ded80-6ea2-42d9-a910-e37abfcfcf2b/02-Gabriel-Rodrigo-Bike-Moto2DSC03071.png", + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": "RG87", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/a/8/a8235ffe-d977-4df7-8428-c81b181e37dc/profile/main/87-Remy-Gardner-AUT,-Rider---DSC_0661.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2020/riders/moto2/bike/original/rider_8513_1583840783.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2020/riders/moto2/helmet/original/rider_8513_1584104075.jpg", + "secondary": null + }, + "number": "http://localhost:8089/2020/dorsales/others/87.png", + "portrait": "http://localhost:8089/2020/riders/moto2/grid/original/rider_8513_1583402889.jpg" + } + }, + { + "season": 2019, + "number": 87, + "sponsored_team": "ONEXOX TKKR SAG Team", + "team": { + "id": "12b49bae-d41e-47bb-b0b1-595b45e3b9f2", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "Pertamina Mandalika SAG Team", + "legacy_id": 201, + "color": "#006cb8", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/a/7/a74ded80-6ea2-42d9-a910-e37abfcfcf2b/02-Gabriel-Rodrigo-Bike-Moto2DSC03071.png", + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2019/riders/moto2/bike/original/rider_8513_1551966386.jpg", + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": "http://localhost:8089/2020/dorsales/others/87.png", + "portrait": "http://localhost:8089/2019/riders/moto2/grid/original/rider_8513_1551953147.jpg" + } + }, + { + "season": 2018, + "number": 87, + "sponsored_team": "SAG Team", + "team": { + "id": "042ff296-2544-4857-98e0-8b90b433287e", + "constructor": { + "id": "cdb641bf-2ec0-41cd-9959-e4322000fae9", + "name": "Energica", + "legacy_id": 589 + }, + "name": "SAG Team", + "legacy_id": 224, + "color": null, + "text_color": null, + "picture": null, + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2018/riders/moto2/bike/original/rider_8513_1521135625.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2018/riders/moto2/helmet/original/rider_8513_1521312815.jpg", + "secondary": null + }, + "number": "http://localhost:8089/2020/dorsales/others/87.png", + "portrait": "http://localhost:8089/2018/riders/moto2/grid/original/rider_8513_1521039288.jpg" + } + }, + { + "season": 2017, + "number": 87, + "sponsored_team": "Tech 3 Racing", + "team": { + "id": "45c86791-b247-4944-8d44-bb4ec019e5df", + "constructor": { + "id": "cdb641bf-2ec0-41cd-9959-e4322000fae9", + "name": "Energica", + "legacy_id": 589 + }, + "name": "Tech 3 Racing", + "legacy_id": 221, + "color": null, + "text_color": null, + "picture": null, + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2017/riders/moto2/bike/original/rider_8513_1490204521.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2017/riders/moto2/helmet/original/rider_8513_1490546655.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2017/riders/moto2/grid/original/rider_8513_1490198318.jpg" + } + }, + { + "season": 2016, + "number": 87, + "sponsored_team": "Tasca Racing Scuderia Moto2", + "team": { + "id": "15a6f04f-3816-431a-bdb6-101f7148214e", + "constructor": { + "id": "cdb641bf-2ec0-41cd-9959-e4322000fae9", + "name": "Energica", + "legacy_id": 589 + }, + "name": "Tasca Racing Scuderia Moto2", + "legacy_id": 219, + "color": null, + "text_color": null, + "picture": null, + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2016/riders/moto2/grid/original/rider_8513_1467032000.jpg" + } + }, + { + "season": 2015, + "number": 2, + "sponsored_team": "CIP", + "team": { + "id": "fa44e40f-acab-410b-9394-e723502692e3", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "CIP", + "legacy_id": 110, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_110_1584101124.jpg", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/8513" + } + }, + { + "season": 2014, + "number": 2, + "sponsored_team": "Calvo Team", + "team": { + "id": "fa44e40f-acab-410b-9394-e723502692e3", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "CIP", + "legacy_id": 110, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_110_1584101124.jpg", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/8513" + } + }, + { + "season": 2014, + "number": 2, + "sponsored_team": "Team Laglisse Calvo", + "team": { + "id": "fa44e40f-acab-410b-9394-e723502692e3", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "CIP", + "legacy_id": 110, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_110_1584101124.jpg", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/8513" + } + } + ], + "biography": { + "text": "The eldest son of former 500cc World Champion Wayne Gardner, Remy got his first taste of short-circuit track action at the age of ten after being brought up in motocross and enduro. In 2010 he was invited by Honda Australia to represent them in the NS100F International Trophy and took part in the premier MRRDA Nippers Championship for riders under 13. The following year he left Australia to settle in Spain, where he competed in the Mediterranean Championship. From 2013 he rode in the FIM CEV Repsol with the Calvo/LaGlisse team. In 2015 Gardner joined the CIP Team with a Mahindra bike and moved to Moto2™ in 2016, ending the year with Tasca Racing. In 2017 the Australian moved to Tech 3 Racing in the intermediate class, with whom he remained with for 2018. Gardner's season was heavily hampered after a training accident left him with two broken legs, with a best finish of fifth coming in Valencia. A move to the SAG Team came in 2019, there was a podium and four Top 6 appearances, but he couldn’t find the consistency to challenge regularly. 2020 saw his fortunes improve with three podiums preceding a maiden race win in the Portimao finale. That victory was the perfect springboard into the Red Bull KTM Ajo team, and the Australian was able to unravel a stunning year. Five wins, six P2s and one P3 was enough to see Gardner fend off rookie sensation teammate Raul Fernandez to claim the intermediate class title. Now, a debut MotoGP™ campaign awaits - alongside Fernandez - in the Tech3 KTM Factory Racing ranks. ", + "media": { + "video": null, + "picture": "http://localhost:8089/riders/d/7/d70e317a-3559-4c1b-aea9-9257c94d96e9/biography/87_Remy_Gardner.jpg" + } + }, + "legend": false, + "legacy_id": 8513, + "merchandise_url": null, + "published": true, + "injured": false, + "banned": false, + "wildcard": false +} \ No newline at end of file diff --git a/src/test/resources/__files/rider/8520.json b/src/test/resources/__files/rider/8520.json index 1c0385f..b64422b 100644 --- a/src/test/resources/__files/rider/8520.json +++ b/src/test/resources/__files/rider/8520.json @@ -29,7 +29,7 @@ "legacy_id": 19, "color": "#183dc7", "text_color": "#ffffff", - "picture": "https://photos.motogp.com/teams/9/1/91699bb4-f33d-40de-b995-4f5e120ff74d/Yamaha.png", + "picture": "http://localhost:8089/teams/9/1/91699bb4-f33d-40de-b995-4f5e120ff74d/Yamaha.png", "published": true }, "category": { @@ -42,19 +42,19 @@ "current": false, "pictures": { "profile": { - "main": "https://photos.motogp.com/riders/6/9/69b5c348-2840-4dc1-bf7b-457c0683222c/profile/main/20-Fabio-Quartararo.png", + "main": "http://localhost:8089/riders/6/9/69b5c348-2840-4dc1-bf7b-457c0683222c/profile/main/20-Fabio-Quartararo.png", "secondary": null }, "bike": { - "main": "https://photos.motogp.com/riders/d/0/d088b244-b3c1-4f06-af3c-e122613e2b8b/bike/main/_0003_20-Fabio-Quartararo-Bike-MotoGPDSC04216.png", + "main": "http://localhost:8089/riders/d/0/d088b244-b3c1-4f06-af3c-e122613e2b8b/bike/main/_0003_20-Fabio-Quartararo-Bike-MotoGPDSC04216.png", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/riders/b/b/bbe8044a-2fbf-448c-bfad-6d65e596b06c/helmet/main/20-Fabio-Quartararo.jpg", + "main": "http://localhost:8089/riders/b/b/bbe8044a-2fbf-448c-bfad-6d65e596b06c/helmet/main/20-Fabio-Quartararo.jpg", "secondary": null }, - "number": "https://photos.motogp.com/riders/3/9/39bb0c54-8a66-461c-8b0c-04edd1b840b9/number/20-Fabio-Quartararo.png", - "portrait": "https://photos.motogp.com/riders/6/9/69b5c348-2840-4dc1-bf7b-457c0683222c/portrait/20_Fabio_Quartararo.jpg" + "number": "http://localhost:8089/riders/3/9/39bb0c54-8a66-461c-8b0c-04edd1b840b9/number/20-Fabio-Quartararo.png", + "portrait": "http://localhost:8089/riders/6/9/69b5c348-2840-4dc1-bf7b-457c0683222c/portrait/20_Fabio_Quartararo.jpg" } }, { @@ -72,7 +72,7 @@ "legacy_id": 19, "color": "#183dc7", "text_color": "#ffffff", - "picture": "https://photos.motogp.com/teams/9/1/91699bb4-f33d-40de-b995-4f5e120ff74d/Yamaha.png", + "picture": "http://localhost:8089/teams/9/1/91699bb4-f33d-40de-b995-4f5e120ff74d/Yamaha.png", "published": true }, "category": { @@ -85,19 +85,19 @@ "current": false, "pictures": { "profile": { - "main": "https://photos.motogp.com/riders/8/b/8b36ef74-d20e-494c-88e9-3ff00fcaf0b1/profile/main/_0009_20-Fabio-Quartararo,-Rider_A7R1206.png", + "main": "http://localhost:8089/riders/8/b/8b36ef74-d20e-494c-88e9-3ff00fcaf0b1/profile/main/_0009_20-Fabio-Quartararo,-Rider_A7R1206.png", "secondary": null }, "bike": { - "main": "https://photos.motogp.com/riders/8/b/8b36ef74-d20e-494c-88e9-3ff00fcaf0b1/bike/main/_0009_20-Fabio-Quartararo,-Bike_LG86933.png", + "main": "http://localhost:8089/riders/8/b/8b36ef74-d20e-494c-88e9-3ff00fcaf0b1/bike/main/_0009_20-Fabio-Quartararo,-Bike_LG86933.png", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/riders/8/b/8b36ef74-d20e-494c-88e9-3ff00fcaf0b1/helmet/main/_0011_20_Fabio_Quartararo,_Helmet_LG61044.jpg", + "main": "http://localhost:8089/riders/8/b/8b36ef74-d20e-494c-88e9-3ff00fcaf0b1/helmet/main/_0011_20_Fabio_Quartararo,_Helmet_LG61044.jpg", "secondary": null }, - "number": "https://photos.motogp.com/riders/3/9/39bb0c54-8a66-461c-8b0c-04edd1b840b9/number/20-Fabio-Quartararo.png", - "portrait": "https://photos.motogp.com/riders/7/0/70e21201-f3ae-4562-93c0-136900d961b8/portrait/_0011_20-Fabio-Quartararo,-Rider_A7R1197.jpg" + "number": "http://localhost:8089/riders/3/9/39bb0c54-8a66-461c-8b0c-04edd1b840b9/number/20-Fabio-Quartararo.png", + "portrait": "http://localhost:8089/riders/7/0/70e21201-f3ae-4562-93c0-136900d961b8/portrait/_0011_20-Fabio-Quartararo,-Rider_A7R1197.jpg" } }, { @@ -115,7 +115,7 @@ "legacy_id": 46, "color": "#1e4374", "text_color": "#ffffff", - "picture": "https://photos.motogp.com/teams/7/0/7064589f-b982-4976-a29c-9c72737a40cb/Petronas-Yamaha_SRT.png", + "picture": "http://localhost:8089/teams/7/0/7064589f-b982-4976-a29c-9c72737a40cb/Petronas-Yamaha_SRT.png", "published": true }, "category": { @@ -128,19 +128,19 @@ "current": false, "pictures": { "profile": { - "main": "https://photos.motogp.com/riders/7/7/77a44123-a5e9-4df0-9f8e-f460e54c5155/profile/main/1_0004_20-Fabio-Quartararo,-Body_DSC6852.png", + "main": "http://localhost:8089/riders/7/7/77a44123-a5e9-4df0-9f8e-f460e54c5155/profile/main/1_0004_20-Fabio-Quartararo,-Body_DSC6852.png", "secondary": null }, "bike": { - "main": "https://photos.motogp.com/riders/a/6/a63fd9f5-f934-42db-aee2-bd0791468642/bike/main/20-Fabio-Quartararo.png", + "main": "http://localhost:8089/riders/a/6/a63fd9f5-f934-42db-aee2-bd0791468642/bike/main/20-Fabio-Quartararo.png", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/riders/d/8/d88fd4e7-02a6-4927-9435-51f7b1974f00/helmet/main/20-Fabio-Quartararo.jpg", + "main": "http://localhost:8089/riders/d/8/d88fd4e7-02a6-4927-9435-51f7b1974f00/helmet/main/20-Fabio-Quartararo.jpg", "secondary": null }, - "number": "https://photos.motogp.com/2019/dorsales/3/8520.png", - "portrait": "https://photos.motogp.com/riders/7/1/71f6fc83-f599-4594-b089-ce04f62a32fa/portrait/20-Fabio_Quartararo.jpg" + "number": "http://localhost:8089/2019/dorsales/3/8520.png", + "portrait": "http://localhost:8089/riders/7/1/71f6fc83-f599-4594-b089-ce04f62a32fa/portrait/20-Fabio_Quartararo.jpg" } }, { @@ -158,7 +158,7 @@ "legacy_id": 46, "color": "#1e4374", "text_color": "#ffffff", - "picture": "https://photos.motogp.com/teams/7/0/7064589f-b982-4976-a29c-9c72737a40cb/Petronas-Yamaha_SRT.png", + "picture": "http://localhost:8089/teams/7/0/7064589f-b982-4976-a29c-9c72737a40cb/Petronas-Yamaha_SRT.png", "published": true }, "category": { @@ -175,15 +175,15 @@ "secondary": null }, "bike": { - "main": "https://photos.motogp.com/2019/riders/motogp/bike/original/rider_8520_1552058398.jpg", + "main": "http://localhost:8089/2019/riders/motogp/bike/original/rider_8520_1552058398.jpg", "secondary": null }, "helmet": { "main": null, "secondary": null }, - "number": "https://photos.motogp.com/2019/dorsales/3/8520.png", - "portrait": "https://photos.motogp.com/2019/riders/motogp/grid/original/rider_8520_1554806150.jpg" + "number": "http://localhost:8089/2019/dorsales/3/8520.png", + "portrait": "http://localhost:8089/2019/riders/motogp/grid/original/rider_8520_1554806150.jpg" } }, { @@ -201,7 +201,7 @@ "legacy_id": 46, "color": "#1e4374", "text_color": "#ffffff", - "picture": "https://photos.motogp.com/teams/7/0/7064589f-b982-4976-a29c-9c72737a40cb/Petronas-Yamaha_SRT.png", + "picture": "http://localhost:8089/teams/7/0/7064589f-b982-4976-a29c-9c72737a40cb/Petronas-Yamaha_SRT.png", "published": true }, "category": { @@ -218,15 +218,15 @@ "secondary": null }, "bike": { - "main": "https://photos.motogp.com/2018/riders/moto2/bike/original/rider_8520_1521198013.jpg", + "main": "http://localhost:8089/2018/riders/moto2/bike/original/rider_8520_1521198013.jpg", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/2018/riders/moto2/helmet/original/rider_8520_1521313583.jpg", + "main": "http://localhost:8089/2018/riders/moto2/helmet/original/rider_8520_1521313583.jpg", "secondary": null }, "number": null, - "portrait": "https://photos.motogp.com/2018/riders/moto2/grid/original/rider_8520_1521039363.jpg" + "portrait": "http://localhost:8089/2018/riders/moto2/grid/original/rider_8520_1521039363.jpg" } }, { @@ -244,7 +244,7 @@ "legacy_id": 213, "color": "#b3211b", "text_color": "#ffffff", - "picture": "https://photos.motogp.com/teams/d/a/daf86fa2-89e7-4a60-87f9-1190cffcc30a/09-Jorge-Navarro-Bike-Moto2DSC03162.png", + "picture": "http://localhost:8089/teams/d/a/daf86fa2-89e7-4a60-87f9-1190cffcc30a/09-Jorge-Navarro-Bike-Moto2DSC03162.png", "published": true }, "category": { @@ -261,15 +261,15 @@ "secondary": null }, "bike": { - "main": "https://photos.motogp.com/2017/riders/moto2/bike/original/rider_8520_1490204545.jpg", + "main": "http://localhost:8089/2017/riders/moto2/bike/original/rider_8520_1490204545.jpg", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/2017/riders/moto2/helmet/original/rider_8520_1490546509.jpg", + "main": "http://localhost:8089/2017/riders/moto2/helmet/original/rider_8520_1490546509.jpg", "secondary": null }, "number": null, - "portrait": "https://photos.motogp.com/2017/riders/moto2/grid/original/rider_8520_1490198356.jpg" + "portrait": "http://localhost:8089/2017/riders/moto2/grid/original/rider_8520_1490198356.jpg" } }, { @@ -287,7 +287,7 @@ "legacy_id": 105, "color": "#00bdcc", "text_color": "#ffffff", - "picture": "https://photos.motogp.com/teams/b/4/b4bb6973-5a92-4054-b2b5-5b766279245c/LeopardRacing.png", + "picture": "http://localhost:8089/teams/b/4/b4bb6973-5a92-4054-b2b5-5b766279245c/LeopardRacing.png", "published": true }, "category": { @@ -304,15 +304,15 @@ "secondary": null }, "bike": { - "main": "https://photos.motogp.com/2016/riders/moto3/bike/original/rider_8520_1458823962.jpg", + "main": "http://localhost:8089/2016/riders/moto3/bike/original/rider_8520_1458823962.jpg", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/2016/riders/moto3/helmet/original/rider_8520_1458821880.jpg", + "main": "http://localhost:8089/2016/riders/moto3/helmet/original/rider_8520_1458821880.jpg", "secondary": null }, "number": null, - "portrait": "https://photos.motogp.com/2016/riders/moto3/grid/original/rider_8520_1458821727.jpg" + "portrait": "http://localhost:8089/2016/riders/moto3/grid/original/rider_8520_1458821727.jpg" } }, { @@ -330,7 +330,7 @@ "legacy_id": 106, "color": "#027bce", "text_color": "#ffffff", - "picture": "https://photos.motogp.com/teams/4/f/4f858066-fdbe-47b4-9fb0-5e65910ea0fd/team_106_moto3_2020.png", + "picture": "http://localhost:8089/teams/4/f/4f858066-fdbe-47b4-9fb0-5e65910ea0fd/team_106_moto3_2020.png", "published": true }, "category": { @@ -355,7 +355,7 @@ "secondary": null }, "number": null, - "portrait": "https://www.motogp.com/en/api/rider/photo/grid/old/8520" + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/8520" } } ], @@ -363,12 +363,12 @@ "text": "Frenchman Fabio Quartararo got his start in motorcycle racing at the age of four, moving to Spain to develop his career and proclaimed national champion in the 70, 80 and 125 categories. In 2013 he won the FIM CEV Repsol Moto3™ championship and went on to win the same title again in 2014. The previous rule against participating in the Moto3™ World Championship until the age of 16 had been repealed for the winner of the then-national crown, so for 2015 - aged just 15 - Quartararo joined teammate Jorge Navarro in the Estrella Galicia 0,0 Honda team. Impressing from the start, Quartararo was on the podium in just his second race. He repeated that in Assen after claiming pole at both Jerez and Le Mans, but unfortunately a late season ankle injury halted his progress. For 2016 he moved to the Leopard Racing team with KTM machinery, and then moved up to Moto2™ in 2017 with Paginas Amarillas HP40. After some impressive showings of pace, Quartararo moved to Speed Up for his sophomore season in the intermediate class and took his first win - and pole - at the Circuit de Barcelona-Catalunya. His move to the premier class surprised many, but what followed in 2019 was nothing short of remarkable: seven podiums, fifth in the Championship and Rookie of the Year with 192 points. His stock continued to rise in 2020, opening up the season with back-to-back victories while securing a third in Barcelona. He lead the chasing pack in the Championship race until a sudden drop off in form cost him dearly and he slipped all the way down to eighth in the standings. The pressure was on straight away for El Diablo in 2021, replacing his hero Valentino Rossi in the factory Yamaha squad, but he didn't disappoint. Victory at Round 2 in Qatar was the springboard he needed and, despite arm pump issues in Jerez and problems with his leathers in Barcelona, he was a reformed character, keeping his cool to put together a memorable season. Four further victories, ten podiums, five pole positions all equalled his, and France's, first MotoGP™ World Championship. Can the Frenchman go back-to-back in 2022?", "media": { "video": null, - "picture": "https://photos.motogp.com/riders/0/6/06ac77ac-401d-4576-b782-c8d236e16aa0/biography/20_Fabio_Quartararo_DSC1701.jpg" + "picture": "http://localhost:8089/riders/0/6/06ac77ac-401d-4576-b782-c8d236e16aa0/biography/20_Fabio_Quartararo_DSC1701.jpg" } }, "legend": false, "legacy_id": 8520, - "merchandise_url": "https://store.motogp.com/en/fabio-quartararo-20-merchandise?utm_source=motogp.com&utm_medium=Link&utm_content=FQ20&utm_campaign=Store&o=motogp-riders-stats", + "merchandise_url": "http://localhost:8089/en/fabio-quartararo-20-merchandise?utm_source=localhost:8089&utm_medium=Link&utm_content=FQ20&utm_campaign=Store&o=motogp-riders-stats", "published": true, "injured": false, "banned": false, diff --git a/src/test/resources/__files/rider/8539.json b/src/test/resources/__files/rider/8539.json new file mode 100644 index 0000000..ff96df9 --- /dev/null +++ b/src/test/resources/__files/rider/8539.json @@ -0,0 +1,376 @@ +{ + "id": "525b1551-f10b-4cfd-9b43-59af6fca654b", + "name": "Fabio", + "surname": "Di Giannantonio", + "nickname": null, + "country": { + "iso": "IT", + "name": "Italy" + }, + "birth_city": "Roma", + "birth_date": "1998-10-10", + "physical_attributes": { + "height": 175, + "weight": 68 + }, + "career": [ + { + "season": 2023, + "number": 49, + "sponsored_team": "Gresini Racing MotoGP™", + "team": { + "id": "11729e67-d2cb-41ad-b3a8-4a0ac5768a5f", + "constructor": { + "id": "38af1078-e2f1-4399-811c-1e98cf6f6150", + "name": "Ducati", + "legacy_id": 110 + }, + "name": "Gresini Racing MotoGP™", + "legacy_id": 10, + "color": "#9eb5da", + "text_color": "#323232", + "picture": "http://localhost:8089/teams/6/6/66af5d2c-8d52-4099-988c-981983046476/GresiniRacing_.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "FD49", + "current": true, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/a/0/a04438ea-4e12-47f6-bb08-ba4589ea3665/profile/main/49-Fabio-DiGiananntonioRider_DS_5200.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/a/1/a12c0f24-05ee-4983-9407-f05fbdf7c67c/bike/main/49_Fabio_Di_Giannantonio.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/a/d/ad1917dc-aaf4-4038-b5e8-82c6b83ebb23/helmet/main/49-Fabio-Diggianantonio.jpg", + "secondary": null + }, + "number": "http://localhost:8089/riders/6/3/635ed73d-9b39-4ab6-8475-4d10efca9311/number/_0023_49_Fabio_DiGiannantonio.png", + "portrait": "http://localhost:8089/riders/a/0/a04438ea-4e12-47f6-bb08-ba4589ea3665/portrait/49-Fabio-DiGiannantonio-Rider_DS_5192.jpg" + } + }, + { + "season": 2022, + "number": 49, + "sponsored_team": "Gresini Racing MotoGP™", + "team": { + "id": "11729e67-d2cb-41ad-b3a8-4a0ac5768a5f", + "constructor": { + "id": "38af1078-e2f1-4399-811c-1e98cf6f6150", + "name": "Ducati", + "legacy_id": 110 + }, + "name": "Gresini Racing MotoGP™", + "legacy_id": 10, + "color": "#9eb5da", + "text_color": "#323232", + "picture": "http://localhost:8089/teams/6/6/66af5d2c-8d52-4099-988c-981983046476/GresiniRacing_.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "FD49", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/a/0/a04438ea-4e12-47f6-bb08-ba4589ea3665/profile/main/49-Fabio-DiGiananntonioRider_DS_5200.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/a/1/a12c0f24-05ee-4983-9407-f05fbdf7c67c/bike/main/49_Fabio_Di_Giannantonio.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/a/d/ad1917dc-aaf4-4038-b5e8-82c6b83ebb23/helmet/main/49-Fabio-Diggianantonio.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/riders/a/0/a04438ea-4e12-47f6-bb08-ba4589ea3665/portrait/49-Fabio-DiGiannantonio-Rider_DS_5192.jpg" + } + }, + { + "season": 2021, + "number": 21, + "sponsored_team": "Federal Oil Gresini Moto2", + "team": { + "id": "7ce8e61c-f686-43cc-ad13-d763402a74ee", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "Federal Oil Gresini Moto2", + "legacy_id": 208, + "color": "#d30000", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/f/2/f20604ed-27d7-4e97-a4d2-e8346c8eb62c/Federal-Oil-Gresini-Moto2.png", + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": "FD21", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/c/d/cd35bb7a-cf93-42fd-80f8-e0ed7c1b75ee/profile/main/_0001_21-Fabio-Di-Giannantonio,-Rider_A7R9819.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/d/8/d8c6230c-d7e9-4f38-a336-08d7bb2e8250/bike/main/21-Fabio-Di_Giannantonio.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/c/d/cd35bb7a-cf93-42fd-80f8-e0ed7c1b75ee/helmet/main/_0001_21-Fabio-Di-Giannantonio.jpg", + "secondary": null + }, + "number": "http://localhost:8089/riders/6/5/65105208-54f5-4b6c-8900-1964cde98e5f/number/_0002_21_Fabio_Di_Giannantonio.png", + "portrait": "http://localhost:8089/riders/c/d/cd35bb7a-cf93-42fd-80f8-e0ed7c1b75ee/portrait/_0001_21-Fabio-Di-Giannantonio.jpg" + } + }, + { + "season": 2020, + "number": 21, + "sponsored_team": "MB Conveyors Speed Up", + "team": { + "id": "ca3319bd-50da-4776-a8c5-d40d067fb9f8", + "constructor": { + "id": "fe62d196-ff34-409a-aa32-4aae146e2e3c", + "name": "Speed Up", + "legacy_id": 431 + }, + "name": "MB Conveyors Speed Up", + "legacy_id": 210, + "color": "#ff8600", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/0/4/04a517ef-97d5-463a-996a-07533de86d21/team_210_moto2_2020.png", + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": "FD21", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/9/6/96cb1e15-97b5-4590-afe4-757ebd29c865/profile/main/21-Fabio-Di-Giannantonio-ITA---DSC_1108.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2020/riders/moto2/bike/original/rider_8539_1583840795.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2020/riders/moto2/helmet/original/rider_8539_1584104104.jpg", + "secondary": null + }, + "number": "http://localhost:8089/2020/dorsales/others/21.png", + "portrait": "http://localhost:8089/2020/riders/moto2/grid/original/rider_8539_1583402510.jpg" + } + }, + { + "season": 2019, + "number": 21, + "sponsored_team": "MB Conveyors Speed Up", + "team": { + "id": "be9f0401-07b7-41ca-8398-0b7c4432b9e1", + "constructor": { + "id": "fe62d196-ff34-409a-aa32-4aae146e2e3c", + "name": "Speed Up", + "legacy_id": 431 + }, + "name": "MB Conveyors Speed Up", + "legacy_id": 210, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto2/original/team_bike_210_1583857099.jpg", + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2019/riders/moto2/bike/original/rider_8539_1551780667.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2019/riders/moto2/helmet/original/rider_8539_1551784620.jpg", + "secondary": null + }, + "number": "http://localhost:8089/2020/dorsales/others/21.png", + "portrait": "http://localhost:8089/2019/riders/moto2/grid/original/rider_8539_1551890063.jpg" + } + }, + { + "season": 2018, + "number": 0, + "sponsored_team": "Speed Up Racing", + "team": { + "id": "0ced5bc9-96e6-40af-9869-f244e7616384", + "constructor": { + "id": "ebee4eca-8e27-11eb-8dcd-0242ac130003", + "name": "Boscoscuro", + "legacy_id": 599 + }, + "name": "MB Conveyors Speed Up", + "legacy_id": 220, + "color": "#3b7d87", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/8/b/8bdf1fda-73cc-4371-8f44-ad2732ac403f/Speed-Up-Racing.png", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2018/riders/moto3/bike/original/rider_8539_1521135340.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2018/riders/moto3/helmet/original/rider_8539_1521312658.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2018/riders/moto3/grid/original/rider_8539_1521047842.jpg" + } + }, + { + "season": 2017, + "number": 21, + "sponsored_team": "Del Conca Gresini Moto3", + "team": { + "id": "2e9ead6f-cea5-44e7-b26b-bb5b7f95f735", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Del Conca Gresini Moto3", + "legacy_id": 112, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_112_1584101123.jpg", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2017/riders/moto3/bike/original/rider_8539_1490207404.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2017/riders/moto3/helmet/original/rider_8539_1490546504.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2017/riders/moto3/grid/original/rider_8539_1490886715.jpg" + } + }, + { + "season": 2016, + "number": 4, + "sponsored_team": "Gresini Racing Moto3", + "team": { + "id": "ebeb79d7-b281-4c39-b00f-e07f3dc87657", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Gresini Racing Moto3", + "legacy_id": 112, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_112_1584101123.jpg", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2016/riders/moto3/bike/original/rider_8539_1458824004.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2016/riders/moto3/helmet/original/rider_8539_1458823929.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2016/riders/moto3/grid/original/rider_8539_1458823914.jpg" + } + } + ], + "biography": { + "text": "Fabio Di Giannantonio hails from Rome, Italy and ended the 2013 European Moto3™ Championship in ninth. For 2014 he began to focus on the Red Bull Rookies Cup, ending the year in eighth with a best finish of second at Brno. In 2015 he emerged as a title contender, taking two wins and four second place finishes to end the year in second. This saw him quickly snapped up by the Gresini team, racing the final 2015 round for them in Valencia before joining the team full time in 2016. After fighting to be Rookie of the Year and taking three podiums, Di Giannantonio stayed with Del Conca Gresini Racing Team Moto3™ for 2017 and took five podiums to take P5 overall. He remained with the outfit in 2018, and managed to secure second in the lightweight class Championship after claiming his first two Grand Prix race wins. \n\nA step up to the Moto2™ class with Speed Up Racing was the Italian’s next chapter, and it was an impressive year. Six top tens, coupled with two podiums in Brno and Misano, saw Di Giannantonio claim P9 overall and the Moto2™ Rookie of the Year. Chasing a first intermediate class victory in 2020, the Italian could only muster two podium finishes while he cruelly crashed out in the Valencia GP as he searched for that elusive victory. 2021 was a year of change as Di Giannantonio moved to Federal Oil Gresini Moto2 and a Kalex bike. Better fortunes came his way as he clinched that all-important Grand Prix win in Jerez. Three other podiums were enough to earn the Italian a dream move to MotoGP™ in 2022.\n\nThe highlight of Diggia's rookie campaign was pole position at his home Grand Prix in Mugello, however there weren't many memorable moments outside of that. He remains with Gresini Racing but teams up with World Championship winning crew chief Frankie Carchedi for 2023.", + "media": { + "video": null, + "picture": "http://localhost:8089/riders/8/e/8ee8aafa-7ef7-4b2f-b474-1780010ed129/biography/49_Fabio_Digiannantonio.jpg" + } + }, + "legend": false, + "legacy_id": 8539, + "merchandise_url": null, + "published": true, + "injured": false, + "banned": false, + "wildcard": false +} \ No newline at end of file diff --git a/src/test/resources/__files/rider/8688.json b/src/test/resources/__files/rider/8688.json new file mode 100644 index 0000000..85dca79 --- /dev/null +++ b/src/test/resources/__files/rider/8688.json @@ -0,0 +1,419 @@ +{ + "id": "e622ec5b-5ccf-457c-a67f-ec028f0ddf6e", + "name": "Marco", + "surname": "Bezzecchi", + "nickname": null, + "country": { + "iso": "IT", + "name": "Italy" + }, + "birth_city": "Rimini", + "birth_date": "1998-11-12", + "physical_attributes": { + "height": 174, + "weight": 61 + }, + "career": [ + { + "season": 2023, + "number": 72, + "sponsored_team": "Mooney VR46 Racing Team", + "team": { + "id": "a62502b0-87f1-427f-aaa2-5f7c893c8387", + "constructor": { + "id": "38af1078-e2f1-4399-811c-1e98cf6f6150", + "name": "Ducati", + "legacy_id": 110 + }, + "name": "Mooney VR46 Racing Team", + "legacy_id": 43, + "color": "#e1fc52", + "text_color": "#323232", + "picture": "http://localhost:8089/teams/f/9/f939b79d-2007-4fd8-842b-7bfdd32f4ef1/MooneyVR46.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "MB72", + "current": true, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/d/b/dbd00695-aa93-4ef6-bbe5-a36ed8b4459c/profile/main/72_Marco_Bezzecchi.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/d/b/dbd00695-aa93-4ef6-bbe5-a36ed8b4459c/bike/main/72_Marco_Bezzecchi_B.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/b/5/b54357b3-7530-4849-83dd-1b9317467d9f/helmet/main/72-Marco-Bezzecchi.jpg", + "secondary": null + }, + "number": "http://localhost:8089/riders/6/3/6314a05d-2c15-4faa-874a-5f8175fbe38b/number/_0017_72_Marco_Bezzecchi_01.png", + "portrait": "http://localhost:8089/riders/d/b/dbd00695-aa93-4ef6-bbe5-a36ed8b4459c/portrait/72_Marco_Bezzecchi.jpg" + } + }, + { + "season": 2022, + "number": 72, + "sponsored_team": "Mooney VR46 Racing Team", + "team": { + "id": "a62502b0-87f1-427f-aaa2-5f7c893c8387", + "constructor": { + "id": "38af1078-e2f1-4399-811c-1e98cf6f6150", + "name": "Ducati", + "legacy_id": 110 + }, + "name": "Mooney VR46 Racing Team", + "legacy_id": 43, + "color": "#e1fc52", + "text_color": "#323232", + "picture": "http://localhost:8089/teams/f/9/f939b79d-2007-4fd8-842b-7bfdd32f4ef1/MooneyVR46.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "MB72", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/d/b/dbd00695-aa93-4ef6-bbe5-a36ed8b4459c/profile/main/72_Marco_Bezzecchi.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/d/b/dbd00695-aa93-4ef6-bbe5-a36ed8b4459c/bike/main/72_Marco_Bezzecchi_B.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/b/5/b54357b3-7530-4849-83dd-1b9317467d9f/helmet/main/72-Marco-Bezzecchi.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/riders/d/b/dbd00695-aa93-4ef6-bbe5-a36ed8b4459c/portrait/72_Marco_Bezzecchi.jpg" + } + }, + { + "season": 2021, + "number": 72, + "sponsored_team": "SKY Racing Team VR46", + "team": { + "id": "f7018a62-3aee-41f1-b196-6b7e1b7387da", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "SKY Racing Team VR46", + "legacy_id": 101, + "color": "#008ac5", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/2/0/20a547d5-23fe-4c17-8125-fa0a6a47891d/Sky-Racing-Team-VR46.png", + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": "MB72", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/4/6/469e19a3-dbdc-4d63-bd86-2e9e28779211/profile/main/_0001_72-Marco-Bezzecchi,-Rider_A7R0103.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/riders/0/f/0faef0d0-f3bb-4a7e-b944-f55e5c671382/bike/main/_0003_72-Marco-Bezzecchi,-Bike_LG86269.png", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/riders/4/6/469e19a3-dbdc-4d63-bd86-2e9e28779211/helmet/main/_0001_72-Marco-Bezzecchi.jpg", + "secondary": null + }, + "number": "http://localhost:8089/riders/e/2/e2949ac5-762a-4704-b8e2-9fbb06e77e96/number/_0017_72_Marco_Bezzecchi.png", + "portrait": "http://localhost:8089/riders/4/6/469e19a3-dbdc-4d63-bd86-2e9e28779211/portrait/_0001_72-Marco-Bezzecchi.jpg" + } + }, + { + "season": 2020, + "number": 72, + "sponsored_team": "SKY Racing Team VR46", + "team": { + "id": "f7018a62-3aee-41f1-b196-6b7e1b7387da", + "constructor": { + "id": "791160c2-6d2f-47ad-8d87-29e4f729073a", + "name": "Kalex", + "legacy_id": 447 + }, + "name": "SKY Racing Team VR46", + "legacy_id": 101, + "color": "#008ac5", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/2/0/20a547d5-23fe-4c17-8125-fa0a6a47891d/Sky-Racing-Team-VR46.png", + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": "MB72", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/5/2/52810b68-a095-4cf9-97ad-5fe717f0d06f/profile/main/72-Marco-Bezzecchi-ITA---DSC_0787.png", + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2020/riders/moto2/bike/original/rider_8688_1583840803.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2020/riders/moto2/helmet/original/rider_8688_1584104056.jpg", + "secondary": null + }, + "number": "http://localhost:8089/2020/dorsales/others/72.png", + "portrait": "http://localhost:8089/2020/riders/moto2/grid/original/rider_8688_1583402644.jpg" + } + }, + { + "season": 2019, + "number": 72, + "sponsored_team": "Red Bull KTM Tech 3", + "team": { + "id": "e7de07e2-4309-4a30-8f70-67ead4d6794e", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "Tech3 KTM Factory Racing", + "legacy_id": 11, + "color": "#b52d27", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/8/c/8cbb2dae-cd62-4850-901d-994227434a5c/Tech3KTM.png", + "published": true + }, + "category": { + "id": "ea854a67-73a4-4a28-ac77-d67b3b2a530a", + "name": "Moto2", + "legacy_id": 2 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2019/riders/moto2/bike/original/rider_8688_1551780696.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2019/riders/moto2/helmet/original/rider_8688_1551784607.jpg", + "secondary": null + }, + "number": "http://localhost:8089/2020/dorsales/others/72.png", + "portrait": "http://localhost:8089/2019/riders/moto2/grid/original/rider_8688_1551890371.jpg" + } + }, + { + "season": 2018, + "number": 0, + "sponsored_team": "Red Bull KTM Tech 3", + "team": { + "id": "e7de07e2-4309-4a30-8f70-67ead4d6794e", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "Tech3 KTM Factory Racing", + "legacy_id": 11, + "color": "#b52d27", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/8/c/8cbb2dae-cd62-4850-901d-994227434a5c/Tech3KTM.png", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2018/riders/moto3/bike/original/rider_8688_1521132766.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2018/riders/moto3/helmet/original/rider_8688_1521312771.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2018/riders/moto3/grid/original/rider_8688_1521196889.jpg" + } + }, + { + "season": 2017, + "number": 12, + "sponsored_team": "CIP", + "team": { + "id": "fa44e40f-acab-410b-9394-e723502692e3", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "CIP", + "legacy_id": 110, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_110_1584101124.jpg", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": "http://localhost:8089/2017/riders/moto3/bike/original/rider_8688_1490353756.jpg", + "secondary": null + }, + "helmet": { + "main": "http://localhost:8089/2017/riders/moto3/helmet/original/rider_8688_1490546615.jpg", + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2017/riders/moto3/grid/original/rider_8688_1490886753.jpg" + } + }, + { + "season": 2016, + "number": 53, + "sponsored_team": "Mahindra Racing", + "team": { + "id": "946f68b5-9ee9-4872-92a8-1d20d3b53412", + "constructor": { + "id": "8e21365c-a465-476a-a66b-5fda45058c2e", + "name": "Honda", + "legacy_id": 1 + }, + "name": "Mahindra Racing", + "legacy_id": 106, + "color": null, + "text_color": null, + "picture": "http://localhost:8089/2020/teams/moto3/original/team_bike_106_1584101117.jpg", + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/8688" + } + }, + { + "season": 2016, + "number": 53, + "sponsored_team": "MAHINDRA-ASPAR JUNIOR TEAM", + "team": { + "id": "1f1c36fb-26b8-4738-b533-0827618f4007", + "constructor": { + "id": "5ecd8db7-d87b-4b3e-87b6-1f72ee457ede", + "name": "KTM", + "legacy_id": 298 + }, + "name": "MAHINDRA-ASPAR JUNIOR TEAM", + "legacy_id": 228, + "color": null, + "text_color": null, + "picture": null, + "published": true + }, + "category": { + "id": "1ab203aa-e292-4842-8bed-971911357af1", + "name": "Moto3", + "legacy_id": 1 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/en/api/rider/photo/grid/old/8688" + } + } + ], + "biography": { + "text": "Bursting onto the Italian scene as runner-up in the CIV Moto3™ title in 2014, Italian Marco Bezzechi then went one better in his second year in the series as he took the title with an incredible seven wins. After two appearances in Moto3™ on the world stage with San Carlo Team Italia in 2015, Bezzechi also did two further races in 2016 with Mahindra Racing, as well as showing good promise in the FIM CEV Repsol and winning in both his appearances back in the CIV in Italy. For 2017, Bezzechi moved up to Moto3™ full time to partner compatriot and former CIV rival Manuel Pagliani at CIP. Fighting for Rookie of the Year, the Italian just missed out but took a first podium finish, and moved to Redox PruestelGP for 2018. Nine podiums in 2018, including three victories, saw Bezzecchi mount a lightweight class title assault against eventual Champion Jorge Martin. \n\nDespite missing out on the title, a hugely impressive Moto3™ campaign means Bezzecchi secured a Moto2™ seat with Red Bull KTM Tech3 in the Moto2™ class for 2019. A pair of Top 10s in Assen and Thailand were his best results with the French team before switching to SKY Racing Team VR46's Kalex heading into 2020. There, he earned seven podium finishes, including two victories in Styria and Valencia. His consistency allowed him to keep fighting for the title, but two falls in the last 5 races relegated him to fourth place. In 2021, the Italian made seven visits to the podium, including victory at the Red Bull Ring, to secure third in the Championship and earn himself a promotion to MotoGP™ with the Mooney VR46 squad. The curly-haired rider was instantly impressive, comfortably clinching the Rookie of the Year title. His standout moment came at the Dutch TT, where he bagged a career-first MotoGP™ podium.", + "media": { + "video": null, + "picture": "http://localhost:8089/riders/4/0/4006d453-e4ef-4ab2-a9b6-8c43169f2884/biography/72_Marco_Bezzecchi.jpg" + } + }, + "legend": false, + "legacy_id": 8688, + "merchandise_url": "http://localhost:8089/en/marco-bezzecchi/a-4611762720+z-89282-835039463?_s=bm-fi-motogp-prtsite-Marco-Bezzecchi-Store-300522-JM", + "published": true, + "injured": false, + "banned": false, + "wildcard": false +} \ No newline at end of file diff --git a/src/test/resources/__files/rider/8823.json b/src/test/resources/__files/rider/8823.json new file mode 100644 index 0000000..7edf8f4 --- /dev/null +++ b/src/test/resources/__files/rider/8823.json @@ -0,0 +1,148 @@ +{ + "id": "718be0ae-02cf-4999-8a0d-5aafd884e6a9", + "name": "Takuya", + "surname": "Tsuda", + "nickname": null, + "country": { + "iso": "JP", + "name": "Japan" + }, + "birth_city": null, + "birth_date": "1984-04-27", + "physical_attributes": { + "height": 0, + "weight": 0 + }, + "career": [ + { + "season": 2022, + "number": 85, + "sponsored_team": "Team SUZUKI Ecstar", + "team": null, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": "TT85", + "current": false, + "pictures": { + "profile": { + "main": "http://localhost:8089/riders/9/b/9b0ab14a-36f9-4677-bf10-9700a23da22c/profile/main/85_Takuya_Tsuda.png", + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/riders/9/b/9b0ab14a-36f9-4677-bf10-9700a23da22c/portrait/85_Takuya_Tsuda.jpg" + } + }, + { + "season": 2017, + "number": 12, + "sponsored_team": "Team SUZUKI ECSTAR", + "team": { + "id": "baac93d0-3068-4c7a-8d3f-ca215b568f77", + "constructor": { + "id": "de2d5a0a-83e3-4114-b5c6-72d10d8a9619", + "name": "Suzuki", + "legacy_id": 2 + }, + "name": "Team SUZUKI ECSTAR", + "legacy_id": 37, + "color": "#4294c1", + "text_color": "#ffffff", + "picture": "http://localhost:8089/teams/6/a/6ae0f119-6c7c-4171-9062-b431459e7c18/Suzuki.png", + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2017/riders/motogp/grid/original/rider_8823_1493979253.jpg" + } + }, + { + "season": 2017, + "number": 12, + "sponsored_team": "Suzuki Test Team", + "team": { + "id": "ab89b566-2238-4ea3-8455-e4879bb1cb66", + "constructor": { + "id": "cdb641bf-2ec0-41cd-9959-e4322000fae9", + "name": "Energica", + "legacy_id": 589 + }, + "name": "Suzuki Test Team", + "legacy_id": 218, + "color": null, + "text_color": null, + "picture": null, + "published": true + }, + "category": { + "id": "737ab122-76e1-4081-bedb-334caaa18c70", + "name": "MotoGP", + "legacy_id": 3 + }, + "in_grid": true, + "short_nickname": null, + "current": false, + "pictures": { + "profile": { + "main": null, + "secondary": null + }, + "bike": { + "main": null, + "secondary": null + }, + "helmet": { + "main": null, + "secondary": null + }, + "number": null, + "portrait": "http://localhost:8089/2017/riders/motogp/grid/original/rider_8823_1493979253.jpg" + } + } + ], + "biography": { + "text": "Takuya Tsuda has been an active part of Suzuki's World Championship success in recent times. The Japanese rider joined the Japanese manufacturer in 2015, when the Hamamatsu-based manufacturer returned to the premier class. Since then, he has brought his wealth of experience to developing the GSX-RR, alongside fellow tester Sylvain Guintoli, honing the machine on which Joan Mir would go on to win the world title in 2020. Throughout his long professional career he has had the opportunity to take several podiums in prestigious competitions such as the Suzuka 8 Hours or the All Japan series, while remaining active in the All Japan ST1000 category. After filling in for the injured Alex Rins at the 2017 Spanish GP, he gets his second chance in MotoGP™ in 2022, at the age of 38, with a wildcard at his home GP in Motegi, allowing Suzuki to say goodbye to MotoGP™ in front of his home fans with a local rider.", + "media": { + "video": null, + "picture": null + } + }, + "legend": false, + "legacy_id": 8823, + "merchandise_url": null, + "published": true, + "injured": false, + "banned": false, + "wildcard": false +} \ No newline at end of file diff --git a/src/test/resources/__files/rider/8947.json b/src/test/resources/__files/rider/8947.json index 376a502..a0b6302 100644 --- a/src/test/resources/__files/rider/8947.json +++ b/src/test/resources/__files/rider/8947.json @@ -29,7 +29,7 @@ "legacy_id": 11, "color": "#b7340b", "text_color": "#ffffff", - "picture": "https://photos.motogp.com/teams/8/c/8cbb2dae-cd62-4850-901d-994227434a5c/Tech3KTM.png", + "picture": "http://localhost:8089/teams/8/c/8cbb2dae-cd62-4850-901d-994227434a5c/Tech3KTM.png", "published": true }, "category": { @@ -42,19 +42,19 @@ "current": false, "pictures": { "profile": { - "main": "https://photos.motogp.com/riders/b/b/bb3a1140-3dc4-4697-bb0e-1272f11c680b/profile/main/_0001_27-Iker-Lecuona,-Rider_A7R0708.png", + "main": "http://localhost:8089/riders/b/b/bb3a1140-3dc4-4697-bb0e-1272f11c680b/profile/main/_0001_27-Iker-Lecuona,-Rider_A7R0708.png", "secondary": null }, "bike": { - "main": "https://photos.motogp.com/riders/b/b/bb3a1140-3dc4-4697-bb0e-1272f11c680b/bike/main/_0006_27-Iker-Lecuona,-Bike_LG86626.png", + "main": "http://localhost:8089/riders/b/b/bb3a1140-3dc4-4697-bb0e-1272f11c680b/bike/main/_0006_27-Iker-Lecuona,-Bike_LG86626.png", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/riders/b/b/bb3a1140-3dc4-4697-bb0e-1272f11c680b/helmet/main/_0005_27-Iker-Lecuona,-Helmet_LG60611.png", + "main": "http://localhost:8089/riders/b/b/bb3a1140-3dc4-4697-bb0e-1272f11c680b/helmet/main/_0005_27-Iker-Lecuona,-Helmet_LG60611.png", "secondary": null }, - "number": "https://photos.motogp.com/riders/0/5/0539cf1f-c16c-4c41-8c33-daf8ecb392ed/number/27-Iker-Lecuona.png", - "portrait": "https://photos.motogp.com/riders/b/b/bb3a1140-3dc4-4697-bb0e-1272f11c680b/portrait/_0005_27-Iker-Lecuona,-Rider_A7R0704.jpg" + "number": "http://localhost:8089/riders/0/5/0539cf1f-c16c-4c41-8c33-daf8ecb392ed/number/27-Iker-Lecuona.png", + "portrait": "http://localhost:8089/riders/b/b/bb3a1140-3dc4-4697-bb0e-1272f11c680b/portrait/_0005_27-Iker-Lecuona,-Rider_A7R0704.jpg" } }, { @@ -72,7 +72,7 @@ "legacy_id": 11, "color": "#b7340b", "text_color": "#ffffff", - "picture": "https://photos.motogp.com/teams/8/c/8cbb2dae-cd62-4850-901d-994227434a5c/Tech3KTM.png", + "picture": "http://localhost:8089/teams/8/c/8cbb2dae-cd62-4850-901d-994227434a5c/Tech3KTM.png", "published": true }, "category": { @@ -85,19 +85,19 @@ "current": false, "pictures": { "profile": { - "main": "https://photos.motogp.com/riders/e/d/ed4b8922-1425-4b57-87f4-19865c1ad4ea/profile/main/1_0006_27-Iker-Lecuona,-Body_DSC5518.png", + "main": "http://localhost:8089/riders/e/d/ed4b8922-1425-4b57-87f4-19865c1ad4ea/profile/main/1_0006_27-Iker-Lecuona,-Body_DSC5518.png", "secondary": null }, "bike": { - "main": "https://photos.motogp.com/riders/d/f/dff3a90b-5d6c-48a6-b9b9-dbc0bc8cf41b/bike/main/27-Iker-Lecuona.png", + "main": "http://localhost:8089/riders/d/f/dff3a90b-5d6c-48a6-b9b9-dbc0bc8cf41b/bike/main/27-Iker-Lecuona.png", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/riders/8/3/8368dc9a-4740-40ef-a99a-d49438839b8b/helmet/main/27-Iker-Lecuona.jpg", + "main": "http://localhost:8089/riders/8/3/8368dc9a-4740-40ef-a99a-d49438839b8b/helmet/main/27-Iker-Lecuona.jpg", "secondary": null }, - "number": "https://photos.motogp.com/riders/6/2/62485032-8b7d-45b0-a539-6df63fb26df7/number/27_Iker_Lecuona-.png", - "portrait": "https://photos.motogp.com/riders/6/f/6fc1e444-8207-433c-9f89-7ce1a305c3d7/portrait/27_Iker_Lecuona.jpg" + "number": "http://localhost:8089/riders/6/2/62485032-8b7d-45b0-a539-6df63fb26df7/number/27_Iker_Lecuona-.png", + "portrait": "http://localhost:8089/riders/6/f/6fc1e444-8207-433c-9f89-7ce1a305c3d7/portrait/27_Iker_Lecuona.jpg" } }, { @@ -115,7 +115,7 @@ "legacy_id": 207, "color": "#ff1d1d", "text_color": null, - "picture": "https://photos.motogp.com/2020/teams/moto2/original/team_bike_207_1583857094.jpg", + "picture": "http://localhost:8089/2020/teams/moto2/original/team_bike_207_1583857094.jpg", "published": true }, "category": { @@ -132,15 +132,15 @@ "secondary": null }, "bike": { - "main": "https://photos.motogp.com/2019/riders/moto2/bike/original/rider_8947_1551966390.jpg", + "main": "http://localhost:8089/2019/riders/moto2/bike/original/rider_8947_1551966390.jpg", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/2019/riders/moto2/helmet/original/rider_8947_1551784655.jpg", + "main": "http://localhost:8089/2019/riders/moto2/helmet/original/rider_8947_1551784655.jpg", "secondary": null }, - "number": "https://photos.motogp.com/2019/dorsales/3/8947.png", - "portrait": "https://photos.motogp.com/2019/riders/motogp/grid/original/rider_8947_1573810573.jpg" + "number": "http://localhost:8089/2019/dorsales/3/8947.png", + "portrait": "http://localhost:8089/2019/riders/motogp/grid/original/rider_8947_1573810573.jpg" } }, { @@ -158,7 +158,7 @@ "legacy_id": 207, "color": "#ff1d1d", "text_color": null, - "picture": "https://photos.motogp.com/2020/teams/moto2/original/team_bike_207_1583857094.jpg", + "picture": "http://localhost:8089/2020/teams/moto2/original/team_bike_207_1583857094.jpg", "published": true }, "category": { @@ -175,15 +175,15 @@ "secondary": null }, "bike": { - "main": "https://photos.motogp.com/2019/riders/moto2/bike/original/rider_8947_1551966390.jpg", + "main": "http://localhost:8089/2019/riders/moto2/bike/original/rider_8947_1551966390.jpg", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/2019/riders/moto2/helmet/original/rider_8947_1551784655.jpg", + "main": "http://localhost:8089/2019/riders/moto2/helmet/original/rider_8947_1551784655.jpg", "secondary": null }, "number": null, - "portrait": "https://photos.motogp.com/2019/riders/motogp/grid/original/rider_8947_1573810573.jpg" + "portrait": "http://localhost:8089/2019/riders/motogp/grid/original/rider_8947_1573810573.jpg" } }, { @@ -201,7 +201,7 @@ "legacy_id": 207, "color": "#ff1d1d", "text_color": null, - "picture": "https://photos.motogp.com/2020/teams/moto2/original/team_bike_207_1583857094.jpg", + "picture": "http://localhost:8089/2020/teams/moto2/original/team_bike_207_1583857094.jpg", "published": true }, "category": { @@ -218,15 +218,15 @@ "secondary": null }, "bike": { - "main": "https://photos.motogp.com/2018/riders/moto2/bike/original/rider_8947_1521135583.jpg", + "main": "http://localhost:8089/2018/riders/moto2/bike/original/rider_8947_1521135583.jpg", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/2018/riders/moto2/helmet/original/rider_8947_1521312670.jpg", + "main": "http://localhost:8089/2018/riders/moto2/helmet/original/rider_8947_1521312670.jpg", "secondary": null }, - "number": "https://photos.motogp.com/2020/dorsales/others/27.png", - "portrait": "https://photos.motogp.com/2018/riders/moto2/grid/original/rider_8947_1521039377.jpg" + "number": "http://localhost:8089/2020/dorsales/others/27.png", + "portrait": "http://localhost:8089/2018/riders/moto2/grid/original/rider_8947_1521039377.jpg" } }, { @@ -261,15 +261,15 @@ "secondary": null }, "bike": { - "main": "https://photos.motogp.com/2017/riders/moto2/bike/original/rider_8947_1490204585.jpg", + "main": "http://localhost:8089/2017/riders/moto2/bike/original/rider_8947_1490204585.jpg", "secondary": null }, "helmet": { - "main": "https://photos.motogp.com/2017/riders/moto2/helmet/original/rider_8947_1490546532.jpg", + "main": "http://localhost:8089/2017/riders/moto2/helmet/original/rider_8947_1490546532.jpg", "secondary": null }, "number": null, - "portrait": "https://photos.motogp.com/2017/riders/moto2/grid/original/rider_8947_1490540306.jpg" + "portrait": "http://localhost:8089/2017/riders/moto2/grid/original/rider_8947_1490540306.jpg" } }, { @@ -312,7 +312,7 @@ "secondary": null }, "number": null, - "portrait": "https://photos.motogp.com/2016/riders/moto2/grid/original/rider_8947_1472833153.jpg" + "portrait": "http://localhost:8089/2016/riders/moto2/grid/original/rider_8947_1472833153.jpg" } } ], @@ -320,7 +320,7 @@ "text": "A 16-year-old Iker Lecuona debuted in the Moto2™ World Championship at the minimum age for the catgeory. Born in 2000, Lecuona raced in the FIM CEV Repsol International Championship in Moto2™ in 2015 and 2016, with a slew of impressive top five results. His debut in the Moto2™ World Championship saw the Spaniard race for the Garage Plus Interwetten team to replace Dominique Aegerter, and Lecuona remains with the team for 2017 on Kalex machinery. He stayed with the team for 2018 as they switched to KTM machinery, with Lecuona securing his first Grand Prix podium at the season finale in Valencia. Lecuona remained with the same team for 2019 and picked up a rostrum finish at the Thai GP, and even debuted in the premier class for the season finale in Valencia. 2020 saw him become a full-time Tech 3 rider and he impressed without sparkling in his rookie year, securing three Top 10 finishes. More will be expected of him in 2021, his sophomore year. ", "media": { "video": null, - "picture": "https://photos.motogp.com/riders/e/3/e3b40517-e1c5-4104-9834-c6188049d84c/biography/27_Iker_Lecuona_DSC1039.jpg" + "picture": "http://localhost:8089/riders/e/3/e3b40517-e1c5-4104-9834-c6188049d84c/biography/27_Iker_Lecuona_DSC1039.jpg" } }, "legend": false, diff --git a/src/test/resources/__files/sessions-test-2022-je1-gp.json b/src/test/resources/__files/sessions-test-2022-je1-gp.json new file mode 100644 index 0000000..5fe6e09 --- /dev/null +++ b/src/test/resources/__files/sessions-test-2022-je1-gp.json @@ -0,0 +1,140 @@ +[ + { + "id": "baaef7a9-8f8c-4f5c-9e2d-40192824e66b", + "type": "FP", + "number": 1, + "condition": { + "track": "", + "air": "\u00ba", + "humidity": "%", + "ground": "\u00ba", + "weather": "" + }, + "date": "2021-11-18T09:00:00+00:00", + "status": "Official", + "session_files": { + "classification": { + "url": "http:\/\/localhost:8089\/files\/testresults\/2022_JEREZ_MotoGP____OFFICIAL_TEST_classification_1.pdf", + "menu_position": 1 + }, + "analysis": { + "url": "http:\/\/localhost:8089\/files\/testresults\/2022_JEREZ_MotoGP____OFFICIAL_TEST_analysis_1.pdf", + "menu_position": 2 + }, + "average_speed": { + "url": "", + "menu_position": 2 + }, + "fast_lap_sequence": { + "url": "", + "menu_position": 2 + }, + "lap_chart": { + "url": "", + "menu_position": 2 + }, + "analysis_by_lap": { + "url": "", + "menu_position": 2 + }, + "fast_lap_rider": { + "url": "", + "menu_position": 2 + }, + "grid": { + "url": "", + "menu_position": 2 + }, + "session": { + "url": "", + "menu_position": 2 + }, + "best_partial_time": { + "url": "", + "menu_position": 2 + }, + "maximum_speed": { + "url": "", + "menu_position": 2 + }, + "combined_practice": { + "url": "", + "menu_position": 2 + }, + "combined_classification": { + "url": "", + "menu_position": 2 + } + }, + "circuit": "Circuito de Jerez - \u00c1ngel Nieto" + }, + { + "id": "7aed8f0a-10b4-4a0e-9ef8-964f34687718", + "type": "FP", + "number": 2, + "condition": { + "track": "", + "air": "\u00ba", + "humidity": "%", + "ground": "\u00ba", + "weather": "" + }, + "date": "2021-11-19T09:00:00+00:00", + "status": "Official", + "session_files": { + "classification": { + "url": "http:\/\/localhost:8089\/files\/testresults\/2022_JEREZ_MotoGP____OFFICIAL_TEST_classification_2.pdf", + "menu_position": 1 + }, + "analysis": { + "url": "http:\/\/localhost:8089\/files\/testresults\/2022_JEREZ_MotoGP____OFFICIAL_TEST_analysis_2.pdf", + "menu_position": 2 + }, + "average_speed": { + "url": "", + "menu_position": 2 + }, + "fast_lap_sequence": { + "url": "", + "menu_position": 2 + }, + "lap_chart": { + "url": "", + "menu_position": 2 + }, + "analysis_by_lap": { + "url": "", + "menu_position": 2 + }, + "fast_lap_rider": { + "url": "", + "menu_position": 2 + }, + "grid": { + "url": "", + "menu_position": 2 + }, + "session": { + "url": "", + "menu_position": 2 + }, + "best_partial_time": { + "url": "", + "menu_position": 2 + }, + "maximum_speed": { + "url": "", + "menu_position": 2 + }, + "combined_practice": { + "url": "", + "menu_position": 2 + }, + "combined_classification": { + "url": "", + "menu_position": 2 + } + }, + "circuit": "Circuito de Jerez - \u00c1ngel Nieto" + } +] \ No newline at end of file