Posts API stage 2: /posts/{id} is one post, drop userEmail and /posts/search
- GET /api/v1/posts/{id} returns a single post (owner-only for unpublished);
/detail/{id} stays as an alias; user posts live at /api/v1/users/{userId}/posts
- POST /api/v1/posts Location points to /api/v1/posts/{id}
- PostResponse.userEmail removed (use userLogin); unused DialogResponse removed
- GET /api/v1/posts/search?city= removed (same filter: GET /api/v1/posts?city=)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -27,12 +27,6 @@ public class PostResponse {
|
||||
private LocalDateTime createdAt;
|
||||
/** Логин автора. */
|
||||
private String userLogin;
|
||||
/**
|
||||
* Тот же логин под старым (ошибочным) именем — для клиентов, которые ещё
|
||||
* читают userEmail. Удалить после перехода фронта на userLogin.
|
||||
*/
|
||||
@Deprecated
|
||||
private String userEmail;
|
||||
private String phone;
|
||||
private List<String> images;
|
||||
private Long userId;
|
||||
|
||||
Reference in New Issue
Block a user