diff --git a/src/main/java/com/spacecraft/SpacecraftEventsApplication.java b/src/main/java/com/spacecraft/SpacecraftEventsApplication.java new file mode 100644 index 0000000..466f89f --- /dev/null +++ b/src/main/java/com/spacecraft/SpacecraftEventsApplication.java @@ -0,0 +1,18 @@ +package com.spacecraft; + +import org.springframework.boot.CommandLineRunner; +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class SpacecraftEventsApplication implements CommandLineRunner { + + public static void main(String[] args) { + SpringApplication.run(SpacecraftEventsApplication.class, args); + } + + @Override + public void run(String... args) throws Exception { + System.out.println("Hello World"); + } +} diff --git a/src/main/java/com/spacecraft/dtos/EventDTO.java b/src/main/java/com/spacecraft/dtos/EventDTO.java new file mode 100644 index 0000000..f992d2d --- /dev/null +++ b/src/main/java/com/spacecraft/dtos/EventDTO.java @@ -0,0 +1,16 @@ +package com.spacecraft.dtos; + +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Data; + +@Data +public class EventDTO { + @JsonProperty("occurrence_time") + private String occurrenceTime; + @JsonProperty("event_name") + private String eventName; + private String id; + private String severity; + private double longitude; + private double latitude; +} diff --git a/src/main/java/com/spacecraft/dtos/LatitudeDTO.java b/src/main/java/com/spacecraft/dtos/LatitudeDTO.java new file mode 100644 index 0000000..8d83ae0 --- /dev/null +++ b/src/main/java/com/spacecraft/dtos/LatitudeDTO.java @@ -0,0 +1,9 @@ +package com.spacecraft.dtos; + +import lombok.Data; + +@Data +public class LatitudeDTO { + private String timestamp; + private double position; +} diff --git a/src/main/java/com/spacecraft/dtos/LongitudeDTO.java b/src/main/java/com/spacecraft/dtos/LongitudeDTO.java new file mode 100644 index 0000000..5f280a3 --- /dev/null +++ b/src/main/java/com/spacecraft/dtos/LongitudeDTO.java @@ -0,0 +1,9 @@ +package com.spacecraft.dtos; + +import lombok.Data; + +@Data +public class LongitudeDTO { + private String timestamp; + private double position; +} diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties new file mode 100644 index 0000000..033ebbb --- /dev/null +++ b/src/main/resources/application.properties @@ -0,0 +1 @@ +spring.application.name=SpacecraftEvents diff --git a/src/test/java/com/spacecraft/SpacecraftEventsApplicationTests.java b/src/test/java/com/spacecraft/SpacecraftEventsApplicationTests.java new file mode 100644 index 0000000..7d4372c --- /dev/null +++ b/src/test/java/com/spacecraft/SpacecraftEventsApplicationTests.java @@ -0,0 +1,13 @@ +package com.spacecraft; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; + +@SpringBootTest +class SpacecraftEventsApplicationTests { + + @Test + void contextLoads() { + } + +}