mirror of
https://gitlab.com/restcountries/restcountries.git
synced 2026-03-31 15:07:46 +01:00
Adding Continent to V3 and Country Structure
This commit is contained in:
+1
-7
@@ -5,20 +5,14 @@ variables:
|
||||
image: adoptopenjdk/openjdk14:alpine-slim
|
||||
|
||||
stages:
|
||||
- test
|
||||
- package
|
||||
- release
|
||||
- run
|
||||
|
||||
test:
|
||||
stage: test
|
||||
script:
|
||||
- ./mvnw test
|
||||
|
||||
maven-package:
|
||||
stage: package
|
||||
script:
|
||||
- ./mvnw clean install -DskipTests -Dmaven.repo.local=$MAVEN_USER_HOME
|
||||
- ./mvnw clean install -Dmaven.repo.local=$MAVEN_USER_HOME
|
||||
artifacts:
|
||||
paths:
|
||||
- target/*.jar
|
||||
|
||||
@@ -34,6 +34,7 @@ public class ControllerHelper {
|
||||
"gini",
|
||||
"fifa",
|
||||
"car",
|
||||
"timezones"
|
||||
"timezones",
|
||||
"continents"
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,6 +35,7 @@ public class BaseCountry {
|
||||
private String fifa;
|
||||
private Car car;
|
||||
private List<String> timezones;
|
||||
private List<String> continents;
|
||||
|
||||
public Name getName() {
|
||||
return name;
|
||||
@@ -305,4 +306,12 @@ public class BaseCountry {
|
||||
public void setTimezones(List<String> timezones) {
|
||||
this.timezones = timezones;
|
||||
}
|
||||
|
||||
public List<String> getContinents() {
|
||||
return continents;
|
||||
}
|
||||
|
||||
public void setContinents(List<String> continents) {
|
||||
this.continents = continents;
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user