Skip to content

Commit

Permalink
feat[OrgAPIWrapper]: add a wrapper for APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucy Ciara Herud-Thomassen authored and Lucy Ciara Herud-Thomassen committed Mar 1, 2026
1 parent 58965ef commit d9dff24
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
12 changes: 11 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,17 @@
<artifactId>spring-security-crypto</artifactId>
<version>7.0.2</version>
</dependency>
</dependencies>

<!-- Source: https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.21.1</version>
<scope>compile</scope>
</dependency>


</dependencies>

<build>
<plugins>
Expand Down
11 changes: 8 additions & 3 deletions src/main/java/edu/group5/app/App.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
package edu.group5.app;

import edu.group5.app.control.OrgAPIWrapper;

/**
* Hello world!
*/
public class App {
public static void main(String[] args) {
System.out.println("Hello World!");
}
public static void main(String[] args) {
OrgAPIWrapper orgWrap = new OrgAPIWrapper("https://app.innsamlingskontrollen.no/api/public/v1/all");
System.out.println();
System.out.println();
orgWrap.importData();
}
}
1 change: 0 additions & 1 deletion src/main/java/edu/group5/app/control/Wrapper.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package edu.group5.app.control;

abstract class Wrapper {
protected Object data;

protected Wrapper() {
}
Expand Down

0 comments on commit d9dff24

Please sign in to comment.