Skip to content

Commit

Permalink
Fix statement response
Browse files Browse the repository at this point in the history
  • Loading branch information
pdambrauskas committed Mar 6, 2024
1 parent c07a32c commit 9592251
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ public Application create(@Valid @Body SessionParams sessionParams) {
return sessionService.createSession(sessionParams);
}


@Put("/{id}")
@Status(HttpStatus.CREATED)
@ApiResponses(value = {
Expand Down Expand Up @@ -111,6 +110,7 @@ public Optional<Object> getLog(@PathVariable String id, @Nullable @Header("X-Com
}

@Post("/{id}/statements")
@Status(HttpStatus.CREATED)
@ApiResponses(value = {
@ApiResponse(responseCode = "201", description = "Statement created", content = {@Content(mediaType = "application/json", schema = @Schema(implementation = Statement.class))}),
@ApiResponse(responseCode = "400", description = "Session in invalid state", content = {@Content(mediaType = "application/json", schema = @Schema(implementation = ErrorResponse.class))}),
Expand Down

0 comments on commit 9592251

Please sign in to comment.