Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[API. Save order address] The API documentation includes an incorrect 200 status code, causing confusion and issues with data processing. #5461 #1165

Merged
merged 2 commits into from
Jul 3, 2023
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

Expand Down Expand Up @@ -66,6 +67,7 @@ public ResponseEntity<OrderWithAddressesResponseDto> getAllAddressesForCurrentUs
@ApiResponse(code = 401, message = HttpStatuses.UNAUTHORIZED),
@ApiResponse(code = 404, message = HttpStatuses.NOT_FOUND)
})
@ResponseStatus(HttpStatus.CREATED)
@PostMapping("/save-order-address")
public ResponseEntity<OrderWithAddressesResponseDto> saveAddressForOrder(
@Valid @RequestBody CreateAddressRequestDto dtoRequest,
Expand Down