Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

게시글 상세 조회 #13

Open
enjay27 opened this issue Jun 11, 2021 · 1 comment
Open

게시글 상세 조회 #13

enjay27 opened this issue Jun 11, 2021 · 1 comment

Comments

@enjay27
Copy link
Collaborator

enjay27 commented Jun 11, 2021

  1. Method : GET
  2. Request Header
    1. 유저 정보 token
  3. Path : 게시글 ID / number {id}
  4. RequestParam
    1. ( 답변 정렬 ) sort_reply : Boolean / nullable : true → 추천순 정렬, false → 최신순 정렬, 만약 Null이면 추천수 정렬로 ( default )
  5. Response Body
    1. ( 게시글 ID ) post_id : number / Required
    2. ( 글 작성자 ) publisher_id : Long / Required
    3. ( 글 작성자 이름 ) publisher_name : String / Required
    4. ( 글 작성자 프로필 이미지 ) publisher_profile : String / nullable
    5. ( 글 작성자 경험치 ) publisher_exp : Int / Required
    6. ( 게시글 제목 ) title : String / Required
    7. ( 게시글 내용 ) content : String / Required
    8. ( 게시글 이미지 ) post_images : String / List / Required
    9. ( 게시글 태그 ) post_tags : String ( 태그 명 ) / List / Required
    10. ( 채택 여부 ) status_accept : Boolean / Required
    11. ( 좋아요 여부 ) like_post : Boolean / Required
    12. ( 작성 시각 ) date_create : Date / Required
    13. ( 수정 시각 ) date_update : Date / Required
    14. ( 답변 수 ) reply_num : Int / Required
    15. ( 답변 ) replies : reply / List / Required
      1. reply
        1. ( 답변 ID ) reply_id : number / Required
        2. ( 답변 작성자 ID ) publisher_id : Long / Required
        3. ( 답변 작성자 이름 ) publisher_name : String / Required
        4. ( 답변 작성자 프로필 이미지 ) publisher_profile : String / nullable
        5. ( 답변 작성자 경험치 ) publisher_exp : Number / Required
        6. ( 답변 내용 ) content : String / Required
        7. ( 답변 이미지 ) reply_images : String / List / Required
        8. ( 채택 여부 ) status_accept : Boolean / Required
        9. ( 좋아요 여부 ) like_reply : Boolean / Required
        10. ( 좋아요 수 ) like_num : Int / Required
        11. ( 작성 시각 ) date_create : Date / Required
        12. ( 수정 시각 ) date_update : Date / Required
  6. Response Code : 상단 참조
  7. URI : /post
  8. 기타 참고 사항
    1. 채택된 답변일 경우 비로그인 회원은 조회 불가
    2. tag에 공지/이벤트 tag 있을경우 reply 반환 값 없음(reply 자체가 등록될 수 없음)
@enjay27
Copy link
Collaborator Author

enjay27 commented Jun 11, 2021

응답 예시

