Skip to content

Commit

Permalink
BPWA-105 | Fixing some URL convention misses on APIs which caused errors
Browse files Browse the repository at this point in the history
  • Loading branch information
charanCharizard committed Aug 12, 2021
1 parent 1549ba5 commit 225e55b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ dependencies {
implementation("io.arrow-kt:arrow-optics:0.13.2")
implementation("org.litote.kmongo:kmongo:4.2.8")
implementation("org.mapstruct:mapstruct:1.4.2.Final")
implementation("org.beckn.jvm:beckn-protocol-dtos:0.9.1.16")
implementation("org.beckn.jvm:beckn-protocol-dtos:0.9.1.17")
implementation("org.bouncycastle:bcprov-jdk15on:1.69")
implementation("commons-codec:commons-codec:1.15")
implementation("com.squareup.retrofit2:retrofit:$retrofitVersion")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class PollCancelResponseController @Autowired constructor(
contextFactory: ContextFactory
) : AbstractPollForResponseController<ProtocolOnCancel>(responseService, contextFactory) {

@GetMapping("protocol/v1/on_cancel")
@GetMapping("protocol/response/v1/on_cancel")
@ResponseBody
fun getCancelResponses(messageId: String) = findResponses(messageId)
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class PollOnSupportResponseController @Autowired constructor(
contextFactory: ContextFactory
) : AbstractPollForResponseController<ProtocolOnSupport>(responseService, contextFactory) {

@RequestMapping("protocol/v1/on_support")
@RequestMapping("protocol/response/v1/on_support")
@ResponseBody
fun getSupportResponses(messageId: String) = findResponses(messageId)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ internal class PollOnCancelResponseControllerSpec @Autowired constructor(
context("when called for given message id") {
val onCancelCall = mockMvc
.perform(
MockMvcRequestBuilders.get("/protocol/v1/on_cancel")
MockMvcRequestBuilders.get("/protocol/response/v1/on_cancel")
.header(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_VALUE)
.param("messageId", entityContext.messageId)
)
Expand Down

0 comments on commit 225e55b

Please sign in to comment.