Skip to content

Commit

Permalink
Merge pull request #67 from UniBond-jijijin/feature/61-block-letter-a…
Browse files Browse the repository at this point in the history
…nd-letterroom

[feature/61-block-letter-and-letterroom] 편지와 편지함 차단 API
  • Loading branch information
5jisoo authored Jan 9, 2024
2 parents 1d21a0a + 34989ce commit 2fd5b58
Show file tree
Hide file tree
Showing 16 changed files with 499 additions and 68 deletions.
152 changes: 140 additions & 12 deletions unibond/BOOT-INF/classes/static/docs/experience-community.html
Original file line number Diff line number Diff line change
Expand Up @@ -454,12 +454,18 @@ <h1>Experience Community API</h1>
<li><a href="#_response">Response</a></li>
</ul>
</li>
<li><a href="#_upload_posts_on_experience_community">Upload Posts on Experience Community</a>
<li><a href="#_upload_posts_on_experience_community_v1">Upload Posts on Experience Community- V1</a>
<ul class="sectlevel2">
<li><a href="#_request_2">Request</a></li>
<li><a href="#_response_2">Response</a></li>
</ul>
</li>
<li><a href="#_upload_posts_on_experience_community_v2">Upload Posts on Experience Community- V2</a>
<ul class="sectlevel2">
<li><a href="#_request_3">Request</a></li>
<li><a href="#_response_3">Response</a></li>
</ul>
</li>
</ul>
</div>
</div>
Expand Down Expand Up @@ -523,21 +529,32 @@ <h3 id="_response"><a class="link" href="#_response">Response</a></h3>
<div class="content">
<pre class="highlight nowrap"><code class="language-http" data-lang="http">HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 2451
Content-Length: 3082

