Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 0 additions & 28 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,38 +36,11 @@
<version>18.3.1</version>
</dependency>

<!-- https://mvnrepository.com/artifact/commons-io/commons-io -->
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.22.0</version>
</dependency>

<dependency>
<groupId>javax.activation</groupId>
<artifactId>javax.activation-api</artifactId>
<version>1.2.0</version>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>${spring.version}</version>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<version>${spring.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.48</version>
<scope>provided</scope>
</dependency>
</dependencies>

<build>
Expand All @@ -82,7 +55,6 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.16.0</version>
<configuration>
<!-- or whatever version you use -->
<source>${java.version}</source>
<target>${java.version}</target>
</configuration>
Expand Down
9 changes: 1 addition & 8 deletions src/main/java/com/bandwidth/Model/CallRequest.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
package com.bandwidth.model;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class CallRequest {

private String to;
public record CallRequest(String to) {
}
4 changes: 2 additions & 2 deletions src/main/java/com/bandwidth/controller/CallController.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ public class CallController {

@PostMapping()
public ResponseEntity<Void> createCall(@RequestBody CallRequest callRequest) {
if (callRequest.getTo() == null) {
if (callRequest.to() == null) {
return ResponseEntity.badRequest().build();
}

CreateCall createCall = new CreateCall()
.applicationId(applicationId)
.to(callRequest.getTo())
.to(callRequest.to())
.from(number)
.answerUrl(URI.create(baseCallbackUrl + "/callbacks/outbound/voice"));

Expand Down
Loading