From 7d91a9fc0041ed3e5dc175213b4a8e2e3b65af67 Mon Sep 17 00:00:00 2001 From: jaypark Date: Mon, 11 Dec 2023 23:25:43 +0900 Subject: [PATCH 1/2] =?UTF-8?q?feat=20:=20=EC=96=B4=EB=93=9C=EB=AF=BC=20?= =?UTF-8?q?=ED=8E=98=EC=9D=B4=EC=A7=80=20=EB=B9=B5=20=EC=B6=94=EA=B0=80?= =?UTF-8?q?=EC=8B=9C=20=EB=B9=B5=EC=B6=94=EA=B0=80=20=EC=9A=94=EC=B2=AD=20?= =?UTF-8?q?id=20=EC=97=B0=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/bakery/AdminBakeryServiceImpl.java | 52 ++++-- .../admin/bakery/dto/BakeryUpdateRequest.java | 1 + .../domain/bakery/product/Product.java | 9 +- .../factory/push/AddProductNoticeFactory.java | 125 ++++++++------- .../factory/push/BakeryAddNoticeFactory.java | 2 +- src/main/resources/static/docs/admin.html | 150 +++++++++--------- src/main/resources/static/docs/auth.html | 28 ++-- src/main/resources/static/docs/bakery.html | 24 +-- src/main/resources/static/docs/feed.html | 6 +- src/main/resources/static/docs/flag.html | 14 +- src/main/resources/static/docs/image.html | 10 +- src/main/resources/static/docs/notice.html | 8 +- src/main/resources/static/docs/post.html | 30 ++-- src/main/resources/static/docs/review.html | 64 ++++---- src/main/resources/static/docs/search.html | 6 +- src/main/resources/static/docs/user.html | 22 +-- .../bakery/AdminBakeryControllerTest.java | 1 + 17 files changed, 301 insertions(+), 251 deletions(-) diff --git a/src/main/java/com/depromeet/breadmapbackend/domain/admin/bakery/AdminBakeryServiceImpl.java b/src/main/java/com/depromeet/breadmapbackend/domain/admin/bakery/AdminBakeryServiceImpl.java index b6cc2912..77dcb5fe 100644 --- a/src/main/java/com/depromeet/breadmapbackend/domain/admin/bakery/AdminBakeryServiceImpl.java +++ b/src/main/java/com/depromeet/breadmapbackend/domain/admin/bakery/AdminBakeryServiceImpl.java @@ -7,10 +7,6 @@ import java.util.Set; import java.util.stream.Collectors; -import com.depromeet.breadmapbackend.domain.search.dto.OpenSearchIndex; -import com.depromeet.breadmapbackend.domain.search.dto.keyword.BakeryLoadData; -import com.depromeet.breadmapbackend.domain.search.dto.keyword.BreadLoadData; -import com.depromeet.breadmapbackend.domain.search.events.OpenSearchEventPublisher; import org.springframework.context.ApplicationEventPublisher; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageRequest; @@ -61,6 +57,9 @@ import com.depromeet.breadmapbackend.domain.review.ReviewImageRepository; import com.depromeet.breadmapbackend.domain.review.ReviewProductRatingRepository; import com.depromeet.breadmapbackend.domain.review.ReviewRepository; +import com.depromeet.breadmapbackend.domain.search.dto.keyword.BakeryLoadData; +import com.depromeet.breadmapbackend.domain.search.dto.keyword.BreadLoadData; +import com.depromeet.breadmapbackend.domain.search.events.OpenSearchEventPublisher; import com.depromeet.breadmapbackend.domain.user.User; import com.depromeet.breadmapbackend.global.S3Uploader; import com.depromeet.breadmapbackend.global.dto.PageResponseDto; @@ -227,11 +226,11 @@ public BakeryAddDto addBakery(BakeryAddRequest request) { if (bakery.getStatus().equals(BakeryStatus.POSTING)) { if (pioneer != null) { eventPublisher.publishEvent( - NoticeEventDto.builder() - .userId(pioneer.getId()) - .contentId(bakery.getId()) - .noticeType(NoticeType.REPORT_BAKERY_ADDED) - .build() + NoticeEventDto.builder() + .userId(pioneer.getId()) + .contentId(bakery.getId()) + .noticeType(NoticeType.REPORT_BAKERY_ADDED) + .build() ); } eventPublisher.publishEvent( @@ -242,7 +241,9 @@ public BakeryAddDto addBakery(BakeryAddRequest request) { .build() ); - openSearchEventPublisher.publishSaveBakery(new BakeryLoadData(bakery.getId(), bakery.getName(), bakery.getAddress(), bakery.getLongitude(), bakery.getLatitude())); + openSearchEventPublisher.publishSaveBakery( + new BakeryLoadData(bakery.getId(), bakery.getName(), bakery.getAddress(), bakery.getLongitude(), + bakery.getLatitude())); } return BakeryAddDto.builder().bakeryId(bakery.getId()).build(); @@ -256,9 +257,11 @@ public void updateBakery(Long bakeryId, BakeryUpdateRequest request) { List images = getImagesIfExistsOrGetDefaultImage(request.getImages()); BakeryStatus status = request.getStatus(); - if(status == BakeryStatus.POSTING) { - openSearchEventPublisher.publishSaveBakery(new BakeryLoadData(bakery.getId(), bakery.getName(), bakery.getAddress(), bakery.getLongitude(), bakery.getLatitude())); - } else if(status == BakeryStatus.UNPOSTING) { + if (status == BakeryStatus.POSTING) { + openSearchEventPublisher.publishSaveBakery( + new BakeryLoadData(bakery.getId(), bakery.getName(), bakery.getAddress(), bakery.getLongitude(), + bakery.getLatitude())); + } else if (status == BakeryStatus.UNPOSTING) { openSearchEventPublisher.publishDeleteBakery(bakeryId); } @@ -275,13 +278,30 @@ public void updateBakery(Long bakeryId, BakeryUpdateRequest request) { for (BakeryUpdateRequest.ProductUpdateRequest productUpdateRequest : request.getProductList()) { Product product; if (productUpdateRequest.getProductId() == null) { // 새로운 product 일 때 + ProductAddReport productAddReport = null; + if (productUpdateRequest.getReportId() != null) + productAddReport = + productAddReportRepository.findById(productUpdateRequest.getReportId()) + .orElseThrow(() -> new DaedongException(DaedongStatus.PRODUCT_ADD_REPORT_NOT_FOUND)); + product = Product.builder() .productType(productUpdateRequest.getProductType()) .name(productUpdateRequest.getProductName()) .price(productUpdateRequest.getPrice()) .image(productUpdateRequest.getImage()) - .bakery(bakery).build(); // TODO + .bakery(bakery) + .productAddReport(productAddReport) + .build(); // TODO productRepository.save(product); + + if (productAddReport != null) { + eventPublisher.publishEvent( + NoticeEventDto.builder() + .userId(productAddReport.getUser().getId()) + .contentId(productAddReport.getId()) + .noticeType(NoticeType.ADD_PRODUCT) + .build()); + } } else { // 기존 product 일 때 product = productRepository.findById(productUpdateRequest.getProductId()) .orElseThrow(() -> new DaedongException(DaedongStatus.PRODUCT_NOT_FOUND)); @@ -289,7 +309,9 @@ public void updateBakery(Long bakeryId, BakeryUpdateRequest request) { productUpdateRequest.getPrice(), productUpdateRequest.getImage()); } - openSearchEventPublisher.publishSaveBread(new BreadLoadData(product.getId(), product.getName(), bakeryId, bakery.getName(), bakery.getAddress(), bakery.getLongitude(), bakery.getLatitude())); + openSearchEventPublisher.publishSaveBread( + new BreadLoadData(product.getId(), product.getName(), bakeryId, bakery.getName(), + bakery.getAddress(), bakery.getLongitude(), bakery.getLatitude())); } } } diff --git a/src/main/java/com/depromeet/breadmapbackend/domain/admin/bakery/dto/BakeryUpdateRequest.java b/src/main/java/com/depromeet/breadmapbackend/domain/admin/bakery/dto/BakeryUpdateRequest.java index 976227a4..766c5ad4 100644 --- a/src/main/java/com/depromeet/breadmapbackend/domain/admin/bakery/dto/BakeryUpdateRequest.java +++ b/src/main/java/com/depromeet/breadmapbackend/domain/admin/bakery/dto/BakeryUpdateRequest.java @@ -64,5 +64,6 @@ public static class ProductUpdateRequest { @NotBlank(message = "빵 가격은 필수 값입니다.", groups = ValidationGroups.NotEmptyGroup.class) private String price; private String image; + private Long reportId; } } diff --git a/src/main/java/com/depromeet/breadmapbackend/domain/bakery/product/Product.java b/src/main/java/com/depromeet/breadmapbackend/domain/bakery/product/Product.java index 03b55858..37fd12a3 100644 --- a/src/main/java/com/depromeet/breadmapbackend/domain/bakery/product/Product.java +++ b/src/main/java/com/depromeet/breadmapbackend/domain/bakery/product/Product.java @@ -16,8 +16,10 @@ import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.OneToMany; +import javax.persistence.OneToOne; import com.depromeet.breadmapbackend.domain.bakery.Bakery; +import com.depromeet.breadmapbackend.domain.bakery.product.report.ProductAddReport; import com.depromeet.breadmapbackend.domain.review.ReviewProductRating; import com.depromeet.breadmapbackend.global.BaseEntity; import com.depromeet.breadmapbackend.global.converter.BooleanToYNConverter; @@ -58,8 +60,12 @@ public class Product extends BaseEntity { @Convert(converter = BooleanToYNConverter.class) private boolean isTrue; + @OneToOne(fetch = FetchType.LAZY) + private ProductAddReport productAddReport; + @Builder - private Product(Long id, ProductType productType, String name, String price, String image, Bakery bakery, Boolean isTrue) { + private Product(Long id, ProductType productType, String name, String price, String image, Bakery bakery, + Boolean isTrue, ProductAddReport productAddReport) { this.id = id; this.productType = productType; this.name = name; @@ -71,6 +77,7 @@ private Product(Long id, ProductType productType, String name, String price, Str else this.isTrue = isTrue; this.bakery.getProductList().add(this); + this.productAddReport = productAddReport; } public void update(ProductType productType, String name, String price, String image) { diff --git a/src/main/java/com/depromeet/breadmapbackend/domain/notice/factory/push/AddProductNoticeFactory.java b/src/main/java/com/depromeet/breadmapbackend/domain/notice/factory/push/AddProductNoticeFactory.java index 4bc66bf7..e70e67a2 100644 --- a/src/main/java/com/depromeet/breadmapbackend/domain/notice/factory/push/AddProductNoticeFactory.java +++ b/src/main/java/com/depromeet/breadmapbackend/domain/notice/factory/push/AddProductNoticeFactory.java @@ -1,57 +1,68 @@ -// package com.depromeet.breadmapbackend.domain.notice.factory.push; -// -// import java.util.List; -// -// import org.springframework.stereotype.Component; -// -// import com.depromeet.breadmapbackend.domain.bakery.product.Product; -// import com.depromeet.breadmapbackend.domain.bakery.product.ProductRepository; -// import com.depromeet.breadmapbackend.domain.notice.Notice; -// import com.depromeet.breadmapbackend.domain.notice.dto.NoticeEventDto; -// import com.depromeet.breadmapbackend.domain.notice.factory.NoticeType; -// import com.depromeet.breadmapbackend.domain.user.User; -// import com.depromeet.breadmapbackend.domain.user.UserRepository; -// import com.depromeet.breadmapbackend.global.exception.DaedongException; -// import com.depromeet.breadmapbackend.global.exception.DaedongStatus; -// import com.depromeet.breadmapbackend.global.infra.properties.CustomAWSS3Properties; -// -// import lombok.RequiredArgsConstructor; -// -// @Component -// @RequiredArgsConstructor -// public class AddProductNoticeFactory implements NoticeFactory { -// private static final String NOTICE_TITLE_FORMAT = "내가 제보한 빵이 추가되었어요!"; -// -// private static final NoticeType SUPPORT_TYPE = NoticeType.ADD_PRODUCT; -// private final CustomAWSS3Properties customAwss3Properties; -// private final ProductRepository productRepository; -// private final UserRepository userRepository; -// -// @Override -// public boolean support(final NoticeType noticeType) { -// return SUPPORT_TYPE == noticeType; -// } -// -// @Override -// public String getImage(final Notice notice) { -// return customAwss3Properties.getCloudFront() + "/" + -// customAwss3Properties.getDefaultImage().getReport() -// + ".png"; -// } -// -// @Override -// public List createNotice(final NoticeEventDto noticeEventDto) { -// final User user = userRepository.findById(noticeEventDto.userId()) -// .orElseThrow(() -> new DaedongException(DaedongStatus.USER_NOT_FOUND)); -// final Product product = productRepository.findById(noticeEventDto.contentId()) -// .orElseThrow(() -> new DaedongException(DaedongStatus.PRODUCT_NOT_FOUND)); -// -// return List.of(Notice.createNoticeWithContent( -// user, -// NOTICE_TITLE_FORMAT, -// noticeEventDto.contentId(), -// product.getBakery().getName() + " - " + product.getName(), -// noticeEventDto.noticeType() -// )); -// } -// } +package com.depromeet.breadmapbackend.domain.notice.factory.push; + +import java.util.List; + +import org.springframework.stereotype.Component; + +import com.depromeet.breadmapbackend.domain.bakery.Bakery; +import com.depromeet.breadmapbackend.domain.bakery.BakeryRepository; +import com.depromeet.breadmapbackend.domain.bakery.product.Product; +import com.depromeet.breadmapbackend.domain.bakery.product.ProductRepository; +import com.depromeet.breadmapbackend.domain.bakery.product.report.ProductAddReport; +import com.depromeet.breadmapbackend.domain.bakery.product.report.ProductAddReportRepository; +import com.depromeet.breadmapbackend.domain.notice.Notice; +import com.depromeet.breadmapbackend.domain.notice.dto.NoticeEventDto; +import com.depromeet.breadmapbackend.domain.notice.factory.NoticeType; +import com.depromeet.breadmapbackend.domain.user.User; +import com.depromeet.breadmapbackend.domain.user.UserRepository; +import com.depromeet.breadmapbackend.global.exception.DaedongException; +import com.depromeet.breadmapbackend.global.exception.DaedongStatus; +import com.depromeet.breadmapbackend.global.infra.properties.CustomAWSS3Properties; + +import lombok.RequiredArgsConstructor; + +@Component +@RequiredArgsConstructor +public class AddProductNoticeFactory implements NoticeFactory { + private static final String NOTICE_TITLE_FORMAT = "내가 제보한 빵이 추가되었어요!"; + + private static final NoticeType SUPPORT_TYPE = NoticeType.ADD_PRODUCT; + private final CustomAWSS3Properties customAwss3Properties; + private final ProductRepository productRepository; + private final BakeryRepository bakeryRepository; + private final ProductAddReportRepository productAddReportRepository; + private final UserRepository userRepository; + + @Override + public boolean support(final NoticeType noticeType) { + return SUPPORT_TYPE == noticeType; + } + + @Override + public String getImage(final Notice notice) { + return customAwss3Properties.getCloudFront() + "/" + + customAwss3Properties.getDefaultImage().getBreadAdd() + + ".png"; + } + + @Override + public List createNotice(final NoticeEventDto noticeEventDto) { + final User user = userRepository.findById(noticeEventDto.userId()) + .orElseThrow(() -> new DaedongException(DaedongStatus.USER_NOT_FOUND)); + final ProductAddReport productAddReport = productAddReportRepository.findById(noticeEventDto.contentId()) + .orElseThrow(() -> new DaedongException(DaedongStatus.PRODUCT_ADD_REPORT_NOT_FOUND)); + final Bakery bakery = bakeryRepository.findById(productAddReport.getBakery().getId()) + .orElseThrow(() -> new DaedongException(DaedongStatus.BAKERY_NOT_FOUND)); + final Product product = productRepository.findById(noticeEventDto.contentId()) + .orElseThrow(() -> new DaedongException(DaedongStatus.PRODUCT_NOT_FOUND)); + + return List.of(Notice.createNoticeWithContent( + user, + NOTICE_TITLE_FORMAT, + bakery.getId(), + (product.getBakery().getName() + " - " + product.getName()), + null, + noticeEventDto.noticeType() + )); + } +} diff --git a/src/main/java/com/depromeet/breadmapbackend/domain/notice/factory/push/BakeryAddNoticeFactory.java b/src/main/java/com/depromeet/breadmapbackend/domain/notice/factory/push/BakeryAddNoticeFactory.java index e515ad2a..fb3b9a02 100644 --- a/src/main/java/com/depromeet/breadmapbackend/domain/notice/factory/push/BakeryAddNoticeFactory.java +++ b/src/main/java/com/depromeet/breadmapbackend/domain/notice/factory/push/BakeryAddNoticeFactory.java @@ -30,7 +30,7 @@ public class BakeryAddNoticeFactory implements NoticeFactory { @Override public boolean support(final NoticeType noticeType) { - return SUPPORT_TYPE == noticeType; + return false;// SUPPORT_TYPE == noticeType; } @Override diff --git a/src/main/resources/static/docs/admin.html b/src/main/resources/static/docs/admin.html index ff858bf4..4cfb0a56 100644 --- a/src/main/resources/static/docs/admin.html +++ b/src/main/resources/static/docs/admin.html @@ -646,8 +646,8 @@

@@ -710,8 +710,8 @@

@@ -779,8 +779,8 @@

@@ -837,7 +837,7 @@

GET /v1/admin/bakeries/1/is-new-bar HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMTQxNTQ0NCwiZXhwIjoxNzAxNDE5MDQ0fQ.buarychf_udd2RenUtTL1sgzdwmeh9W3-raUT6v8IQA
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMjMwNDQ3MCwiZXhwIjoxNzAyMzA4MDcwfQ.-3KqMl-r38I1-c4VJyYqDegOm3p3lBpXQWzYJAFfOQs
 Host: localhost:8080
@@ -944,7 +944,7 @@

GET /v1/admin/bar HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJEZWFkb25nMDEiLCJyb2xlcyI6IlJPTEVfQURNSU4iLCJpYXQiOjE3MDE0MTU0NDEsImV4cCI6MTcwMTQxOTA0MX0.xiyuy-xr7GrOuYSO6K1SDZlxpWfjJDPNCp9eyiIks6U
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJEZWFkb25nMDEiLCJyb2xlcyI6IlJPTEVfQURNSU4iLCJpYXQiOjE3MDIzMDQ0NjcsImV4cCI6MTcwMjMwODA2N30.hutzSxTQjCNz7kLUpgTRocTsJcn2gNudpGz_nWSUuWw
 Host: localhost:8080
@@ -1046,11 +1046,11 @@

POST /v1/admin/images HTTP/1.1
 Content-Type: multipart/form-data;charset=UTF-8; boundary=6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJEZWFkb25nMDEiLCJyb2xlcyI6IlJPTEVfQURNSU4iLCJpYXQiOjE3MDE0MTU0NDEsImV4cCI6MTcwMTQxOTA0MX0.xiyuy-xr7GrOuYSO6K1SDZlxpWfjJDPNCp9eyiIks6U
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJEZWFkb25nMDEiLCJyb2xlcyI6IlJPTEVfQURNSU4iLCJpYXQiOjE3MDIzMDQ0NjcsImV4cCI6MTcwMjMwODA2N30.hutzSxTQjCNz7kLUpgTRocTsJcn2gNudpGz_nWSUuWw
 Host: localhost:8080
 
 --6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm
-Content-Disposition: form-data; name=image; filename=4c5b5947-9460-43e0-883f-64bffefa9e12.png
+Content-Disposition: form-data; name=image; filename=ec0805a5-6b24-46f7-a1fe-e4da0ff8b282.png
 Content-Type: image/png
 
 test
@@ -1256,7 +1256,7 @@ 

GET /v1/admin/bakeries/alarm-bar HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMTQxNTQ0NCwiZXhwIjoxNzAxNDE5MDQ0fQ.buarychf_udd2RenUtTL1sgzdwmeh9W3-raUT6v8IQA
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMjMwNDQ3MCwiZXhwIjoxNzAyMzA4MDcwfQ.-3KqMl-r38I1-c4VJyYqDegOm3p3lBpXQWzYJAFfOQs
 Host: localhost:8080
@@ -1345,7 +1345,7 @@

GET /v1/admin/bakeries?page=0 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMTQxNTQ0MiwiZXhwIjoxNzAxNDE5MDQyfQ.LQXf53uFUgVDcnfCexOQ7VPBPgICEj6bzG9pJW_xdGA
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMjMwNDQ2OCwiZXhwIjoxNzAyMzA4MDY4fQ.EOksqHxqC0yqNMD4atPmDYFtbcfPHGZWkWKLwvQLnwI
 Host: localhost:8080
@@ -1436,8 +1436,8 @@

GET /v1/admin/bakeries/1 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMTQxNTQ0NCwiZXhwIjoxNzAxNDE5MDQ0fQ.buarychf_udd2RenUtTL1sgzdwmeh9W3-raUT6v8IQA
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMjMwNDQ3MSwiZXhwIjoxNzAyMzA4MDcxfQ.hGzzV9B-5YvBGJRLcJh5VltQFc55ArbaAY27SXMlSEs
 Host: localhost:8080
@@ -1830,7 +1830,7 @@

GET /v1/admin/bakeries/location?address=%EC%84%9C%EC%9A%B8%20%EC%A4%91%EA%B5%AC%20%EC%84%B8%EC%A2%85%EB%8C%80%EB%A1%9C%20110%20%EC%84%9C%EC%9A%B8%ED%8A%B9%EB%B3%84%EC%8B%9C%EC%B2%AD HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMTQxNTQ0MiwiZXhwIjoxNzAxNDE5MDQyfQ.LQXf53uFUgVDcnfCexOQ7VPBPgICEj6bzG9pJW_xdGA
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMjMwNDQ2OCwiZXhwIjoxNzAyMzA4MDY4fQ.EOksqHxqC0yqNMD4atPmDYFtbcfPHGZWkWKLwvQLnwI
 Host: localhost:8080
@@ -1948,7 +1948,7 @@

POST /v1/admin/bakeries HTTP/1.1 Content-Type: application/json;charset=UTF-8 Accept: application/json -Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMTQxNTQ0NCwiZXhwIjoxNzAxNDE5MDQ0fQ.buarychf_udd2RenUtTL1sgzdwmeh9W3-raUT6v8IQA +Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMjMwNDQ3MCwiZXhwIjoxNzAyMzA4MDcwfQ.-3KqMl-r38I1-c4VJyYqDegOm3p3lBpXQWzYJAFfOQs Content-Length: 641 Host: localhost:8080 @@ -2200,8 +2200,8 @@

PATCH /v1/admin/bakeries/1 HTTP/1.1 Content-Type: application/json;charset=UTF-8 Accept: application/json -Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMTQxNTQ0MSwiZXhwIjoxNzAxNDE5MDQxfQ.z2xjiriOnLkD2_71o1_4gF7pxElMlGNqwBUOobM3gnQ -Content-Length: 832 +Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMjMwNDQ2OCwiZXhwIjoxNzAyMzA4MDY4fQ.EOksqHxqC0yqNMD4atPmDYFtbcfPHGZWkWKLwvQLnwI +Content-Length: 878 Host: localhost:8080 { @@ -2225,13 +2225,15 @@

요청 필드

상품 이미지

+

productList.[].reportId

+

Null

+ +

상품 추가 요청 id

+ +

status

String

true

@@ -2485,7 +2493,7 @@

GET /v1/admin/bakeries/1/image-bar HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMTQxNTQ0NSwiZXhwIjoxNzAxNDE5MDQ1fQ.GWQwENWtgsaN89MNtXJp9tvOTuK7gDJY51i_5pTM8FY
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMjMwNDQ3MSwiZXhwIjoxNzAyMzA4MDcxfQ.hGzzV9B-5YvBGJRLcJh5VltQFc55ArbaAY27SXMlSEs
 Host: localhost:8080
@@ -2616,7 +2624,7 @@

GET /v1/admin/bakeries/1/images/bakery-report-image?page=0 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMTQxNTQ0MiwiZXhwIjoxNzAxNDE5MDQyfQ.LQXf53uFUgVDcnfCexOQ7VPBPgICEj6bzG9pJW_xdGA
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMjMwNDQ2OCwiZXhwIjoxNzAyMzA4MDY4fQ.EOksqHxqC0yqNMD4atPmDYFtbcfPHGZWkWKLwvQLnwI
 Host: localhost:8080
@@ -2809,7 +2817,7 @@

DELETE /v1/admin/bakeries/1/images/bakery-report-image/6 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMTQxNTQ0MywiZXhwIjoxNzAxNDE5MDQzfQ.5gyEzWQ1HplHYYnAJYgebhc4pmUAyKlB9yRyCvtHEfQ
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMjMwNDQ2OSwiZXhwIjoxNzAyMzA4MDY5fQ.H7fOMxCLMQlSvOssAg0nwWNl_9CG97_O2pj_v1AxKHs
 Host: localhost:8080
@@ -2901,7 +2909,7 @@

GET /v1/admin/bakeries/1/product-add-reports?page=0 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMTQxNTQ0MywiZXhwIjoxNzAxNDE5MDQzfQ.5gyEzWQ1HplHYYnAJYgebhc4pmUAyKlB9yRyCvtHEfQ
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMjMwNDQ3MCwiZXhwIjoxNzAyMzA4MDcwfQ.-3KqMl-r38I1-c4VJyYqDegOm3p3lBpXQWzYJAFfOQs
 Host: localhost:8080
@@ -3007,7 +3015,7 @@

PATCH /v1/admin/bakeries/1/product-add-reports/21/images HTTP/1.1
 Content-Type: application/json;charset=UTF-8
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMTQxNTQ0NSwiZXhwIjoxNzAxNDE5MDQ1fQ.GWQwENWtgsaN89MNtXJp9tvOTuK7gDJY51i_5pTM8FY
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMjMwNDQ3MSwiZXhwIjoxNzAyMzA4MDcxfQ.hGzzV9B-5YvBGJRLcJh5VltQFc55ArbaAY27SXMlSEs
 Accept: application/json
 Content-Length: 32
 Host: localhost:8080
@@ -3256,7 +3264,7 @@ 

DELETE /v1/admin/bakeries/1/product-add-reports/16 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMTQxNTQ0NCwiZXhwIjoxNzAxNDE5MDQ0fQ.buarychf_udd2RenUtTL1sgzdwmeh9W3-raUT6v8IQA
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMjMwNDQ3MSwiZXhwIjoxNzAyMzA4MDcxfQ.hGzzV9B-5YvBGJRLcJh5VltQFc55ArbaAY27SXMlSEs
 Host: localhost:8080
@@ -3344,7 +3352,7 @@

GET /v1/admin/bakeries/1/update-reports?page=0 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMTQxNTQ0NSwiZXhwIjoxNzAxNDE5MDQ1fQ.GWQwENWtgsaN89MNtXJp9tvOTuK7gDJY51i_5pTM8FY
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMjMwNDQ3MSwiZXhwIjoxNzAyMzA4MDcxfQ.hGzzV9B-5YvBGJRLcJh5VltQFc55ArbaAY27SXMlSEs
 Host: localhost:8080
@@ -3450,7 +3458,7 @@

PATCH /v1/admin/bakeries/1/update-reports/20 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMTQxNTQ0NSwiZXhwIjoxNzAxNDE5MDQ1fQ.GWQwENWtgsaN89MNtXJp9tvOTuK7gDJY51i_5pTM8FY
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMjMwNDQ3MSwiZXhwIjoxNzAyMzA4MDcxfQ.hGzzV9B-5YvBGJRLcJh5VltQFc55ArbaAY27SXMlSEs
 Host: localhost:8080
@@ -3645,7 +3653,7 @@

DELETE /v1/admin/bakeries/1/update-reports/1 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMTQxNTQ0MSwiZXhwIjoxNzAxNDE5MDQxfQ.z2xjiriOnLkD2_71o1_4gF7pxElMlGNqwBUOobM3gnQ
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMjMwNDQ2OCwiZXhwIjoxNzAyMzA4MDY4fQ.EOksqHxqC0yqNMD4atPmDYFtbcfPHGZWkWKLwvQLnwI
 Host: localhost:8080
@@ -3733,7 +3741,7 @@

GET /v1/admin/bakeries/1/new-reviews?page=0 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMTQxNTQ0NSwiZXhwIjoxNzAxNDE5MDQ1fQ.GWQwENWtgsaN89MNtXJp9tvOTuK7gDJY51i_5pTM8FY
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMjMwNDQ3MSwiZXhwIjoxNzAyMzA4MDcxfQ.hGzzV9B-5YvBGJRLcJh5VltQFc55ArbaAY27SXMlSEs
 Host: localhost:8080
@@ -3839,7 +3847,7 @@

PATCH /v1/admin/bakeries/1/new-reviews/1 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMTQxNTQ0NCwiZXhwIjoxNzAxNDE5MDQ0fQ.buarychf_udd2RenUtTL1sgzdwmeh9W3-raUT6v8IQA
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMjMwNDQ3MCwiZXhwIjoxNzAyMzA4MDcwfQ.-3KqMl-r38I1-c4VJyYqDegOm3p3lBpXQWzYJAFfOQs
 Host: localhost:8080
@@ -4061,7 +4069,7 @@

PATCH /v1/admin/bakeries/1/new-reviews/1/images HTTP/1.1
 Content-Type: application/json;charset=UTF-8
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMTQxNTQ0NSwiZXhwIjoxNzAxNDE5MDQ1fQ.GWQwENWtgsaN89MNtXJp9tvOTuK7gDJY51i_5pTM8FY
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMjMwNDQ3MiwiZXhwIjoxNzAyMzA4MDcyfQ.adSmIwvH2IJqbtyjNeEX4Xs_a7cmxX6W19AuH-Sa8gU
 Accept: application/json
 Content-Length: 28
 Host: localhost:8080
@@ -4185,7 +4193,7 @@ 

DELETE /v1/admin/bakeries/1/new-reviews/1 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMTQxNTQ0MywiZXhwIjoxNzAxNDE5MDQzfQ.5gyEzWQ1HplHYYnAJYgebhc4pmUAyKlB9yRyCvtHEfQ
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMjMwNDQ2OSwiZXhwIjoxNzAyMzA4MDY5fQ.H7fOMxCLMQlSvOssAg0nwWNl_9CG97_O2pj_v1AxKHs
 Host: localhost:8080
@@ -4288,7 +4296,7 @@

GET /v1/admin/rank/2023-07-07 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbkBlbWFpbC5jb20iLCJyb2xlcyI6IlJPTEVfQURNSU4iLCJpYXQiOjE3MDE0MTU0NTEsImV4cCI6MTcwMTQxOTA1MX0.sFPxxGOGbW5xcn6B13yagYHq6EASTauIBy0oxciaBMo
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbkBlbWFpbC5jb20iLCJyb2xlcyI6IlJPTEVfQURNSU4iLCJpYXQiOjE3MDIzMDQ0NzcsImV4cCI6MTcwMjMwODA3N30.FNMv3ZQCBwNTS_P35KBp9riMXMSTyk-wovpxXYrVRZ8
 Host: localhost:8080
@@ -4707,7 +4715,7 @@

POST /v1/admin/rank HTTP/1.1 Content-Type: application/json;charset=UTF-8 Accept: application/json -Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbkBlbWFpbC5jb20iLCJyb2xlcyI6IlJPTEVfQURNSU4iLCJpYXQiOjE3MDE0MTU0NTEsImV4cCI6MTcwMTQxOTA1MX0.sFPxxGOGbW5xcn6B13yagYHq6EASTauIBy0oxciaBMo +Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbkBlbWFpbC5jb20iLCJyb2xlcyI6IlJPTEVfQURNSU4iLCJpYXQiOjE3MDIzMDQ0NzcsImV4cCI6MTcwMjMwODA3N30.FNMv3ZQCBwNTS_P35KBp9riMXMSTyk-wovpxXYrVRZ8 Content-Length: 145 Host: localhost:8080 @@ -4847,7 +4855,7 @@

GET /v1/admin/bakery-add-reports?page=0 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMTQxNTQ0NiwiZXhwIjoxNzAxNDE5MDQ2fQ.QXD0M97NzlvL2dYvud8K6KT1JTxEsk1wbjebYPEtiHs
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMjMwNDQ3MiwiZXhwIjoxNzAyMzA4MDcyfQ.adSmIwvH2IJqbtyjNeEX4Xs_a7cmxX6W19AuH-Sa8gU
 Host: localhost:8080
@@ -4928,7 +4936,7 @@

GET /v1/admin/bakery-add-reports/1 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMTQxNTQ0NiwiZXhwIjoxNzAxNDE5MDQ2fQ.QXD0M97NzlvL2dYvud8K6KT1JTxEsk1wbjebYPEtiHs
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMjMwNDQ3MiwiZXhwIjoxNzAyMzA4MDcyfQ.adSmIwvH2IJqbtyjNeEX4Xs_a7cmxX6W19AuH-Sa8gU
 Host: localhost:8080
@@ -5190,7 +5198,7 @@

PATCH /v1/admin/bakery-add-reports/1 HTTP/1.1
 Content-Type: application/json;charset=UTF-8
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMTQxNTQ0NiwiZXhwIjoxNzAxNDE5MDQ2fQ.QXD0M97NzlvL2dYvud8K6KT1JTxEsk1wbjebYPEtiHs
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMjMwNDQ3MiwiZXhwIjoxNzAyMzA4MDcyfQ.adSmIwvH2IJqbtyjNeEX4Xs_a7cmxX6W19AuH-Sa8gU
 Accept: application/json
 Content-Length: 26
 Host: localhost:8080
@@ -5327,7 +5335,7 @@ 

GET /v1/admin/review-reports?page=0 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMTQxNTQ1NSwiZXhwIjoxNzAxNDE5MDU1fQ.T5aue3tD2cfH07FK2wF_setv2kWze2XNUKDKexBFTdc
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMjMwNDQ4MywiZXhwIjoxNzAyMzA4MDgzfQ.bzlwZKhc4uYXVh0rKSvX9kbp-Bc9OOMYQWGjyOLl_u8
 Host: localhost:8080
@@ -5408,7 +5416,7 @@

PATCH /v1/admin/review-reports/2 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMTQxNTQ1NiwiZXhwIjoxNzAxNDE5MDU2fQ.jymzeijDlT5sL8NgyRx87fbwAgz8lHXhffAkDeYGrBk
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMjMwNDQ4MywiZXhwIjoxNzAyMzA4MDgzfQ.bzlwZKhc4uYXVh0rKSvX9kbp-Bc9OOMYQWGjyOLl_u8
 Host: localhost:8080
@@ -5620,7 +5628,7 @@

GET /v1/admin/users?page=0 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMTQxNTQ1NiwiZXhwIjoxNzAxNDE5MDU2fQ.jymzeijDlT5sL8NgyRx87fbwAgz8lHXhffAkDeYGrBk
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMjMwNDQ4NCwiZXhwIjoxNzAyMzA4MDg0fQ.ykUN8cXosILSkruYqrbtMF51XzEKLdEw5xXcaUvOzvo
 Host: localhost:8080
@@ -5699,8 +5707,8 @@

PATCH /v1/admin/users/1/block HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMTQxNTQ1NiwiZXhwIjoxNzAxNDE5MDU2fQ.jymzeijDlT5sL8NgyRx87fbwAgz8lHXhffAkDeYGrBk
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMjMwNDQ4NCwiZXhwIjoxNzAyMzA4MDg0fQ.ykUN8cXosILSkruYqrbtMF51XzEKLdEw5xXcaUvOzvo
 Host: localhost:8080
@@ -5918,7 +5926,7 @@

POST /v1/admin/feed HTTP/1.1
 Content-Type: application/json;charset=UTF-8
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMTQxNTQ0NywiZXhwIjoxNzAxNDE5MDQ3fQ.rBI_IP2lPA6N7VT9s2Am6ep0PXuZxRErHw3Xjwb_89k
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMjMwNDQ3MywiZXhwIjoxNzAyMzA4MDczfQ.r7ZiultTxV0K7AIcef9qZA0tzFfrDPTvIazCAHZ_4QE
 Accept: application/json
 Content-Length: 427
 Host: localhost:8080
@@ -6109,7 +6117,7 @@ 

POST /v1/admin/feed HTTP/1.1
 Content-Type: application/json;charset=UTF-8
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMTQxNTQ0NywiZXhwIjoxNzAxNDE5MDQ3fQ.rBI_IP2lPA6N7VT9s2Am6ep0PXuZxRErHw3Xjwb_89k
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMjMwNDQ3MywiZXhwIjoxNzAyMzA4MDczfQ.r7ZiultTxV0K7AIcef9qZA0tzFfrDPTvIazCAHZ_4QE
 Accept: application/json
 Content-Length: 593
 Host: localhost:8080
@@ -6318,7 +6326,7 @@ 

PATCH /v1/admin/feed/15 HTTP/1.1
 Content-Type: application/json;charset=UTF-8
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMTQxNTQ0NywiZXhwIjoxNzAxNDE5MDQ3fQ.rBI_IP2lPA6N7VT9s2Am6ep0PXuZxRErHw3Xjwb_89k
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMjMwNDQ3MywiZXhwIjoxNzAyMzA4MDczfQ.r7ZiultTxV0K7AIcef9qZA0tzFfrDPTvIazCAHZ_4QE
 Accept: application/json
 Content-Length: 499
 Host: localhost:8080
@@ -6506,7 +6514,7 @@ 

PATCH /v1/admin/feed/2 HTTP/1.1
 Content-Type: application/json;charset=UTF-8
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMTQxNTQ0NiwiZXhwIjoxNzAxNDE5MDQ2fQ.QXD0M97NzlvL2dYvud8K6KT1JTxEsk1wbjebYPEtiHs
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMjMwNDQ3MywiZXhwIjoxNzAyMzA4MDczfQ.r7ZiultTxV0K7AIcef9qZA0tzFfrDPTvIazCAHZ_4QE
 Accept: application/json
 Content-Length: 531
 Host: localhost:8080
@@ -6708,7 +6716,7 @@ 

GET /v1/admin/feed/all?createdAt=2023-01-01T00:00&activated=POSTING&page=0&size=20 HTTP/1.1
 Content-Type: application/json;charset=UTF-8
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMTQxNTQ0NywiZXhwIjoxNzAxNDE5MDQ3fQ.rBI_IP2lPA6N7VT9s2Am6ep0PXuZxRErHw3Xjwb_89k
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMjMwNDQ3MywiZXhwIjoxNzAyMzA4MDczfQ.r7ZiultTxV0K7AIcef9qZA0tzFfrDPTvIazCAHZ_4QE
 Accept: application/json
 Host: localhost:8080
@@ -6856,7 +6864,7 @@

GET /v1/admin/feed/4?feedType=curation HTTP/1.1
 Content-Type: application/json;charset=UTF-8
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMTQxNTQ0NiwiZXhwIjoxNzAxNDE5MDQ2fQ.QXD0M97NzlvL2dYvud8K6KT1JTxEsk1wbjebYPEtiHs
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMjMwNDQ3MywiZXhwIjoxNzAyMzA4MDczfQ.r7ZiultTxV0K7AIcef9qZA0tzFfrDPTvIazCAHZ_4QE
 Accept: application/json
 Host: localhost:8080
@@ -7251,7 +7259,7 @@

GET /v1/admin/feed/8?feedType=landing HTTP/1.1
 Content-Type: application/json;charset=UTF-8
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMTQxNTQ0NywiZXhwIjoxNzAxNDE5MDQ3fQ.rBI_IP2lPA6N7VT9s2Am6ep0PXuZxRErHw3Xjwb_89k
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMjMwNDQ3MywiZXhwIjoxNzAyMzA4MDczfQ.r7ZiultTxV0K7AIcef9qZA0tzFfrDPTvIazCAHZ_4QE
 Accept: application/json
 Host: localhost:8080
@@ -7481,7 +7489,7 @@

GET /v1/admin/category/all HTTP/1.1
 Content-Type: application/json;charset=UTF-8
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMTQxNTQ0NiwiZXhwIjoxNzAxNDE5MDQ2fQ.QXD0M97NzlvL2dYvud8K6KT1JTxEsk1wbjebYPEtiHs
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMjMwNDQ3MiwiZXhwIjoxNzAyMzA4MDcyfQ.adSmIwvH2IJqbtyjNeEX4Xs_a7cmxX6W19AuH-Sa8gU
 Accept: application/json
 Host: localhost:8080
@@ -7604,7 +7612,7 @@

GET /v1/admin/posts/0 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbkBlbWFpbC5jb20iLCJyb2xlcyI6IlJPTEVfQURNSU4iLCJpYXQiOjE3MDE0MTU0NTAsImV4cCI6MTcwMTQxOTA1MH0.SqQ56oaBy_wQ9HgTR19uKsmZrxo8SOZyf9LoGEStSkk
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbkBlbWFpbC5jb20iLCJyb2xlcyI6IlJPTEVfQURNSU4iLCJpYXQiOjE3MDIzMDQ0NzYsImV4cCI6MTcwMjMwODA3Nn0.43fM2buSRynmqJWXTs_s_ZnM424RYsuRg52Wjmerbyk
 Host: localhost:8080
@@ -7885,7 +7893,7 @@

POST /v1/admin/posts HTTP/1.1 Content-Type: application/json;charset=UTF-8 Accept: application/json -Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbkBlbWFpbC5jb20iLCJyb2xlcyI6IlJPTEVfQURNSU4iLCJpYXQiOjE3MDE0MTU0NTAsImV4cCI6MTcwMTQxOTA1MH0.SqQ56oaBy_wQ9HgTR19uKsmZrxo8SOZyf9LoGEStSkk +Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbkBlbWFpbC5jb20iLCJyb2xlcyI6IlJPTEVfQURNSU4iLCJpYXQiOjE3MDIzMDQ0NzYsImV4cCI6MTcwMjMwODA3Nn0.43fM2buSRynmqJWXTs_s_ZnM424RYsuRg52Wjmerbyk Content-Length: 197 Host: localhost:8080 @@ -8022,7 +8030,7 @@

GET /v1/admin/posts/detail/112 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbkBlbWFpbC5jb20iLCJyb2xlcyI6IlJPTEVfQURNSU4iLCJpYXQiOjE3MDE0MTU0NTAsImV4cCI6MTcwMTQxOTA1MH0.SqQ56oaBy_wQ9HgTR19uKsmZrxo8SOZyf9LoGEStSkk
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbkBlbWFpbC5jb20iLCJyb2xlcyI6IlJPTEVfQURNSU4iLCJpYXQiOjE3MDIzMDQ0NzYsImV4cCI6MTcwMjMwODA3Nn0.43fM2buSRynmqJWXTs_s_ZnM424RYsuRg52Wjmerbyk
 Host: localhost:8080
@@ -8183,7 +8191,7 @@

PATCH /v1/admin/posts/116 HTTP/1.1 Content-Type: application/json;charset=UTF-8 Accept: application/json -Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbkBlbWFpbC5jb20iLCJyb2xlcyI6IlJPTEVfQURNSU4iLCJpYXQiOjE3MDE0MTU0NTAsImV4cCI6MTcwMTQxOTA1MH0.SqQ56oaBy_wQ9HgTR19uKsmZrxo8SOZyf9LoGEStSkk +Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbkBlbWFpbC5jb20iLCJyb2xlcyI6IlJPTEVfQURNSU4iLCJpYXQiOjE3MDIzMDQ0NzYsImV4cCI6MTcwMjMwODA3Nn0.43fM2buSRynmqJWXTs_s_ZnM424RYsuRg52Wjmerbyk Content-Length: 197 Host: localhost:8080 @@ -8314,7 +8322,7 @@

GET /v1/admin/posts/can-fix HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbkBlbWFpbC5jb20iLCJyb2xlcyI6IlJPTEVfQURNSU4iLCJpYXQiOjE3MDE0MTU0NTAsImV4cCI6MTcwMTQxOTA1MH0.SqQ56oaBy_wQ9HgTR19uKsmZrxo8SOZyf9LoGEStSkk
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbkBlbWFpbC5jb20iLCJyb2xlcyI6IlJPTEVfQURNSU4iLCJpYXQiOjE3MDIzMDQ0NzYsImV4cCI6MTcwMjMwODA3Nn0.43fM2buSRynmqJWXTs_s_ZnM424RYsuRg52Wjmerbyk
 Host: localhost:8080
@@ -8416,7 +8424,7 @@

GET /v1/admin/carousels HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbkBlbWFpbC5jb20iLCJyb2xlcyI6IlJPTEVfQURNSU4iLCJpYXQiOjE3MDE0MTU0NDYsImV4cCI6MTcwMTQxOTA0Nn0.FIReMTQSFceYlcsD7A31bU8E-ZXdAUejSnFJlJFxLR8
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbkBlbWFpbC5jb20iLCJyb2xlcyI6IlJPTEVfQURNSU4iLCJpYXQiOjE3MDIzMDQ0NzIsImV4cCI6MTcwMjMwODA3Mn0.CYMiSjnpDfNWAhJlgH5xl_Oq7ZMb11lNmCsXvsUdoWo
 Host: localhost:8080
@@ -8519,7 +8527,7 @@

PATCH /v1/admin/carousels/order HTTP/1.1 Content-Type: application/json;charset=UTF-8 Accept: application/json -Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbkBlbWFpbC5jb20iLCJyb2xlcyI6IlJPTEVfQURNSU4iLCJpYXQiOjE3MDE0MTU0NDYsImV4cCI6MTcwMTQxOTA0Nn0.FIReMTQSFceYlcsD7A31bU8E-ZXdAUejSnFJlJFxLR8 +Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbkBlbWFpbC5jb20iLCJyb2xlcyI6IlJPTEVfQURNSU4iLCJpYXQiOjE3MDIzMDQ0NzIsImV4cCI6MTcwMjMwODA3Mn0.CYMiSjnpDfNWAhJlgH5xl_Oq7ZMb11lNmCsXvsUdoWo Content-Length: 102 Host: localhost:8080 @@ -8639,7 +8647,7 @@

GET /v1/admin/search/hot-keywords/rank HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbkBlbWFpbC5jb20iLCJyb2xlcyI6IlJPTEVfQURNSU4iLCJpYXQiOjE3MDE0MTU0NTYsImV4cCI6MTcwMTQxOTA1Nn0.-dUESTz2fkvMmG5pwM4HECaq2EoquOf6mSjnxKxRPhk
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbkBlbWFpbC5jb20iLCJyb2xlcyI6IlJPTEVfQURNSU4iLCJpYXQiOjE3MDIzMDQ0ODMsImV4cCI6MTcwMjMwODA4M30.1SgwgBfWaoHGaZ-gqiaIHlIPG_YtnpAJDvKqp7C3_ko
 Host: localhost:8080
@@ -8740,7 +8748,7 @@

GET /v1/admin/search/hot-keywords?sortType=ONE_MONTH HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbkBlbWFpbC5jb20iLCJyb2xlcyI6IlJPTEVfQURNSU4iLCJpYXQiOjE3MDE0MTU0NTYsImV4cCI6MTcwMTQxOTA1Nn0.-dUESTz2fkvMmG5pwM4HECaq2EoquOf6mSjnxKxRPhk
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbkBlbWFpbC5jb20iLCJyb2xlcyI6IlJPTEVfQURNSU4iLCJpYXQiOjE3MDIzMDQ0ODMsImV4cCI6MTcwMjMwODA4M30.1SgwgBfWaoHGaZ-gqiaIHlIPG_YtnpAJDvKqp7C3_ko
 Host: localhost:8080
@@ -8942,7 +8950,7 @@

PUT /v1/admin/search/hot-keywords/rank HTTP/1.1 Content-Type: application/json;charset=UTF-8 Accept: application/json -Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbkBlbWFpbC5jb20iLCJyb2xlcyI6IlJPTEVfQURNSU4iLCJpYXQiOjE3MDE0MTU0NTYsImV4cCI6MTcwMTQxOTA1Nn0.-dUESTz2fkvMmG5pwM4HECaq2EoquOf6mSjnxKxRPhk +Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbkBlbWFpbC5jb20iLCJyb2xlcyI6IlJPTEVfQURNSU4iLCJpYXQiOjE3MDIzMDQ0ODMsImV4cCI6MTcwMjMwODA4M30.1SgwgBfWaoHGaZ-gqiaIHlIPG_YtnpAJDvKqp7C3_ko Content-Length: 180 Host: localhost:8080 diff --git a/src/main/resources/static/docs/auth.html b/src/main/resources/static/docs/auth.html index ea693a0c..ee33b118 100644 --- a/src/main/resources/static/docs/auth.html +++ b/src/main/resources/static/docs/auth.html @@ -563,8 +563,8 @@

@@ -710,8 +710,8 @@

@@ -774,8 +774,8 @@

@@ -843,8 +843,8 @@

@@ -902,14 +902,14 @@

POST /v1/auth/logout HTTP/1.1
 Content-Type: application/json;charset=UTF-8
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDU2LCJleHAiOjE3MDE0MTkwNTZ9.WalS0VLhIjEIsuQF5TwO8OCpSoGuz-3TuQ8r9bNvhHc
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NDg0LCJleHAiOjE3MDIzMDgwODR9.n3VknOB92DWAVYSSdMYLWcVCMItfK04UD1uh8iJQXtQ
 Accept: application/json
 Content-Length: 363
 Host: localhost:8080
 
 {
-  "accessToken" : "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDU2LCJleHAiOjE3MDE0MTkwNTZ9.WalS0VLhIjEIsuQF5TwO8OCpSoGuz-3TuQ8r9bNvhHc",
-  "refreshToken" : "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MDI2MjUwNTZ9.MMmtyA68rvAoTBQlPdGavG9ZxGzahxwNNIkBg_wX_uQ",
+  "accessToken" : "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NDg0LCJleHAiOjE3MDIzMDgwODR9.n3VknOB92DWAVYSSdMYLWcVCMItfK04UD1uh8iJQXtQ",
+  "refreshToken" : "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MDM1MTQwODR9.yjEQ4w8bnn0sCW31XVpnJf7JcrOe7xexrCoQUZFgyP4",
   "deviceToken" : "deviceToken1"
 }
@@ -1007,14 +1007,14 @@

DELETE /v1/auth HTTP/1.1
 Content-Type: application/json;charset=UTF-8
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDU3LCJleHAiOjE3MDE0MTkwNTd9.0NDdJnYkWgyse04Y3Hy0B0lOrCK8ThcLzmq7Dgo_oHo
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NDg0LCJleHAiOjE3MDIzMDgwODR9.n3VknOB92DWAVYSSdMYLWcVCMItfK04UD1uh8iJQXtQ
 Accept: application/json
 Content-Length: 363
 Host: localhost:8080
 
 {
-  "accessToken" : "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDU3LCJleHAiOjE3MDE0MTkwNTd9.0NDdJnYkWgyse04Y3Hy0B0lOrCK8ThcLzmq7Dgo_oHo",
-  "refreshToken" : "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MDI2MjUwNTd9.j6vPibFX_Hz1C8Vbco_lKPq8t39xaX-7iYqh2ta38_A",
+  "accessToken" : "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NDg0LCJleHAiOjE3MDIzMDgwODR9.n3VknOB92DWAVYSSdMYLWcVCMItfK04UD1uh8iJQXtQ",
+  "refreshToken" : "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MDM1MTQwODR9.yjEQ4w8bnn0sCW31XVpnJf7JcrOe7xexrCoQUZFgyP4",
   "deviceToken" : "deviceToken1"
 }
diff --git a/src/main/resources/static/docs/bakery.html b/src/main/resources/static/docs/bakery.html index 88b008ea..8f0fa1a2 100644 --- a/src/main/resources/static/docs/bakery.html +++ b/src/main/resources/static/docs/bakery.html @@ -498,7 +498,7 @@

GET /v1/bakeries?sortBy=distance&filterBy=false&latitude=37.560992&longitude=127.044174&latitudeDelta=0.01&longitudeDelta=0.02 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkIiwicm9sZXMiOiJST0xFX1VTRVIiLCJpYXQiOjE3MDE0MTU0NTcsImV4cCI6MTcwMTQxOTA1N30.LiWgABgLHVMQmIzzQwbPJCoXiW9562Wuup0k_3fbQ2A
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkIiwicm9sZXMiOiJST0xFX1VTRVIiLCJpYXQiOjE3MDIzMDQ0ODQsImV4cCI6MTcwMjMwODA4NH0.Ljz-_D8gozo9NcM2HQZcocrlXFg_aspWCtLSioaMj1g
 Host: localhost:8080
@@ -699,7 +699,7 @@

GET /v1/bakeries/1 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkIiwicm9sZXMiOiJST0xFX1VTRVIiLCJpYXQiOjE3MDE0MTU0NTcsImV4cCI6MTcwMTQxOTA1N30.LiWgABgLHVMQmIzzQwbPJCoXiW9562Wuup0k_3fbQ2A
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkIiwicm9sZXMiOiJST0xFX1VTRVIiLCJpYXQiOjE3MDIzMDQ0ODQsImV4cCI6MTcwMjMwODA4NH0.Ljz-_D8gozo9NcM2HQZcocrlXFg_aspWCtLSioaMj1g
 Host: localhost:8080
@@ -928,7 +928,7 @@

GET /v1/bakeries/new HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkIiwicm9sZXMiOiJST0xFX1VTRVIiLCJpYXQiOjE3MDE0MTU0NTcsImV4cCI6MTcwMTQxOTA1N30.LiWgABgLHVMQmIzzQwbPJCoXiW9562Wuup0k_3fbQ2A
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkIiwicm9sZXMiOiJST0xFX1VTRVIiLCJpYXQiOjE3MDIzMDQ0ODQsImV4cCI6MTcwMjMwODA4NH0.Ljz-_D8gozo9NcM2HQZcocrlXFg_aspWCtLSioaMj1g
 Host: localhost:8080
@@ -1073,7 +1073,7 @@

GET /v1/bakeries/1/products HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDYxLCJleHAiOjE3MDE0MTkwNjF9.xYQMTokgBlZpwb2rByrKWfy5kuUKixgMEtOla3UYPnk
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NDkwLCJleHAiOjE3MDIzMDgwOTB9.GnBwfJiAYv6Oj6NBSV39IiU9aDtYJxcxEGnoOnzbaCU
 Host: localhost:8080
@@ -1235,7 +1235,7 @@

POST /v1/bakeries/1/product-add-reports HTTP/1.1 Content-Type: application/json;charset=UTF-8 Accept: application/json -Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDYxLCJleHAiOjE3MDE0MTkwNjF9.xYQMTokgBlZpwb2rByrKWfy5kuUKixgMEtOla3UYPnk +Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NDkwLCJleHAiOjE3MDIzMDgwOTB9.GnBwfJiAYv6Oj6NBSV39IiU9aDtYJxcxEGnoOnzbaCU Content-Length: 82 Host: localhost:8080 @@ -1387,7 +1387,7 @@

POST /v1/bakeries/bakery-add-reports HTTP/1.1
 Content-Type: application/json;charset=UTF-8
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDYxLCJleHAiOjE3MDE0MTkwNjF9.xYQMTokgBlZpwb2rByrKWfy5kuUKixgMEtOla3UYPnk
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NDkxLCJleHAiOjE3MDIzMDgwOTF9.Epg9JKqOX8KV4l0JKhrQBC_aP784-cMeVyVf7IJJr5U
 Accept: application/json
 Content-Length: 121
 Host: localhost:8080
@@ -1499,7 +1499,7 @@ 

POST /v1/bakeries/1/bakery-update-reports HTTP/1.1
 Content-Type: application/json;charset=UTF-8
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDYxLCJleHAiOjE3MDE0MTkwNjF9.xYQMTokgBlZpwb2rByrKWfy5kuUKixgMEtOla3UYPnk
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NDkxLCJleHAiOjE3MDIzMDgwOTF9.Epg9JKqOX8KV4l0JKhrQBC_aP784-cMeVyVf7IJJr5U
 Accept: application/json
 Content-Length: 67
 Host: localhost:8080
@@ -1627,7 +1627,7 @@ 

POST /v1/bakeries/1/bakery-report-images HTTP/1.1
 Content-Type: application/json;charset=UTF-8
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDYxLCJleHAiOjE3MDE0MTkwNjF9.xYQMTokgBlZpwb2rByrKWfy5kuUKixgMEtOla3UYPnk
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NDkxLCJleHAiOjE3MDIzMDgwOTF9.Epg9JKqOX8KV4l0JKhrQBC_aP784-cMeVyVf7IJJr5U
 Accept: application/json
 Content-Length: 39
 Host: localhost:8080
@@ -1729,7 +1729,7 @@ 

GET /v1/bakeries/rank/3 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJBUFBMRV8xMTEiLCJyb2xlcyI6IlJPTEVfVVNFUiIsImlhdCI6MTcwMTQxNTQ2MSwiZXhwIjoxNzAxNDE5MDYxfQ.e3MP3oPNxPqqd4j2tgWvuBMC1iqGh7RNxbRqZalzABo
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJBUFBMRV8xMTEiLCJyb2xlcyI6IlJPTEVfVVNFUiIsImlhdCI6MTcwMjMwNDQ5MCwiZXhwIjoxNzAyMzA4MDkwfQ.-vSuGmsxiMabPy6elVF09NUYbKAutpM1JDDUhIcgDr0
 Host: localhost:8080
@@ -1790,7 +1790,7 @@

diff --git a/src/main/resources/static/docs/feed.html b/src/main/resources/static/docs/feed.html index a4ea8ce0..5dd942c2 100644 --- a/src/main/resources/static/docs/feed.html +++ b/src/main/resources/static/docs/feed.html @@ -481,7 +481,7 @@

GET /v1/feed/all HTTP/1.1
 Content-Type: application/json;charset=UTF-8
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMTQxNTQ0NywiZXhwIjoxNzAxNDE5MDQ3fQ.rBI_IP2lPA6N7VT9s2Am6ep0PXuZxRErHw3Xjwb_89k
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMjMwNDQ3NCwiZXhwIjoxNzAyMzA4MDc0fQ.L23FzI6FdT_YinN4qEHx4nANkQ4jqfUSUBSTokpvWwA
 Accept: application/json
 Host: localhost:8080
@@ -595,7 +595,7 @@

GET /v1/feed/22?feedType=curation HTTP/1.1
 Content-Type: application/json;charset=UTF-8
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMTQxNTQ0OCwiZXhwIjoxNzAxNDE5MDQ4fQ.xlulpA9J6Vk6C3_ubJRIF7msLy8z1iBamdHTMFeOc1s
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMjMwNDQ3NCwiZXhwIjoxNzAyMzA4MDc0fQ.L23FzI6FdT_YinN4qEHx4nANkQ4jqfUSUBSTokpvWwA
 Accept: application/json
 Host: localhost:8080
@@ -955,7 +955,7 @@

POST /v1/feed/18/like HTTP/1.1
 Content-Type: application/json;charset=UTF-8
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMTQxNTQ0NywiZXhwIjoxNzAxNDE5MDQ3fQ.rBI_IP2lPA6N7VT9s2Am6ep0PXuZxRErHw3Xjwb_89k
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbWFpbCIsInJvbGVzIjoiUk9MRV9BRE1JTiIsImlhdCI6MTcwMjMwNDQ3NCwiZXhwIjoxNzAyMzA4MDc0fQ.L23FzI6FdT_YinN4qEHx4nANkQ4jqfUSUBSTokpvWwA
 Accept: application/json
 Host: localhost:8080
diff --git a/src/main/resources/static/docs/flag.html b/src/main/resources/static/docs/flag.html index b445ccc2..fa3021d7 100644 --- a/src/main/resources/static/docs/flag.html +++ b/src/main/resources/static/docs/flag.html @@ -496,7 +496,7 @@

GET /v1/flags/users/1 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDYyLCJleHAiOjE3MDE0MTkwNjJ9.8jId54Q7QCB9atj3zZeY_8a4OezBQ4bzb_HRDfBNUIg
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NDkxLCJleHAiOjE3MDIzMDgwOTF9.Epg9JKqOX8KV4l0JKhrQBC_aP784-cMeVyVf7IJJr5U
 Host: localhost:8080
@@ -662,7 +662,7 @@

POST /v1/flags HTTP/1.1
 Content-Type: application/json;charset=UTF-8
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDYxLCJleHAiOjE3MDE0MTkwNjF9.xYQMTokgBlZpwb2rByrKWfy5kuUKixgMEtOla3UYPnk
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NDkxLCJleHAiOjE3MDIzMDgwOTF9.Epg9JKqOX8KV4l0JKhrQBC_aP784-cMeVyVf7IJJr5U
 Accept: application/json
 Content-Length: 46
 Host: localhost:8080
@@ -769,7 +769,7 @@ 

PATCH /v1/flags/1 HTTP/1.1
 Content-Type: application/json;charset=UTF-8
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDYxLCJleHAiOjE3MDE0MTkwNjF9.xYQMTokgBlZpwb2rByrKWfy5kuUKixgMEtOla3UYPnk
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NDkxLCJleHAiOjE3MDIzMDgwOTF9.Epg9JKqOX8KV4l0JKhrQBC_aP784-cMeVyVf7IJJr5U
 Accept: application/json
 Content-Length: 53
 Host: localhost:8080
@@ -905,7 +905,7 @@ 

DELETE /v1/flags/1 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDYyLCJleHAiOjE3MDE0MTkwNjJ9.8jId54Q7QCB9atj3zZeY_8a4OezBQ4bzb_HRDfBNUIg
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NDkxLCJleHAiOjE3MDIzMDgwOTF9.Epg9JKqOX8KV4l0JKhrQBC_aP784-cMeVyVf7IJJr5U
 Host: localhost:8080
@@ -989,7 +989,7 @@

GET /v1/flags/1 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDYxLCJleHAiOjE3MDE0MTkwNjF9.xYQMTokgBlZpwb2rByrKWfy5kuUKixgMEtOla3UYPnk
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NDkxLCJleHAiOjE3MDIzMDgwOTF9.Epg9JKqOX8KV4l0JKhrQBC_aP784-cMeVyVf7IJJr5U
 Host: localhost:8080
@@ -1210,7 +1210,7 @@

POST /v1/flags/1/bakeries/1 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDYyLCJleHAiOjE3MDE0MTkwNjJ9.8jId54Q7QCB9atj3zZeY_8a4OezBQ4bzb_HRDfBNUIg
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NDkxLCJleHAiOjE3MDIzMDgwOTF9.Epg9JKqOX8KV4l0JKhrQBC_aP784-cMeVyVf7IJJr5U
 Host: localhost:8080
@@ -1298,7 +1298,7 @@

DELETE /v1/flags/1/bakeries/1 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDYyLCJleHAiOjE3MDE0MTkwNjJ9.8jId54Q7QCB9atj3zZeY_8a4OezBQ4bzb_HRDfBNUIg
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NDkxLCJleHAiOjE3MDIzMDgwOTF9.Epg9JKqOX8KV4l0JKhrQBC_aP784-cMeVyVf7IJJr5U
 Host: localhost:8080
diff --git a/src/main/resources/static/docs/image.html b/src/main/resources/static/docs/image.html index a89a335e..669781d8 100644 --- a/src/main/resources/static/docs/image.html +++ b/src/main/resources/static/docs/image.html @@ -477,11 +477,11 @@

POST /v1/images HTTP/1.1
 Content-Type: multipart/form-data;charset=UTF-8; boundary=6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDYyLCJleHAiOjE3MDE0MTkwNjJ9.8jId54Q7QCB9atj3zZeY_8a4OezBQ4bzb_HRDfBNUIg
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NDkxLCJleHAiOjE3MDIzMDgwOTF9.Epg9JKqOX8KV4l0JKhrQBC_aP784-cMeVyVf7IJJr5U
 Host: localhost:8080
 
 --6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm
-Content-Disposition: form-data; name=image; filename=d716a1d6-9e4b-42e1-8ed6-fce77ea7b305.png
+Content-Disposition: form-data; name=image; filename=ba71a74b-4ab7-4d1b-9807-50b04ea30511.png
 Content-Type: image/png
 
 test
@@ -595,16 +595,16 @@ 

POST /v1/images/multi HTTP/1.1
 Content-Type: multipart/form-data;charset=UTF-8; boundary=6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDYyLCJleHAiOjE3MDE0MTkwNjJ9.8jId54Q7QCB9atj3zZeY_8a4OezBQ4bzb_HRDfBNUIg
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NDkxLCJleHAiOjE3MDIzMDgwOTF9.Epg9JKqOX8KV4l0JKhrQBC_aP784-cMeVyVf7IJJr5U
 Host: localhost:8080
 
 --6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm
-Content-Disposition: form-data; name=images; filename=151932ba-4205-4fa4-b70b-4028767e274e.png
+Content-Disposition: form-data; name=images; filename=7b4aec2f-58cf-4afb-9dc3-0787a9301257.png
 Content-Type: image/png
 
 test1
 --6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm
-Content-Disposition: form-data; name=images; filename=bea59019-4fb6-4af5-80af-0439256a19a3.png
+Content-Disposition: form-data; name=images; filename=185d5f0b-0dd8-4d1a-a92e-9a6f28f4ddee.png
 Content-Type: image/png
 
 test2
diff --git a/src/main/resources/static/docs/notice.html b/src/main/resources/static/docs/notice.html
index 9c3c225d..662e8a1d 100644
--- a/src/main/resources/static/docs/notice.html
+++ b/src/main/resources/static/docs/notice.html
@@ -472,7 +472,7 @@ 

GET /v1/notices?page=0 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDYyLCJleHAiOjE3MDE0MTkwNjJ9.8jId54Q7QCB9atj3zZeY_8a4OezBQ4bzb_HRDfBNUIg
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NDkxLCJleHAiOjE3MDIzMDgwOTF9.Epg9JKqOX8KV4l0JKhrQBC_aP784-cMeVyVf7IJJr5U
 Host: localhost:8080
@@ -565,7 +565,7 @@

POST /v1/posts HTTP/1.1 Content-Type: application/json;charset=UTF-8 Accept: application/json -Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJBUFBMRV8xMTEiLCJyb2xlcyI6IlJPTEVfVVNFUiIsImlhdCI6MTcwMTQxNTQ2MywiZXhwIjoxNzAxNDE5MDYzfQ._fnHZE8CkoP02WsQK0we-FK6j2vjFfB4MGeDiKPOzWw +Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJBUFBMRV8xMTEiLCJyb2xlcyI6IlJPTEVfVVNFUiIsImlhdCI6MTcwMjMwNDQ5MiwiZXhwIjoxNzAyMzA4MDkyfQ.6G28uwQNfnQhwTZ_ZUwKnQjfnVtDJAWEtI1auxjU5tQ Content-Length: 137 Host: localhost:8080 @@ -626,7 +626,7 @@

GET /v1/posts/EVENT/224 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJBUFBMRV8xMTEiLCJyb2xlcyI6IlJPTEVfVVNFUiIsImlhdCI6MTcwMTQxNTQ2MywiZXhwIjoxNzAxNDE5MDYzfQ._fnHZE8CkoP02WsQK0we-FK6j2vjFfB4MGeDiKPOzWw
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJBUFBMRV8xMTEiLCJyb2xlcyI6IlJPTEVfVVNFUiIsImlhdCI6MTcwMjMwNDQ5MiwiZXhwIjoxNzAyMzA4MDkyfQ.6G28uwQNfnQhwTZ_ZUwKnQjfnVtDJAWEtI1auxjU5tQ
 Host: localhost:8080
@@ -846,7 +846,7 @@

GET /v1/posts/cards/ALL?reviewOffset=0&postOffset=0&page=0 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJBUFBMRV8xMTEiLCJyb2xlcyI6IlJPTEVfVVNFUiIsImlhdCI6MTcwMTQxNTQ2MywiZXhwIjoxNzAxNDE5MDYzfQ._fnHZE8CkoP02WsQK0we-FK6j2vjFfB4MGeDiKPOzWw
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJBUFBMRV8xMTEiLCJyb2xlcyI6IlJPTEVfVVNFUiIsImlhdCI6MTcwMjMwNDQ5MiwiZXhwIjoxNzAyMzA4MDkyfQ.6G28uwQNfnQhwTZ_ZUwKnQjfnVtDJAWEtI1auxjU5tQ
 Host: localhost:8080
@@ -993,7 +993,7 @@

GET /v1/posts/hot HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJBUFBMRV8xMTEiLCJyb2xlcyI6IlJPTEVfVVNFUiIsImlhdCI6MTcwMTQxNTQ2MywiZXhwIjoxNzAxNDE5MDYzfQ._fnHZE8CkoP02WsQK0we-FK6j2vjFfB4MGeDiKPOzWw
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJBUFBMRV8xMTEiLCJyb2xlcyI6IlJPTEVfVVNFUiIsImlhdCI6MTcwMjMwNDQ5MiwiZXhwIjoxNzAyMzA4MDkyfQ.6G28uwQNfnQhwTZ_ZUwKnQjfnVtDJAWEtI1auxjU5tQ
 Host: localhost:8080
@@ -1323,7 +1323,7 @@

POST /v1/posts/like/224 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJBUFBMRV8xMTEiLCJyb2xlcyI6IlJPTEVfVVNFUiIsImlhdCI6MTcwMTQxNTQ2MywiZXhwIjoxNzAxNDE5MDYzfQ._fnHZE8CkoP02WsQK0we-FK6j2vjFfB4MGeDiKPOzWw
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJBUFBMRV8xMTEiLCJyb2xlcyI6IlJPTEVfVVNFUiIsImlhdCI6MTcwMjMwNDQ5MiwiZXhwIjoxNzAyMzA4MDkyfQ.6G28uwQNfnQhwTZ_ZUwKnQjfnVtDJAWEtI1auxjU5tQ
 Host: localhost:8080
@@ -1603,7 +1603,7 @@

PUT /v1/posts/999 HTTP/1.1 Content-Type: application/json;charset=UTF-8 Accept: application/json -Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJBUFBMRV8xMTEiLCJyb2xlcyI6IlJPTEVfVVNFUiIsImlhdCI6MTcwMTQxNTQ2MywiZXhwIjoxNzAxNDE5MDYzfQ._fnHZE8CkoP02WsQK0we-FK6j2vjFfB4MGeDiKPOzWw +Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJBUFBMRV8xMTEiLCJyb2xlcyI6IlJPTEVfVVNFUiIsImlhdCI6MTcwMjMwNDQ5MiwiZXhwIjoxNzAyMzA4MDkyfQ.6G28uwQNfnQhwTZ_ZUwKnQjfnVtDJAWEtI1auxjU5tQ Content-Length: 148 Host: localhost:8080 @@ -1776,7 +1776,7 @@

DELETE /v1/posts/BREAD_STORY/222 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJBUFBMRV8yMjIiLCJyb2xlcyI6IlJPTEVfVVNFUiIsImlhdCI6MTcwMTQxNTQ2MywiZXhwIjoxNzAxNDE5MDYzfQ.tzoK7WA3FZGBGyc4gPDzJ6PNaqMO7kUqFTVy9Gimn_0
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJBUFBMRV8yMjIiLCJyb2xlcyI6IlJPTEVfVVNFUiIsImlhdCI6MTcwMjMwNDQ5MiwiZXhwIjoxNzAyMzA4MDkyfQ.pxGKQF4IF12FPX138XQUm7KfUUpyzKTkYDQ4MhVpWsQ
 Host: localhost:8080
@@ -1890,7 +1890,7 @@

POST /v1/comments HTTP/1.1 Content-Type: application/json;charset=UTF-8 Accept: application/json -Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJBUFBMRV8xMTEiLCJyb2xlcyI6IlJPTEVfVVNFUiIsImlhdCI6MTcwMTQxNTQ2NCwiZXhwIjoxNzAxNDE5MDY0fQ.-cS9rDtxdBgoETvY0JnCgxChLyrcqo7dlIEmZxXn-F0 +Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJBUFBMRV8xMTEiLCJyb2xlcyI6IlJPTEVfVVNFUiIsImlhdCI6MTcwMjMwNDQ5MywiZXhwIjoxNzAyMzA4MDkzfQ.JcUSKwrSR9p1ClbQhyVaTL-8xyneMNqgnouclsPJxNM Content-Length: 153 Host: localhost:8080 @@ -2014,7 +2014,7 @@

GET /v1/comments/BREAD_STORY/222/0 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJBUFBMRV8xMTEiLCJyb2xlcyI6IlJPTEVfVVNFUiIsImlhdCI6MTcwMTQxNTQ2NCwiZXhwIjoxNzAxNDE5MDY0fQ.-cS9rDtxdBgoETvY0JnCgxChLyrcqo7dlIEmZxXn-F0
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJBUFBMRV8xMTEiLCJyb2xlcyI6IlJPTEVfVVNFUiIsImlhdCI6MTcwMjMwNDQ5MywiZXhwIjoxNzAyMzA4MDkzfQ.JcUSKwrSR9p1ClbQhyVaTL-8xyneMNqgnouclsPJxNM
 Host: localhost:8080
@@ -2366,7 +2366,7 @@

DELETE /v1/comments/111 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJBUFBMRV8xMTEiLCJyb2xlcyI6IlJPTEVfVVNFUiIsImlhdCI6MTcwMTQxNTQ2NCwiZXhwIjoxNzAxNDE5MDY0fQ.-cS9rDtxdBgoETvY0JnCgxChLyrcqo7dlIEmZxXn-F0
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJBUFBMRV8xMTEiLCJyb2xlcyI6IlJPTEVfVVNFUiIsImlhdCI6MTcwMjMwNDQ5MywiZXhwIjoxNzAyMzA4MDkzfQ.JcUSKwrSR9p1ClbQhyVaTL-8xyneMNqgnouclsPJxNM
 Host: localhost:8080
@@ -2452,7 +2452,7 @@

PUT /v1/comments HTTP/1.1 Content-Type: application/json;charset=UTF-8 Accept: application/json -Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJBUFBMRV8xMTEiLCJyb2xlcyI6IlJPTEVfVVNFUiIsImlhdCI6MTcwMTQxNTQ2NCwiZXhwIjoxNzAxNDE5MDY0fQ.-cS9rDtxdBgoETvY0JnCgxChLyrcqo7dlIEmZxXn-F0 +Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJBUFBMRV8xMTEiLCJyb2xlcyI6IlJPTEVfVVNFUiIsImlhdCI6MTcwMjMwNDQ5MywiZXhwIjoxNzAyMzA4MDkzfQ.JcUSKwrSR9p1ClbQhyVaTL-8xyneMNqgnouclsPJxNM Content-Length: 70 Host: localhost:8080 @@ -2548,7 +2548,7 @@

POST /v1/comments/like/111 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJBUFBMRV8xMTEiLCJyb2xlcyI6IlJPTEVfVVNFUiIsImlhdCI6MTcwMTQxNTQ2NCwiZXhwIjoxNzAxNDE5MDY0fQ.-cS9rDtxdBgoETvY0JnCgxChLyrcqo7dlIEmZxXn-F0
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJBUFBMRV8xMTEiLCJyb2xlcyI6IlJPTEVfVVNFUiIsImlhdCI6MTcwMjMwNDQ5MywiZXhwIjoxNzAyMzA4MDkzfQ.JcUSKwrSR9p1ClbQhyVaTL-8xyneMNqgnouclsPJxNM
 Host: localhost:8080
@@ -2679,7 +2679,7 @@

POST /v1/reports/BREAD_STORY/222 HTTP/1.1 Content-Type: application/json;charset=UTF-8 Accept: application/json -Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJBUFBMRV8xMTEiLCJyb2xlcyI6IlJPTEVfVVNFUiIsImlhdCI6MTcwMTQxNTQ2NCwiZXhwIjoxNzAxNDE5MDY0fQ.-cS9rDtxdBgoETvY0JnCgxChLyrcqo7dlIEmZxXn-F0 +Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJBUFBMRV8xMTEiLCJyb2xlcyI6IlJPTEVfVVNFUiIsImlhdCI6MTcwMjMwNDQ5NCwiZXhwIjoxNzAyMzA4MDk0fQ.SV5yDASZHfwlGkmXwTPyyMy4bMzio-Vlv4n5qWhv8_I Content-Length: 57 Host: localhost:8080 diff --git a/src/main/resources/static/docs/review.html b/src/main/resources/static/docs/review.html index 58ecb3e4..23e8a1ec 100644 --- a/src/main/resources/static/docs/review.html +++ b/src/main/resources/static/docs/review.html @@ -512,7 +512,7 @@

GET /v1/reviews/bakeries/1?sortBy=high&page=0 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDY1LCJleHAiOjE3MDE0MTkwNjV9.W978X1J-_3cICElNdocx9f4Q-oLFFukWg1hQhewg2OY
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NDk0LCJleHAiOjE3MDIzMDgwOTR9.5XSI_-DKJjLF1oxKNZIvZcD-ahwl-mbj_F9iZAtO6ho
 Host: localhost:8080
@@ -650,7 +650,7 @@

GET /v1/reviews/bakeries/1/products/1?sortBy=low&page=0 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDY1LCJleHAiOjE3MDE0MTkwNjV9.W978X1J-_3cICElNdocx9f4Q-oLFFukWg1hQhewg2OY
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NDk0LCJleHAiOjE3MDIzMDgwOTR9.5XSI_-DKJjLF1oxKNZIvZcD-ahwl-mbj_F9iZAtO6ho
 Host: localhost:8080
@@ -1108,7 +1108,7 @@

GET /v1/reviews/users/1?page=0 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDY1LCJleHAiOjE3MDE0MTkwNjV9.W978X1J-_3cICElNdocx9f4Q-oLFFukWg1hQhewg2OY
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NDk0LCJleHAiOjE3MDIzMDgwOTR9.5XSI_-DKJjLF1oxKNZIvZcD-ahwl-mbj_F9iZAtO6ho
 Host: localhost:8080
@@ -1556,7 +1556,7 @@

GET /v1/reviews/1 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDY1LCJleHAiOjE3MDE0MTkwNjV9.W978X1J-_3cICElNdocx9f4Q-oLFFukWg1hQhewg2OY
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NDk0LCJleHAiOjE3MDIzMDgwOTR9.5XSI_-DKJjLF1oxKNZIvZcD-ahwl-mbj_F9iZAtO6ho
 Host: localhost:8080
@@ -1981,7 +1981,7 @@

POST /v1/reviews/bakeries/1 HTTP/1.1 Content-Type: application/json;charset=UTF-8 Accept: application/json -Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDY1LCJleHAiOjE3MDE0MTkwNjV9.W978X1J-_3cICElNdocx9f4Q-oLFFukWg1hQhewg2OY +Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NDk0LCJleHAiOjE3MDIzMDgwOTR9.5XSI_-DKJjLF1oxKNZIvZcD-ahwl-mbj_F9iZAtO6ho Content-Length: 450 Host: localhost:8080 @@ -2426,7 +2426,7 @@

DELETE /v1/reviews/1 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDY1LCJleHAiOjE3MDE0MTkwNjV9.W978X1J-_3cICElNdocx9f4Q-oLFFukWg1hQhewg2OY
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NDk0LCJleHAiOjE3MDIzMDgwOTR9.5XSI_-DKJjLF1oxKNZIvZcD-ahwl-mbj_F9iZAtO6ho
 Host: localhost:8080
@@ -2525,7 +2525,7 @@

POST /v1/reviews/1/like HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDY2LCJleHAiOjE3MDE0MTkwNjZ9.BomoWlASeIlLgjMfxhwx_7xZY83r-GgyfLYnaKMgSZA
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NDk1LCJleHAiOjE3MDIzMDgwOTV9.pqfd0Hnb2z7vuq4AGKwg3aWRsr32Q7m1nehsdp5Hy1k
 Host: localhost:8080
@@ -2609,7 +2609,7 @@

DELETE /v1/reviews/2/unlike HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDY2LCJleHAiOjE3MDE0MTkwNjZ9.BomoWlASeIlLgjMfxhwx_7xZY83r-GgyfLYnaKMgSZA
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NDk1LCJleHAiOjE3MDIzMDgwOTV9.pqfd0Hnb2z7vuq4AGKwg3aWRsr32Q7m1nehsdp5Hy1k
 Host: localhost:8080
@@ -2717,7 +2717,7 @@

GET /v1/reviews/1/comments HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDY1LCJleHAiOjE3MDE0MTkwNjV9.W978X1J-_3cICElNdocx9f4Q-oLFFukWg1hQhewg2OY
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NDk1LCJleHAiOjE3MDIzMDgwOTV9.pqfd0Hnb2z7vuq4AGKwg3aWRsr32Q7m1nehsdp5Hy1k
 Host: localhost:8080
@@ -2801,7 +2801,7 @@

POST /v1/reviews/1/comments HTTP/1.1 Content-Type: application/json;charset=UTF-8 Accept: application/json -Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDY1LCJleHAiOjE3MDE0MTkwNjV9.W978X1J-_3cICElNdocx9f4Q-oLFFukWg1hQhewg2OY +Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NDk1LCJleHAiOjE3MDIzMDgwOTV9.pqfd0Hnb2z7vuq4AGKwg3aWRsr32Q7m1nehsdp5Hy1k Content-Length: 68 Host: localhost:8080 @@ -3074,7 +3074,7 @@

DELETE /v1/reviews/1/comments/10 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDY1LCJleHAiOjE3MDE0MTkwNjV9.W978X1J-_3cICElNdocx9f4Q-oLFFukWg1hQhewg2OY
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NDk1LCJleHAiOjE3MDIzMDgwOTV9.pqfd0Hnb2z7vuq4AGKwg3aWRsr32Q7m1nehsdp5Hy1k
 Host: localhost:8080
@@ -3162,7 +3162,7 @@

POST /v1/reviews/1/comments/2/like HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDY1LCJleHAiOjE3MDE0MTkwNjV9.W978X1J-_3cICElNdocx9f4Q-oLFFukWg1hQhewg2OY
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NDk1LCJleHAiOjE3MDIzMDgwOTV9.pqfd0Hnb2z7vuq4AGKwg3aWRsr32Q7m1nehsdp5Hy1k
 Host: localhost:8080
@@ -3250,7 +3250,7 @@

DELETE /v1/reviews/1/comments/5/unlike HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDY1LCJleHAiOjE3MDE0MTkwNjV9.W978X1J-_3cICElNdocx9f4Q-oLFFukWg1hQhewg2OY
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NDk1LCJleHAiOjE3MDIzMDgwOTV9.pqfd0Hnb2z7vuq4AGKwg3aWRsr32Q7m1nehsdp5Hy1k
 Host: localhost:8080
@@ -3351,7 +3351,7 @@

POST /v1/reviews/1/report HTTP/1.1
 Content-Type: application/json;charset=UTF-8
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDY2LCJleHAiOjE3MDE0MTkwNjZ9.BomoWlASeIlLgjMfxhwx_7xZY83r-GgyfLYnaKMgSZA
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NDk1LCJleHAiOjE3MDIzMDgwOTV9.pqfd0Hnb2z7vuq4AGKwg3aWRsr32Q7m1nehsdp5Hy1k
 Accept: application/json
 Content-Length: 54
 Host: localhost:8080
diff --git a/src/main/resources/static/docs/search.html b/src/main/resources/static/docs/search.html
index ec897255..b9af8851 100644
--- a/src/main/resources/static/docs/search.html
+++ b/src/main/resources/static/docs/search.html
@@ -485,7 +485,7 @@ 

GET /v2/search/keyword?oAuthId=TEST_111&keyword=%EB%B2%A0%EC%9D%B4%EC%BB%A4%EB%A6%AC&latitude=127.34&longitude=36.78&searchType=POPULAR HTTP/1.1
 Content-Type: application/json;charset=UTF-8
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJURVNUXzExMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDgyLCJleHAiOjE3MDE0MTkwODJ9.3TLjTImaza8bOKAfggEo9Rm86OZqrEqScmHPXHn5HME
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJURVNUXzExMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NTEyLCJleHAiOjE3MDIzMDgxMTJ9.dPdXkzxSJiXDIBheFpnwJIYcIYHKVrvCyAzMFMpbRgQ
 Host: localhost:8080
@@ -637,7 +637,7 @@

GET /v1/search?word=bakery1&latitude=37.560992&longitude=127.044174 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDc3LCJleHAiOjE3MDE0MTkwNzd9.-iDU_pdsS4skEkc_ytz1fUIe1_NbLal8SB_1L1Fmc_w
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NTA2LCJleHAiOjE3MDIzMDgxMDZ9.VW47nVNNYnhwiUmO6YKfuYh4P7dOLiwQtVVNxpipXyk
 Host: localhost:8080
@@ -786,7 +786,7 @@

GET /v2/search/suggestions?keyword=%EB%B2%A0%EC%9D%B4%EC%BB%A4%EB%A6%AC HTTP/1.1
 Content-Type: application/json;charset=UTF-8
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJURVNUXzExMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDcxLCJleHAiOjE3MDE0MTkwNzF9.z8EM4SYWanN5xH7epQvT5kLKsCSJxMrtx1IT4wAZIOs
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJURVNUXzExMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NTAxLCJleHAiOjE3MDIzMDgxMDF9.qbRyse_0_6Y6c-jSmvFWwpFfzQE5P_J2Zf4CNdfa4Ek
 Host: localhost:8080
diff --git a/src/main/resources/static/docs/user.html b/src/main/resources/static/docs/user.html index efab93c6..ab8b4b45 100644 --- a/src/main/resources/static/docs/user.html +++ b/src/main/resources/static/docs/user.html @@ -499,7 +499,7 @@

GET /v1/users/1 HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDgyLCJleHAiOjE3MDE0MTkwODJ9.hqIVWIL-QWjxjeFPgKQjtFZbmu-ijmnwEzrakmQYPCE
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NTEyLCJleHAiOjE3MDIzMDgxMTJ9.vM6JCv38_ocKEqxwV70OO2L7g4PcSd_mB-1br-mIuV4
 Host: localhost:8080
@@ -620,7 +620,7 @@

POST /v1/users/nickname HTTP/1.1 Content-Type: application/json;charset=UTF-8 Accept: application/json -Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDgyLCJleHAiOjE3MDE0MTkwODJ9.hqIVWIL-QWjxjeFPgKQjtFZbmu-ijmnwEzrakmQYPCE +Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NTEyLCJleHAiOjE3MDIzMDgxMTJ9.vM6JCv38_ocKEqxwV70OO2L7g4PcSd_mB-1br-mIuV4 Content-Length: 50 Host: localhost:8080 @@ -717,7 +717,7 @@

PATCH /v1/users/alarm HTTP/1.1
 Content-Type: application/json;charset=UTF-8
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDgyLCJleHAiOjE3MDE0MTkwODJ9.hqIVWIL-QWjxjeFPgKQjtFZbmu-ijmnwEzrakmQYPCE
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NTEyLCJleHAiOjE3MDIzMDgxMTJ9.vM6JCv38_ocKEqxwV70OO2L7g4PcSd_mB-1br-mIuV4
 Accept: application/json
 Content-Length: 60
 Host: localhost:8080
@@ -814,7 +814,7 @@ 

PATCH /v1/users/alarm HTTP/1.1
 Content-Type: application/json;charset=UTF-8
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDgyLCJleHAiOjE3MDE0MTkwODJ9.hqIVWIL-QWjxjeFPgKQjtFZbmu-ijmnwEzrakmQYPCE
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NTEyLCJleHAiOjE3MDIzMDgxMTJ9.vM6JCv38_ocKEqxwV70OO2L7g4PcSd_mB-1br-mIuV4
 Accept: application/json
 Content-Length: 60
 Host: localhost:8080
@@ -969,7 +969,7 @@ 

POST /v1/users/follow HTTP/1.1 Content-Type: application/json;charset=UTF-8 Accept: application/json -Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMiIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDgyLCJleHAiOjE3MDE0MTkwODJ9.idXD8SrfBzjqsOlQo3KSkBNGVTQGDxbLaiwFFYzNrLo +Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMiIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NTEyLCJleHAiOjE3MDIzMDgxMTJ9.QEQZgzF_-_tXdZnUQX_1S4qNGUmThqjyUtLRc9s2CPE Content-Length: 18 Host: localhost:8080 @@ -1060,7 +1060,7 @@

DELETE /v1/users/follow HTTP/1.1 Content-Type: application/json;charset=UTF-8 Accept: application/json -Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDgyLCJleHAiOjE3MDE0MTkwODJ9.hqIVWIL-QWjxjeFPgKQjtFZbmu-ijmnwEzrakmQYPCE +Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NTEyLCJleHAiOjE3MDIzMDgxMTJ9.vM6JCv38_ocKEqxwV70OO2L7g4PcSd_mB-1br-mIuV4 Content-Length: 18 Host: localhost:8080 @@ -1149,7 +1149,7 @@

GET /v1/users/1/follower HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMiIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDgyLCJleHAiOjE3MDE0MTkwODJ9.idXD8SrfBzjqsOlQo3KSkBNGVTQGDxbLaiwFFYzNrLo
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMiIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NTEyLCJleHAiOjE3MDIzMDgxMTJ9.QEQZgzF_-_tXdZnUQX_1S4qNGUmThqjyUtLRc9s2CPE
 Host: localhost:8080
@@ -1217,7 +1217,7 @@

GET /v1/users/1/following HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMiIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDgyLCJleHAiOjE3MDE0MTkwODJ9.idXD8SrfBzjqsOlQo3KSkBNGVTQGDxbLaiwFFYzNrLo
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMiIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NTEyLCJleHAiOjE3MDIzMDgxMTJ9.QEQZgzF_-_tXdZnUQX_1S4qNGUmThqjyUtLRc9s2CPE
 Host: localhost:8080
@@ -1303,7 +1303,7 @@

GET /v1/users/block HTTP/1.1
-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDgyLCJleHAiOjE3MDE0MTkwODJ9.hqIVWIL-QWjxjeFPgKQjtFZbmu-ijmnwEzrakmQYPCE
+Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NTEyLCJleHAiOjE3MDIzMDgxMTJ9.vM6JCv38_ocKEqxwV70OO2L7g4PcSd_mB-1br-mIuV4
 Host: localhost:8080
@@ -1371,7 +1371,7 @@

POST /v1/users/block HTTP/1.1 Content-Type: application/json;charset=UTF-8 Accept: application/json -Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDgyLCJleHAiOjE3MDE0MTkwODJ9.hqIVWIL-QWjxjeFPgKQjtFZbmu-ijmnwEzrakmQYPCE +Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NTEyLCJleHAiOjE3MDIzMDgxMTJ9.vM6JCv38_ocKEqxwV70OO2L7g4PcSd_mB-1br-mIuV4 Content-Length: 18 Host: localhost:8080 @@ -1462,7 +1462,7 @@

DELETE /v1/users/block HTTP/1.1 Content-Type: application/json;charset=UTF-8 Accept: application/json -Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAxNDE1NDgyLCJleHAiOjE3MDE0MTkwODJ9.hqIVWIL-QWjxjeFPgKQjtFZbmu-ijmnwEzrakmQYPCE +Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvQXV0aElkMSIsInJvbGVzIjoiUk9MRV9VU0VSIiwiaWF0IjoxNzAyMzA0NTEyLCJleHAiOjE3MDIzMDgxMTJ9.vM6JCv38_ocKEqxwV70OO2L7g4PcSd_mB-1br-mIuV4 Content-Length: 18 Host: localhost:8080 diff --git a/src/test/java/com/depromeet/breadmapbackend/domain/admin/bakery/AdminBakeryControllerTest.java b/src/test/java/com/depromeet/breadmapbackend/domain/admin/bakery/AdminBakeryControllerTest.java index efb2fa49..ee85e200 100644 --- a/src/test/java/com/depromeet/breadmapbackend/domain/admin/bakery/AdminBakeryControllerTest.java +++ b/src/test/java/com/depromeet/breadmapbackend/domain/admin/bakery/AdminBakeryControllerTest.java @@ -442,6 +442,7 @@ void updateBakery() throws Exception { fieldWithPath("productList.[].productName").description("상품 이름"), fieldWithPath("productList.[].price").description("상품 가격"), fieldWithPath("productList.[].image").optional().optional().description("상품 이미지"), + fieldWithPath("productList.[].reportId").optional().optional().description("상품 추가 요청 id"), fieldWithPath("status").description("빵집 게시 상태 (" + "POSTING(\"게시중\"), UNPOSTING(\"미게시\"))"), fieldWithPath("pioneerId").optional().description("빵집 개척자 고유 번호") From f62479c613f0661cef00665bc278265a699ed8dc Mon Sep 17 00:00:00 2001 From: jaypark Date: Sun, 17 Dec 2023 22:15:28 +0900 Subject: [PATCH 2/2] refactor : updateBakery --- .../admin/bakery/AdminBakeryServiceImpl.java | 162 +++++++++++------- 1 file changed, 101 insertions(+), 61 deletions(-) diff --git a/src/main/java/com/depromeet/breadmapbackend/domain/admin/bakery/AdminBakeryServiceImpl.java b/src/main/java/com/depromeet/breadmapbackend/domain/admin/bakery/AdminBakeryServiceImpl.java index 643b9122..f4d1e63a 100644 --- a/src/main/java/com/depromeet/breadmapbackend/domain/admin/bakery/AdminBakeryServiceImpl.java +++ b/src/main/java/com/depromeet/breadmapbackend/domain/admin/bakery/AdminBakeryServiceImpl.java @@ -1,6 +1,37 @@ package com.depromeet.breadmapbackend.domain.admin.bakery; -import com.depromeet.breadmapbackend.domain.admin.bakery.dto.*; +import java.security.SecureRandom; +import java.util.HashSet; +import java.util.List; +import java.util.Optional; +import java.util.Set; +import java.util.stream.Collectors; + +import org.springframework.context.ApplicationEventPublisher; +import org.springframework.data.domain.Page; +import org.springframework.data.domain.PageRequest; +import org.springframework.data.domain.Pageable; +import org.springframework.data.domain.Sort; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; +import org.springframework.util.StringUtils; + +import com.depromeet.breadmapbackend.domain.admin.bakery.dto.AdminBakeryAlarmBar; +import com.depromeet.breadmapbackend.domain.admin.bakery.dto.AdminBakeryDto; +import com.depromeet.breadmapbackend.domain.admin.bakery.dto.AdminBakeryIsNewDto; +import com.depromeet.breadmapbackend.domain.admin.bakery.dto.AdminImageBarDto; +import com.depromeet.breadmapbackend.domain.admin.bakery.dto.AdminImageDto; +import com.depromeet.breadmapbackend.domain.admin.bakery.dto.AdminImageRegisterRequest; +import com.depromeet.breadmapbackend.domain.admin.bakery.dto.AdminProductDto; +import com.depromeet.breadmapbackend.domain.admin.bakery.dto.AdminSimpleBakeryDto; +import com.depromeet.breadmapbackend.domain.admin.bakery.dto.BakeryAddDto; +import com.depromeet.breadmapbackend.domain.admin.bakery.dto.BakeryAddRequest; +import com.depromeet.breadmapbackend.domain.admin.bakery.dto.BakeryLocationDto; +import com.depromeet.breadmapbackend.domain.admin.bakery.dto.BakeryProductsDto; +import com.depromeet.breadmapbackend.domain.admin.bakery.dto.BakeryUpdateReportDto; +import com.depromeet.breadmapbackend.domain.admin.bakery.dto.BakeryUpdateRequest; +import com.depromeet.breadmapbackend.domain.admin.bakery.dto.NewReviewDto; +import com.depromeet.breadmapbackend.domain.admin.bakery.dto.ProductAddReportDto; import com.depromeet.breadmapbackend.domain.admin.bakery.param.AdminBakeryFilter; import com.depromeet.breadmapbackend.domain.admin.bakery.param.AdminBakeryImageType; import com.depromeet.breadmapbackend.domain.bakery.Bakery; @@ -13,16 +44,25 @@ import com.depromeet.breadmapbackend.domain.bakery.product.report.ProductAddReportImage; import com.depromeet.breadmapbackend.domain.bakery.product.report.ProductAddReportImageRepository; import com.depromeet.breadmapbackend.domain.bakery.product.report.ProductAddReportRepository; -import com.depromeet.breadmapbackend.domain.bakery.report.*; +import com.depromeet.breadmapbackend.domain.bakery.report.BakeryAddReport; +import com.depromeet.breadmapbackend.domain.bakery.report.BakeryAddReportRepository; +import com.depromeet.breadmapbackend.domain.bakery.report.BakeryReportImage; +import com.depromeet.breadmapbackend.domain.bakery.report.BakeryReportImageRepository; +import com.depromeet.breadmapbackend.domain.bakery.report.BakeryUpdateReport; +import com.depromeet.breadmapbackend.domain.bakery.report.BakeryUpdateReportRepository; import com.depromeet.breadmapbackend.domain.notice.dto.NoticeEventDto; import com.depromeet.breadmapbackend.domain.notice.factory.NoticeType; -import com.depromeet.breadmapbackend.domain.review.*; +import com.depromeet.breadmapbackend.domain.review.Review; +import com.depromeet.breadmapbackend.domain.review.ReviewImage; +import com.depromeet.breadmapbackend.domain.review.ReviewImageRepository; +import com.depromeet.breadmapbackend.domain.review.ReviewProductRatingRepository; +import com.depromeet.breadmapbackend.domain.review.ReviewRepository; import com.depromeet.breadmapbackend.domain.search.dto.OpenSearchIndex; import com.depromeet.breadmapbackend.domain.search.dto.keyword.BakeryLoadData; import com.depromeet.breadmapbackend.domain.search.dto.keyword.BreadLoadData; import com.depromeet.breadmapbackend.domain.search.events.BakeryCreationEvent; -import com.depromeet.breadmapbackend.domain.search.events.BreadCreationEvent; import com.depromeet.breadmapbackend.domain.search.events.BakeryDeletionEvent; +import com.depromeet.breadmapbackend.domain.search.events.BreadCreationEvent; import com.depromeet.breadmapbackend.domain.user.User; import com.depromeet.breadmapbackend.global.S3Uploader; import com.depromeet.breadmapbackend.global.dto.PageResponseDto; @@ -35,23 +75,9 @@ import com.depromeet.breadmapbackend.global.infra.feign.sgis.dto.SgisTranscoordDto; import com.depromeet.breadmapbackend.global.infra.properties.CustomAWSS3Properties; import com.depromeet.breadmapbackend.global.infra.properties.CustomSGISKeyProperties; + import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; -import org.springframework.context.ApplicationEventPublisher; -import org.springframework.data.domain.Page; -import org.springframework.data.domain.PageRequest; -import org.springframework.data.domain.Pageable; -import org.springframework.data.domain.Sort; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; -import org.springframework.util.StringUtils; - -import java.security.SecureRandom; -import java.util.HashSet; -import java.util.List; -import java.util.Optional; -import java.util.Set; -import java.util.stream.Collectors; @Slf4j @Service @@ -217,7 +243,9 @@ public BakeryAddDto addBakery(BakeryAddRequest request) { .build() ); - BakeryCreationEvent publishSaveBakery = new BakeryCreationEvent(this, new BakeryLoadData(bakery.getId(), bakery.getName(), bakery.getAddress(), bakery.getLongitude(), bakery.getLatitude())); + BakeryCreationEvent publishSaveBakery = new BakeryCreationEvent(this, + new BakeryLoadData(bakery.getId(), bakery.getName(), bakery.getAddress(), bakery.getLongitude(), + bakery.getLatitude())); eventPublisher.publishEvent(publishSaveBakery); } @@ -232,12 +260,15 @@ public void updateBakery(Long bakeryId, BakeryUpdateRequest request) { List images = getImagesIfExistsOrGetDefaultImage(request.getImages()); BakeryStatus status = request.getStatus(); - if(status == BakeryStatus.POSTING) { - BakeryCreationEvent publishSaveBakery = new BakeryCreationEvent(this, new BakeryLoadData(bakery.getId(), bakery.getName(), bakery.getAddress(), bakery.getLongitude(), bakery.getLatitude())); + if (status == BakeryStatus.POSTING) { + BakeryCreationEvent publishSaveBakery = new BakeryCreationEvent(this, + new BakeryLoadData(bakery.getId(), bakery.getName(), bakery.getAddress(), bakery.getLongitude(), + bakery.getLatitude())); eventPublisher.publishEvent(publishSaveBakery); - } else if(status == BakeryStatus.UNPOSTING) { - BakeryDeletionEvent publishDeleteBakery = new BakeryDeletionEvent(this, OpenSearchIndex.BAKERY_SEARCH, bakeryId); + } else if (status == BakeryStatus.UNPOSTING) { + BakeryDeletionEvent publishDeleteBakery = new BakeryDeletionEvent(this, OpenSearchIndex.BAKERY_SEARCH, + bakeryId); eventPublisher.publishEvent(publishDeleteBakery); } @@ -250,48 +281,57 @@ public void updateBakery(Long bakeryId, BakeryUpdateRequest request) { request.getFacilityInfoList(), status); if (request.getProductList() != null && !request.getProductList().isEmpty()) { // TODO - BakeryDeletionEvent publishDeleteBakery = new BakeryDeletionEvent(this, OpenSearchIndex.BAKERY_SEARCH, bakeryId); - eventPublisher.publishEvent(publishDeleteBakery); + eventPublisher.publishEvent(new BakeryDeletionEvent(this, OpenSearchIndex.BAKERY_SEARCH, bakeryId)); for (BakeryUpdateRequest.ProductUpdateRequest productUpdateRequest : request.getProductList()) { - Product product; - if (productUpdateRequest.getProductId() == null) { // 새로운 product 일 때 - ProductAddReport productAddReport = null; - if (productUpdateRequest.getReportId() != null) - productAddReport = - productAddReportRepository.findById(productUpdateRequest.getReportId()) - .orElseThrow(() -> new DaedongException(DaedongStatus.PRODUCT_ADD_REPORT_NOT_FOUND)); - - product = Product.builder() - .productType(productUpdateRequest.getProductType()) - .name(productUpdateRequest.getProductName()) - .price(productUpdateRequest.getPrice()) - .image(productUpdateRequest.getImage()) - .bakery(bakery) - .productAddReport(productAddReport) - .build(); // TODO - productRepository.save(product); - - if (productAddReport != null) { - eventPublisher.publishEvent( - NoticeEventDto.builder() - .userId(productAddReport.getUser().getId()) - .contentId(productAddReport.getId()) - .noticeType(NoticeType.ADD_PRODUCT) - .build()); - } - } else { // 기존 product 일 때 - product = productRepository.findById(productUpdateRequest.getProductId()) - .orElseThrow(() -> new DaedongException(DaedongStatus.PRODUCT_NOT_FOUND)); - product.update(productUpdateRequest.getProductType(), productUpdateRequest.getProductName(), - productUpdateRequest.getPrice(), productUpdateRequest.getImage()); - } - - BreadCreationEvent publishSaveBread = new BreadCreationEvent(this, new BreadLoadData(product.getId(), product.getName(), bakeryId, bakery.getName(), bakery.getAddress(), bakery.getLongitude(), bakery.getLatitude())); - eventPublisher.publishEvent(publishSaveBread); + Product product = processProductUpdateRequest(productUpdateRequest, bakery); + eventPublisher.publishEvent(new BreadCreationEvent(this, + new BreadLoadData(product.getId(), product.getName(), bakeryId, bakery.getName(), + bakery.getAddress(), bakery.getLongitude(), bakery.getLatitude()))); } } } + private Product processProductUpdateRequest(BakeryUpdateRequest.ProductUpdateRequest productUpdateRequest, + Bakery bakery) { + if (productUpdateRequest.getProductId() == null) { + return createNewProduct(productUpdateRequest, bakery); + } else { + return updateExistingProduct(productUpdateRequest); + } + } + + private Product createNewProduct(BakeryUpdateRequest.ProductUpdateRequest productUpdateRequest, Bakery bakery) { + ProductAddReport productAddReport = productUpdateRequest.getReportId() != null ? + productAddReportRepository.findById(productUpdateRequest.getReportId()) + .orElseThrow(() -> new DaedongException(DaedongStatus.PRODUCT_ADD_REPORT_NOT_FOUND)) : + null; + Product product = Product.builder() + .productType(productUpdateRequest.getProductType()) + .name(productUpdateRequest.getProductName()) + .price(productUpdateRequest.getPrice()) + .image(productUpdateRequest.getImage()) + .bakery(bakery) + .productAddReport(productAddReport) + .build(); + productRepository.save(product); + if (productAddReport != null) { + eventPublisher.publishEvent(NoticeEventDto.builder() + .userId(productAddReport.getUser().getId()) + .contentId(productAddReport.getId()) + .noticeType(NoticeType.ADD_PRODUCT) + .build()); + } + return product; + } + + private Product updateExistingProduct(BakeryUpdateRequest.ProductUpdateRequest productUpdateRequest) { + Product product = productRepository.findById(productUpdateRequest.getProductId()) + .orElseThrow(() -> new DaedongException(DaedongStatus.PRODUCT_NOT_FOUND)); + product.update(productUpdateRequest.getProductType(), productUpdateRequest.getProductName(), + productUpdateRequest.getPrice(), productUpdateRequest.getImage()); + return product; + } + @Transactional(rollbackFor = Exception.class) public void deleteProduct(Long bakeryId, Long productId) { Product product = productRepository.findById(productId)