GET postlist/{id}
{
	"statusCode": "OK",
	"responseMessage": "FOUND_POST",
	"data": {
		"post_id": 1031,
		"publisher_id": 1006,
		"publisher_name": "name_0",
		"publisher_profile": null,
		"publisher_exp": 345,
		"title": "title_1",
		"content": "post_content_1",
		"post_images": [
			"post_img_1",
			"post_img_2",
			"post_img_3"
		],
		"post_tags": [
			"tag_1"
		],
		"status_accept": false,
		"date_create": "2021-06-04T18:35:21.285657",
		"date_update": "2021-06-04T18:35:21.285657",
		"reply_num": 40,
		"reply": [
			{
				"reply_id": 9974,
				"publisher_id": 1024,
				"publisher_name": "name_18",
				"publisher_profile": null,
				"publisher_exp": 345,
				"content": "reply_content_0",
				"reply_images": [
					"reply_img_1",
					"reply_img_2",
					"reply_img_3"
				],
				"status_accept": false,
				"like_num": 0,
				"date_create": "2021-06-04T18:35:40.478168",
				"date_update": "2021-06-04T18:35:40.478168"
			},
			{
				"reply_id": 4694,
				"publisher_id": 1013,
				"publisher_name": "name_7",
				"publisher_profile": null,
				"publisher_exp": 345,
				"content": "reply_content_0",
				"reply_images": [
					"reply_img_1",
					"reply_img_2",
					"reply_img_3"
				],
				"status_accept": false,
				"like_num": 0,
				"date_create": "2021-06-04T18:35:26.05016",
				"date_update": "2021-06-04T18:35:26.05016"
			},
			{
				"reply_id": 3254,
				"publisher_id": 1010,
				"publisher_name": "name_4",
				"publisher_profile": null,
				"publisher_exp": 345,
				"content": "reply_content_0",
				"reply_images": [
					"reply_img_1",
					"reply_img_2",
					"reply_img_3"
				],
				"status_accept": false,
				"like_num": 0,
				"date_create": "2021-06-04T18:35:23.706159",
				"date_update": "2021-06-04T18:35:23.706159"
			},
			{
				"reply_id": 2298,
				"publisher_id": 1008,
				"publisher_name": "name_2",
				"publisher_profile": null,
				"publisher_exp": 345,
				"content": "reply_content_1",
				"reply_images": [
					"reply_img_1",
					"reply_img_2",
					"reply_img_3"
				],
				"status_accept": false,
				"like_num": 0,
				"date_create": "2021-06-04T18:35:22.526159",
				"date_update": "2021-06-04T18:35:22.526159"
			},
			{
				"reply_id": 10458,
				"publisher_id": 1025,
				"publisher_name": "name_19",
				"publisher_profile": null,
				"publisher_exp": 345,
				"content": "reply_content_1",
				"reply_images": [
					"reply_img_1",
					"reply_img_2",
					"reply_img_3"
				],
				"status_accept": false,
				"like_num": 0,
				"date_create": "2021-06-04T18:35:42.244168",
				"date_update": "2021-06-04T18:35:42.244168"
			},
			{
				"reply_id": 9018,
				"publisher_id": 1022,
				"publisher_name": "name_16",
				"publisher_profile": null,
				"publisher_exp": 345,
				"content": "reply_content_1",
				"reply_images": [
					"reply_img_1",
					"reply_img_2",
					"reply_img_3"
				],
				"status_accept": false,
				"like_num": 0,
				"date_create": "2021-06-04T18:35:37.189168",
				"date_update": "2021-06-04T18:35:37.189168"
			},
			{
				"reply_id": 8534,
				"publisher_id": 1021,
				"publisher_name": "name_15",
				"publisher_profile": null,
				"publisher_exp": 345,
				"content": "reply_content_0",
				"reply_images": [
					"reply_img_1",
					"reply_img_2",
					"reply_img_3"
				],
				"status_accept": false,
				"like_num": 0,
				"date_create": "2021-06-04T18:35:35.647168",
				"date_update": "2021-06-04T18:35:35.647168"
			},
			{
				"reply_id": 7094,
				"publisher_id": 1018,
				"publisher_name": "name_12",
				"publisher_profile": null,
				"publisher_exp": 345,
				"content": "reply_content_0",
				"reply_images": [
					"reply_img_1",
					"reply_img_2",
					"reply_img_3"
				],
				"status_accept": false,
				"like_num": 0,
				"date_create": "2021-06-04T18:35:31.489168",
				"date_update": "2021-06-04T18:35:31.489168"
			},
			{
				"reply_id": 1814,
				"publisher_id": 1007,
				"publisher_name": "name_1",
				"publisher_profile": null,
				"publisher_exp": 345,
				"content": "reply_content_0",
				"reply_images": [
					"reply_img_1",
					"reply_img_2",
					"reply_img_3"
				],
				"status_accept": false,
				"like_num": 0,
				"date_create": "2021-06-04T18:35:22.006145",
				"date_update": "2021-06-04T18:35:22.006145"
			},
			{
				"reply_id": 7578,
				"publisher_id": 1019,
				"publisher_name": "name_13",
				"publisher_profile": null,
				"publisher_exp": 345,
				"content": "reply_content_1",
				"reply_images": [
					"reply_img_1",
					"reply_img_2",
					"reply_img_3"
				],
				"status_accept": false,
				"like_num": 0,
				"date_create": "2021-06-04T18:35:32.811168",
				"date_update": "2021-06-04T18:35:32.811168"
			},
			{
				"reply_id": 6138,
				"publisher_id": 1016,
				"publisher_name": "name_10",
				"publisher_profile": null,
				"publisher_exp": 345,
				"content": "reply_content_1",
				"reply_images": [
					"reply_img_1",
					"reply_img_2",
					"reply_img_3"
				],
				"status_accept": false,
				"like_num": 0,
				"date_create": "2021-06-04T18:35:29.082159",
				"date_update": "2021-06-04T18:35:29.082159"
			},
			{
				"reply_id": 5654,
				"publisher_id": 1015,
				"publisher_name": "name_9",
				"publisher_profile": null,
				"publisher_exp": 345,
				"content": "reply_content_0",
				"reply_images": [
					"reply_img_1",
					"reply_img_2",
					"reply_img_3"
				],
				"status_accept": false,
				"like_num": 0,
				"date_create": "2021-06-04T18:35:27.97116",
				"date_update": "2021-06-04T18:35:27.97116"
			},
			{
				"reply_id": 4214,
				"publisher_id": 1012,
				"publisher_name": "name_6",
				"publisher_profile": null,
				"publisher_exp": 345,
				"content": "reply_content_0",
				"reply_images": [
					"reply_img_1",
					"reply_img_2",
					"reply_img_3"
				],
				"status_accept": false,
				"like_num": 0,
				"date_create": "2021-06-04T18:35:25.16116",
				"date_update": "2021-06-04T18:35:25.16116"
			},
			{
				"reply_id": 9978,
				"publisher_id": 1024,
				"publisher_name": "name_18",
				"publisher_profile": null,
				"publisher_exp": 345,
				"content": "reply_content_1",
				"reply_images": [
					"reply_img_1",
					"reply_img_2",
					"reply_img_3"
				],
				"status_accept": false,
				"like_num": 0,
				"date_create": "2021-06-04T18:35:40.492168",
				"date_update": "2021-06-04T18:35:40.492168"
			},
			{
				"reply_id": 4698,
				"publisher_id": 1013,
				"publisher_name": "name_7",
				"publisher_profile": null,
				"publisher_exp": 345,
				"content": "reply_content_1",
				"reply_images": [
					"reply_img_1",
					"reply_img_2",
					"reply_img_3"
				],
				"status_accept": false,
				"like_num": 0,
				"date_create": "2021-06-04T18:35:26.059159",
				"date_update": "2021-06-04T18:35:26.059159"
			},
			{
				"reply_id": 3258,
				"publisher_id": 1010,
				"publisher_name": "name_4",
				"publisher_profile": null,
				"publisher_exp": 345,
				"content": "reply_content_1",
				"reply_images": [
					"reply_img_1",
					"reply_img_2",
					"reply_img_3"
				],
				"status_accept": false,
				"like_num": 0,
				"date_create": "2021-06-04T18:35:23.71216",
				"date_update": "2021-06-04T18:35:23.71216"
			},
			{
				"reply_id": 2774,
				"publisher_id": 1009,
				"publisher_name": "name_3",
				"publisher_profile": null,
				"publisher_exp": 345,
				"content": "reply_content_0",
				"reply_images": [
					"reply_img_1",
					"reply_img_2",
					"reply_img_3"
				],
				"status_accept": false,
				"like_num": 0,
				"date_create": "2021-06-04T18:35:23.08516",
				"date_update": "2021-06-04T18:35:23.08516"
			},
			{
				"reply_id": 9494,
				"publisher_id": 1023,
				"publisher_name": "name_17",
				"publisher_profile": null,
				"publisher_exp": 345,
				"content": "reply_content_0",
				"reply_images": [
					"reply_img_1",
					"reply_img_2",
					"reply_img_3"
				],
				"status_accept": false,
				"like_num": 0,
				"date_create": "2021-06-04T18:35:38.785168",
				"date_update": "2021-06-04T18:35:38.785168"
			},
			{
				"reply_id": 8538,
				"publisher_id": 1021,
				"publisher_name": "name_15",
				"publisher_profile": null,
				"publisher_exp": 345,
				"content": "reply_content_1",
				"reply_images": [
					"reply_img_1",
					"reply_img_2",
					"reply_img_3"
				],
				"status_accept": false,
				"like_num": 0,
				"date_create": "2021-06-04T18:35:35.659168",
				"date_update": "2021-06-04T18:35:35.659168"
			},
			{
				"reply_id": 7098,
				"publisher_id": 1018,
				"publisher_name": "name_12",
				"publisher_profile": null,
				"publisher_exp": 345,
				"content": "reply_content_1",
				"reply_images": [
					"reply_img_1",
					"reply_img_2",
					"reply_img_3"
				],
				"status_accept": false,
				"like_num": 0,
				"date_create": "2021-06-04T18:35:31.499168",
				"date_update": "2021-06-04T18:35:31.499168"
			},
			{
				"reply_id": 1818,
				"publisher_id": 1007,
				"publisher_name": "name_1",
				"publisher_profile": null,
				"publisher_exp": 345,
				"content": "reply_content_1",
				"reply_images": [
					"reply_img_1",
					"reply_img_2",
					"reply_img_3"
				],
				"status_accept": false,
				"like_num": 0,
				"date_create": "2021-06-04T18:35:22.009145",
				"date_update": "2021-06-04T18:35:22.009145"
			},
			{
				"reply_id": 1334,
				"publisher_id": 1006,
				"publisher_name": "name_0",
				"publisher_profile": null,
				"publisher_exp": 345,
				"content": "reply_content_0",
				"reply_images": [
					"reply_img_1",
					"reply_img_2",
					"reply_img_3"
				],
				"status_accept": false,
				"like_num": 0,
				"date_create": "2021-06-04T18:35:21.577146",
				"date_update": "2021-06-04T18:35:21.577146"
			},
			{
				"reply_id": 8054,
				"publisher_id": 1020,
				"publisher_name": "name_14",
				"publisher_profile": null,
				"publisher_exp": 345,
				"content": "reply_content_0",
				"reply_images": [
					"reply_img_1",
					"reply_img_2",
					"reply_img_3"
				],
				"status_accept": false,
				"like_num": 0,
				"date_create": "2021-06-04T18:35:34.187169",
				"date_update": "2021-06-04T18:35:34.187169"
			},
			{
				"reply_id": 6614,
				"publisher_id": 1017,
				"publisher_name": "name_11",
				"publisher_profile": null,
				"publisher_exp": 345,
				"content": "reply_content_0",
				"reply_images": [
					"reply_img_1",
					"reply_img_2",
					"reply_img_3"
				],
				"status_accept": false,
				"like_num": 0,
				"date_create": "2021-06-04T18:35:30.231159",
				"date_update": "2021-06-04T18:35:30.231159"
			},
			{
				"reply_id": 5658,
				"publisher_id": 1015,
				"publisher_name": "name_9",
				"publisher_profile": null,
				"publisher_exp": 345,
				"content": "reply_content_1",
				"reply_images": [
					"reply_img_1",
					"reply_img_2",
					"reply_img_3"
				],
				"status_accept": false,
				"like_num": 0,
				"date_create": "2021-06-04T18:35:27.979159",
				"date_update": "2021-06-04T18:35:27.979159"
			},
			{
				"reply_id": 3734,
				"publisher_id": 1011,
				"publisher_name": "name_5",
				"publisher_profile": null,
				"publisher_exp": 345,
				"content": "reply_content_0",
				"reply_images": [
					"reply_img_1",
					"reply_img_2",
					"reply_img_3"
				],
				"status_accept": false,
				"like_num": 0,
				"date_create": "2021-06-04T18:35:24.393159",
				"date_update": "2021-06-04T18:35:24.393159"
			},
			{
				"reply_id": 10454,
				"publisher_id": 1025,
				"publisher_name": "name_19",
				"publisher_profile": null,
				"publisher_exp": 345,
				"content": "reply_content_0",
				"reply_images": [
					"reply_img_1",
					"reply_img_2",
					"reply_img_3"
				],
				"status_accept": false,
				"like_num": 0,
				"date_create": "2021-06-04T18:35:42.229168",
				"date_update": "2021-06-04T18:35:42.229168"
			},
			{
				"reply_id": 5174,
				"publisher_id": 1014,
				"publisher_name": "name_8",
				"publisher_profile": null,
				"publisher_exp": 345,
				"content": "reply_content_0",
				"reply_images": [
					"reply_img_1",
					"reply_img_2",
					"reply_img_3"
				],
				"status_accept": false,
				"like_num": 0,
				"date_create": "2021-06-04T18:35:26.977159",
				"date_update": "2021-06-04T18:35:26.977159"
			},
			{
				"reply_id": 4218,
				"publisher_id": 1012,
				"publisher_name": "name_6",
				"publisher_profile": null,
				"publisher_exp": 345,
				"content": "reply_content_1",
				"reply_images": [
					"reply_img_1",
					"reply_img_2",
					"reply_img_3"
				],
				"status_accept": false,
				"like_num": 0,
				"date_create": "2021-06-04T18:35:25.170159",
				"date_update": "2021-06-04T18:35:25.170159"
			},
			{
				"reply_id": 2778,
				"publisher_id": 1009,
				"publisher_name": "name_3",
				"publisher_profile": null,
				"publisher_exp": 345,
				"content": "reply_content_1",
				"reply_images": [
					"reply_img_1",
					"reply_img_2",
					"reply_img_3"
				],
				"status_accept": false,
				"like_num": 0,
				"date_create": "2021-06-04T18:35:23.090159",
				"date_update": "2021-06-04T18:35:23.090159"
			},
			{
				"reply_id": 9498,
				"publisher_id": 1023,
				"publisher_name": "name_17",
				"publisher_profile": null,
				"publisher_exp": 345,
				"content": "reply_content_1",
				"reply_images": [
					"reply_img_1",
					"reply_img_2",
					"reply_img_3"
				],
				"status_accept": false,
				"like_num": 0,
				"date_create": "2021-06-04T18:35:38.798168",
				"date_update": "2021-06-04T18:35:38.798168"
			},
			{
				"reply_id": 2294,
				"publisher_id": 1008,
				"publisher_name": "name_2",
				"publisher_profile": null,
				"publisher_exp": 345,
				"content": "reply_content_0",
				"reply_images": [
					"reply_img_1",
					"reply_img_2",
					"reply_img_3"
				],
				"status_accept": false,
				"like_num": 0,
				"date_create": "2021-06-04T18:35:22.52216",
				"date_update": "2021-06-04T18:35:22.52216"
			},
			{
				"reply_id": 9014,
				"publisher_id": 1022,
				"publisher_name": "name_16",
				"publisher_profile": null,
				"publisher_exp": 345,
				"content": "reply_content_0",
				"reply_images": [
					"reply_img_1",
					"reply_img_2",
					"reply_img_3"
				],
				"status_accept": false,
				"like_num": 0,
				"date_create": "2021-06-04T18:35:37.176168",
				"date_update": "2021-06-04T18:35:37.176168"
			},
			{
				"reply_id": 6618,
				"publisher_id": 1017,
				"publisher_name": "name_11",
				"publisher_profile": null,
				"publisher_exp": 345,
				"content": "reply_content_1",
				"reply_images": [
					"reply_img_1",
					"reply_img_2",
					"reply_img_3"
				],
				"status_accept": false,
				"like_num": 0,
				"date_create": "2021-06-04T18:35:30.241159",
				"date_update": "2021-06-04T18:35:30.241159"
			},
			{
				"reply_id": 1338,
				"publisher_id": 1006,
				"publisher_name": "name_0",
				"publisher_profile": null,
				"publisher_exp": 345,
				"content": "reply_content_1",
				"reply_images": [
					"reply_img_1",
					"reply_img_2",
					"reply_img_3"
				],
				"status_accept": false,
				"like_num": 0,
				"date_create": "2021-06-04T18:35:21.581146",
				"date_update": "2021-06-04T18:35:21.581146"
			},
			{
				"reply_id": 8058,
				"publisher_id": 1020,
				"publisher_name": "name_14",
				"publisher_profile": null,
				"publisher_exp": 345,
				"content": "reply_content_1",
				"reply_images": [
					"reply_img_1",
					"reply_img_2",
					"reply_img_3"
				],
				"status_accept": false,
				"like_num": 0,
				"date_create": "2021-06-04T18:35:34.199168",
				"date_update": "2021-06-04T18:35:34.199168"
			},
			{
				"reply_id": 7574,
				"publisher_id": 1019,
				"publisher_name": "name_13",
				"publisher_profile": null,
				"publisher_exp": 345,
				"content": "reply_content_0",
				"reply_images": [
					"reply_img_1",
					"reply_img_2",
					"reply_img_3"
				],
				"status_accept": false,
				"like_num": 0,
				"date_create": "2021-06-04T18:35:32.800168",
				"date_update": "2021-06-04T18:35:32.800168"
			},
			{
				"reply_id": 6134,
				"publisher_id": 1016,
				"publisher_name": "name_10",
				"publisher_profile": null,
				"publisher_exp": 345,
				"content": "reply_content_0",
				"reply_images": [
					"reply_img_1",
					"reply_img_2",
					"reply_img_3"
				],
				"status_accept": false,
				"like_num": 0,
				"date_create": "2021-06-04T18:35:29.073159",
				"date_update": "2021-06-04T18:35:29.073159"
			},
			{
				"reply_id": 5178,
				"publisher_id": 1014,
				"publisher_name": "name_8",
				"publisher_profile": null,
				"publisher_exp": 345,
				"content": "reply_content_1",
				"reply_images": [
					"reply_img_1",
					"reply_img_2",
					"reply_img_3"
				],
				"status_accept": false,
				"like_num": 0,
				"date_create": "2021-06-04T18:35:26.985159",
				"date_update": "2021-06-04T18:35:26.985159"
			},
			{
				"reply_id": 3738,
				"publisher_id": 1011,
				"publisher_name": "name_5",
				"publisher_profile": null,
				"publisher_exp": 345,
				"content": "reply_content_1",
				"reply_images": [
					"reply_img_1",
					"reply_img_2",
					"reply_img_3"
				],
				"status_accept": false,
				"like_num": 0,
				"date_create": "2021-06-04T18:35:24.39916",
				"date_update": "2021-06-04T18:35:24.39916"
			}
		]
	}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant