-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor API routes to use `/api` prefix API endpoints across the application have been refactored to include an `/api` prefix. Tests have been updated to reflect this change. This makes the application follow standard RESTful API conventions better and makes differentiating between frontend and backend requests clearer.
- Loading branch information
1 parent
466aaf9
commit 796caa6
Showing
12 changed files
with
20 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ import org.springframework.http.HttpStatus | |
|
||
@DisplayName("Login API test") | ||
class LoginSpec : RestSpec() { | ||
val endpoint = "/login" | ||
val endpoint = "$restPrefix/login" | ||
val incorrectUserUid = "[email protected]" | ||
val incorrectUserPassword = "pass-12345" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ import org.springframework.http.HttpStatus | |
@DisplayName("Password API test") | ||
class PasswordSpec : RestSpec() { | ||
|
||
private val endpoint = "/password" | ||
private val endpoint = "$restPrefix/password" | ||
private val resetEndpoint = "$endpoint/reset" | ||
private val nonExistUserEmail = "[email protected]" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,9 +12,9 @@ import org.springframework.test.context.jdbc.Sql | |
|
||
@DisplayName("Registration API test") | ||
class RegistrationSpec : RestSpec() { | ||
val endpoint = "$restPrefix/register" | ||
val newUserUid = "[email protected]" | ||
val newUserPassword = "Qwert!2345" | ||
val endpoint = "/register" | ||
|
||
@Test | ||
@DisplayName("Should register user when it does not exist") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters