Skip to content

Commit d64498d

Browse files
v1.0.1
1 parent 34b8a08 commit d64498d

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@
4646
<dependency>
4747
<groupId>apereo</groupId>
4848
<artifactId>lai-event</artifactId>
49-
<version>1.0-SNAPSHOT</version>
49+
<version>1.0.2</version>
5050
</dependency>
5151
<dependency>
5252
<groupId>apereo</groupId>
5353
<artifactId>lai-model</artifactId>
54-
<version>1.0.2</version>
54+
<version>1.0.3</version>
5555
</dependency>
5656
<dependency>
5757
<groupId>com.google.code.gson</groupId>

src/main/java/unicon/matthews/dataloader/MatthewsClient.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,16 @@ public void postClass(unicon.matthews.oneroster.Class klass) {
170170
.exchange(url, HttpMethod.POST, he, JsonObject.class);
171171
}
172172

173+
public void postCourse(unicon.matthews.oneroster.Course course) {
174+
HttpEntity<unicon.matthews.oneroster.Course> he = new HttpEntity<unicon.matthews.oneroster.Course>(course, this.httpHeaders);
175+
176+
String path = "/api/courses";
177+
String url = this.baseUrl + path;
178+
179+
restTemplate
180+
.exchange(url, HttpMethod.POST, he, JsonObject.class);
181+
}
182+
173183
public void postClassMapping(ClassMapping classMapping) {
174184
HttpEntity<ClassMapping> he = new HttpEntity<ClassMapping>(classMapping, this.httpHeaders);
175185

0 commit comments

Comments
 (0)