-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop-mysql' into feature/#86-delete-post
- Loading branch information
Showing
50 changed files
with
754 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,4 +23,4 @@ hooks: | |
# runas: root | ||
ApplicationStart: | ||
- location: scripts/start.sh | ||
runas: root | ||
runas: root |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
= POCHAK API Document | ||
pochak server team~~ | ||
:doctype: book | ||
:icons: font | ||
:source-highlighter: highlishtjs | ||
:toc: left | ||
:toclevels: 4 | ||
:sectlinks: | ||
:docinfo: shared-head | ||
|
||
== Http Status Code | ||
|
||
|=== | ||
| Status code | Usage | ||
|
||
| `200 OK` | ||
| The request completed successfully | ||
|
||
| `201 Created` | ||
| A new resource has been created successfully. The resource's URI is available from the response's | ||
`Location` header | ||
|
||
| `204 No Content` | ||
| An update to an existing resource has been applied successfully | ||
|
||
| `400 Bad Request` | ||
| The request was malformed. The response body will include an error providing further information | ||
|
||
| `404 Not Found` | ||
| The requested resource did not exist | ||
|=== | ||
|
||
== API List | ||
|
||
=== Post | ||
|
||
* link:post.html[Post API] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
= POST API | ||
:doctype: book | ||
:icons: font | ||
:source-highlighter: highlishtjs | ||
:toc: left | ||
:toclevels: 4 | ||
:sectlinks: | ||
|
||
ifndef::snippets[] | ||
:snippets: ./build/generated-snippets | ||
endif::[] | ||
|
||
== `POST` Upload Post API | ||
|
||
게시물 업로드 API | ||
|
||
=== Request | ||
|
||
include::{snippets}/upload-post/curl-request.adoc[] | ||
include::{snippets}/upload-post/request-parts.adoc[] | ||
|
||
- request는 `application/json` 타입으로 다음과 같이 전달합니다. | ||
|
||
```json | ||
{ | ||
"caption" : "게시물 내용", | ||
"taggedMemberHandleList" : ["habongee"] | ||
} | ||
``` | ||
|
||
include::{snippets}/upload-post/request-part-request-fields.adoc[] | ||
|
||
=== Response | ||
|
||
include::{snippets}/upload-post/response-body.adoc[] | ||
include::{snippets}/upload-post/response-fields.adoc[] | ||
|
||
== `GET` Post Details Retrieval API | ||
|
||
게시물 상세 페이지 조회 API | ||
|
||
=== Request | ||
include::{snippets}/get-detail-post/http-request.adoc[] | ||
include::{snippets}/get-detail-post/path-parameters.adoc[] | ||
include::{snippets}/get-detail-post/request-headers.adoc[] | ||
|
||
=== Response | ||
include::{snippets}/get-detail-post/response-body.adoc[] | ||
include::{snippets}/get-detail-post/response-fields.adoc[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
pochak/src/main/java/com/apps/pochak/alarm/domain/LikeAlarm.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
pochak/src/main/java/com/apps/pochak/alarm/domain/TagApprovalAlarm.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,33 @@ | ||
package com.apps.pochak.alarm.domain; | ||
|
||
import com.apps.pochak.member.domain.Member; | ||
import com.apps.pochak.tag.domain.Tag; | ||
import jakarta.persistence.DiscriminatorValue; | ||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.JoinColumn; | ||
import jakarta.persistence.OneToOne; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import org.hibernate.annotations.DynamicInsert; | ||
|
||
import static jakarta.persistence.CascadeType.ALL; | ||
import static jakarta.persistence.FetchType.LAZY; | ||
import static lombok.AccessLevel.PROTECTED; | ||
|
||
@Entity | ||
@Getter | ||
@DynamicInsert | ||
@NoArgsConstructor(access = PROTECTED) | ||
@DiscriminatorValue("TAG_APPROVAL") | ||
public class TagApprovalAlarm extends Alarm { | ||
@OneToOne(fetch = LAZY, cascade = ALL) | ||
@JoinColumn(name = "tag_approval_id") | ||
private Tag tag; | ||
|
||
@Builder | ||
public TagApprovalAlarm(Member receiver, Tag tag) { | ||
super(receiver); | ||
this.tag = tag; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
pochak/src/main/java/com/apps/pochak/comment/dto/response/ChildCommentElement.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.