{
"isSuccess" : true,
"code" : 1000,
"message" : "요청에 성공하였습니다.",
"result" : {
"pageInfo" : {
"numberOfElements" : 3,
"numberOfElements" : 4,
"lastPage" : true,
"totalPages" : 1,
"totalElements" : 3,
"totalElements" : 4,
"size" : 30
},
"postPreviewList" : [ {
"createdDate" : "2024-01-05T00:08:44.564552",
"ownerId" : 32,
"ownerProfileImg" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/0ee1ae29-e205-4107-9a4d-69ffa68e98ecmountaineers-5649828_640.jpg",
"ownerNick" : "건강렛츠고",
"disease" : "종양 괴사 인자 수용체와 관련된 주기성 증후군",
"postId" : 100,
"postImg" : null,
"contentPreview" : "전 정말 운동을 하면 할 수록 건강해지는 느낌이라 너무 좋습니다\uD83D\uDCAA\uD83C\uDFFB 다들 기분",
"boardType" : "EXPERIENCE",
"isEnd" : false
}, {
"createdDate" : "2024-01-03T01:30:08.746334",
"ownerId" : 27,
"ownerProfileImg" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/ef3a45d1-4eb3-48a5-af19-92b0b42aee2bnight-1927265_640.jpg",
Expand All @@ -549,14 +566,14 @@ <h3 id="_response"><a class="link" href="#_response">Response</a></h3>
"boardType" : "EXPERIENCE",
"isEnd" : false
}, {
"createdDate" : "2024-01-03T01:13:39.116094",
"createdDate" : "2024-01-03T01:13:39.116",
"ownerId" : 32,
"ownerProfileImg" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/0ee1ae29-e205-4107-9a4d-69ffa68e98ecmountaineers-5649828_640.jpg",
"ownerNick" : "건강렛츠고",
"disease" : "종양 괴사 인자 수용체와 관련된 주기성 증후군",
"postId" : 63,
"postImg" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/post/4a57410a-75e4-40bb-9724-73d111dc8db5KakaoTalk_20240103_010050997.jpg",
"contentPreview" : "아무리 환자라도 공부할 건 해아죠ㅋㅋ\uD83D\uDE31 다들 시험 별로 안남으셨을 텐데 공부 잘",
"contentPreview" : "아무리 환자라도 공부할 건 해야겠죠..\uD83D\uDE34\uD83D\uDE34 다들 시험 별로 안 남으셨을 텐데 ",
"boardType" : "EXPERIENCE",
"isEnd" : false
}, {
Expand Down Expand Up @@ -700,24 +717,135 @@ <h3 id="_response"><a class="link" href="#_response">Response</a></h3>
</div>
</div>
<div class="sect1">
<h2 id="_upload_posts_on_experience_community"><a class="link" href="#_upload_posts_on_experience_community">Upload Posts on Experience Community</a></h2>
<h2 id="_upload_posts_on_experience_community_v1"><a class="link" href="#_upload_posts_on_experience_community_v1">Upload Posts on Experience Community- V1</a></h2>
<div class="sectionbody">
<div class="paragraph">
<p>경험 기록 게시판에 게시물 업로드하기</p>
<p>경험 기록 게시판에 게시물 업로드하기 (v1)</p>
</div>
<div class="sect2">
<h3 id="_request_2"><a class="link" href="#_request_2">Request</a></h3>
<div class="listingblock">
<div class="content">
<pre class="highlight"><code class="language-bash" data-lang="bash">$ http --multipart POST 'http://localhost:8080/api/v1/community/experience' \
<pre class="highlight nowrap"><code class="language-http" data-lang="http">POST /api/v1/community/experience HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: 29
Accept: application/json
Content-Length: 103
Host: localhost:8080

{
"content" : "안녕하세요 경험 공유 게시판 게시물을 업로드해보겠습니다."
}</code></pre>
</div>
</div>
<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 50%;">
<col style="width: 50%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">Name</th>
<th class="tableblock halign-left valign-top">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>Authorization</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Basic auth credentials</p></td>
</tr>
</tbody>
</table>
<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 33.3333%;">
<col style="width: 33.3333%;">
<col style="width: 33.3334%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">Path</th>
<th class="tableblock halign-left valign-top">Type</th>
<th class="tableblock halign-left valign-top">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>content</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>String</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">경험 공유 게시판에 업로드 할 게시물의 내용</p></td>
</tr>
</tbody>
</table>
</div>
<div class="sect2">
<h3 id="_response_2"><a class="link" href="#_response_2">Response</a></h3>
<div class="listingblock">
<div class="content">
<pre class="highlight nowrap"><code class="language-http" data-lang="http">HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 95

{
"isSuccess" : true,
"code" : 1000,
"message" : "요청에 성공하였습니다."
}</code></pre>
</div>
</div>
<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 33.3333%;">
<col style="width: 33.3333%;">
<col style="width: 33.3334%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">Path</th>
<th class="tableblock halign-left valign-top">Type</th>
<th class="tableblock halign-left valign-top">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>isSuccess</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>Boolean</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">성공 여부</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>code</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>Number</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">결과 코드</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>message</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>String</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">결과 메세지</p></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="sect1">
<h2 id="_upload_posts_on_experience_community_v2"><a class="link" href="#_upload_posts_on_experience_community_v2">Upload Posts on Experience Community- V2</a></h2>
<div class="sectionbody">
<div class="paragraph">
<p>경험 기록 게시판에 게시물 업로드하기 (v2)</p>
</div>
<div class="sect2">
<h3 id="_request_3"><a class="link" href="#_request_3">Request</a></h3>
<div class="listingblock">
<div class="content">
<pre class="highlight"><code class="language-bash" data-lang="bash">$ http --multipart POST 'http://localhost:8080/api/v2/community/experience' \
'Authorization:29' \
'postImg'@'test-img.jpg' \
'request'@'request'</code></pre>
</div>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlight"><code class="language-bash" data-lang="bash">$ curl 'http://localhost:8080/api/v1/community/experience' -i -X POST \
<pre class="highlight"><code class="language-bash" data-lang="bash">$ curl 'http://localhost:8080/api/v2/community/experience' -i -X POST \
-H 'Content-Type: multipart/form-data;charset=UTF-8' \
-H 'Authorization: 29' \
-F 'postImg=@test-img.jpg;type=multipart/form-data' \
Expand Down Expand Up @@ -801,7 +929,7 @@ <h3 id="_request_2"><a class="link" href="#_request_2">Request</a></h3>
</div>
</div>
<div class="sect2">
<h3 id="_response_2"><a class="link" href="#_response_2">Response</a></h3>
<h3 id="_response_3"><a class="link" href="#_response_3">Response</a></h3>
<div class="listingblock">
<div class="content">
<pre class="highlight nowrap"><code class="language-http" data-lang="http">HTTP/1.1 200 OK
Expand Down Expand Up @@ -853,7 +981,7 @@ <h3 id="_response_2"><a class="link" href="#_response_2">Response</a></h3>
<div id="footer">
<div id="footer-text">
Version 0.0.1-SNAPSHOT<br>
Last updated 2024-01-08 21:14:50 +0900
Last updated 2024-01-09 20:21:59 +0900
</div>
</div>
</body>
Expand Down
12 changes: 6 additions & 6 deletions unibond/BOOT-INF/classes/static/docs/letter-rooms.html
Original file line number Diff line number Diff line change
Expand Up @@ -519,17 +519,17 @@ <h3 id="_response"><a class="link" href="#_response">Response</a></h3>
"message" : "요청에 성공하였습니다.",
"result" : {
"letterRoomList" : [ {
"senderProfileImg" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/3b6fc68f-808c-4e22-97e8-9447d6916bc5cat-2068462_640.jpg",
"senderNick" : "눈송이네 베이킹",
"senderId" : 30,
"recentLetterSentDate" : "2024-01-09T02:30:19.901808",
"letterRoomId" : 19
}, {
"senderProfileImg" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/025cc515-c832-4c29-9fe0-9e77f0afea7d6808929_emoji_emoticon_emotion_expression_face_icon.png",
"senderNick" : "서울의가을",
"senderId" : 28,
"recentLetterSentDate" : "2024-01-08T19:33:37.078678",
"letterRoomId" : 12
}, {
"senderProfileImg" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/3b6fc68f-808c-4e22-97e8-9447d6916bc5cat-2068462_640.jpg",
"senderNick" : "눈송이네 베이킹",
"senderId" : 30,
"recentLetterSentDate" : "2024-01-07T22:56:25.129518",
"letterRoomId" : 19
}, {
"senderProfileImg" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/ef3a45d1-4eb3-48a5-af19-92b0b42aee2bnight-1927265_640.jpg",
"senderNick" : "찍사",
Expand Down
27 changes: 19 additions & 8 deletions unibond/BOOT-INF/classes/static/docs/member.html
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ <h3 id="_request"><a class="link" href="#_request">Request</a></h3>

{
"diseaseId" : 1,
"diseaseTiming" : "2024-01-08",
"diseaseTiming" : "2024-01-09",
"gender" : "FEMALE",
"nickname" : "안녕하세요닉네임",
"bio" : "안녕하세요 한 줄 소개 작성합니다.",
Expand Down Expand Up @@ -563,7 +563,7 @@ <h3 id="_response"><a class="link" href="#_response">Response</a></h3>
"isSuccess" : true,
"code" : 1000,
"message" : "요청에 성공하였습니다.",
"result" : 68
"result" : 75
}</code></pre>
</div>
</div>
Expand Down Expand Up @@ -690,7 +690,7 @@ <h3 id="_response_2"><a class="link" href="#_response_2">Response</a></h3>
"profileImage" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/f4113115-ee23-4a14-8a47-861b5aa7fdecdog-4586317_640.jpg",
"nickname" : "병원장",
"gender" : "MALE",
"diseaseName" : "포도당 수송자 1 결핍증",
"diseaseName" : "피어슨 증후군[Pierson syndrome]",
"diagnosisTiming" : "2002-06-27",
"bio" : "새로운 신약 병원 정보 환영합니다.",
"interestList" : [ "유전자", "문화생활", "복지", "운동" ]
Expand Down Expand Up @@ -856,23 +856,34 @@ <h3 id="_response_3"><a class="link" href="#_response_3">Response</a></h3>
"profileImage" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/f4113115-ee23-4a14-8a47-861b5aa7fdecdog-4586317_640.jpg",
"nickname" : "병원장",
"gender" : "MALE",
"diseaseName" : "포도당 수송자 1 결핍증",
"diseaseName" : "피어슨 증후군[Pierson syndrome]",
"diagnosisTiming" : "2002-06-27",
"bio" : "새로운 신약 병원 정보 환영합니다.",
"interestList" : [ "유전자", "문화생활", "복지", "운동" ],
"pageInfo" : {
"numberOfElements" : 1,
"numberOfElements" : 2,
"lastPage" : true,
"totalPages" : 1,
"totalElements" : 1,
"totalElements" : 2,
"size" : 30
},
"postPreviewList" : [ {
"createdDate" : "2024-01-08T02:18:05.209",
"ownerId" : 29,
"ownerProfileImg" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/f4113115-ee23-4a14-8a47-861b5aa7fdecdog-4586317_640.jpg",
"ownerNick" : "병원장",
"disease" : "피어슨 증후군[Pierson syndrome]",
"postId" : 103,
"postImg" : null,
"contentPreview" : "qna test",
"boardType" : "QNA",
"isEnd" : true
}, {
"createdDate" : "2023-12-30T00:40:29.237761",
"ownerId" : 29,
"ownerProfileImg" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/f4113115-ee23-4a14-8a47-861b5aa7fdecdog-4586317_640.jpg",
"ownerNick" : "병원장",
"disease" : "포도당 수송자 1 결핍증",
"disease" : "피어슨 증후군[Pierson syndrome]",
"postId" : 60,
"postImg" : null,
"contentPreview" : "급하게 친구들끼리 여행을 가게 될 일이 생겼어요. 사실 이동하는 게 많이 어려워서",
Expand Down Expand Up @@ -1436,7 +1447,7 @@ <h3 id="_response_5"><a class="link" href="#_response_5">Response</a></h3>
"code" : 1000,
"message" : "요청에 성공하였습니다.",
"result" : {
"profileImage" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/00f348b2-0669-4007-a6ff-6e4129b71023test_profile_img.jpg",
"profileImage" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/2e8f7688-1c73-45da-b3b3-fa6189ec8f35test_profile_img.jpg",
"nickname" : "병원장",
"gender" : "MALE",
"diseaseName" : "1번 염색체 장완 21.3 부분의 미세결손 증후군",
Expand Down
Loading

0 comments on commit 2fd5b58

Please sign in to comment.