알림

notice list

GET http://api.phopo.best/api/notice

This endpoint allows you to get free cakes.

Query Parameters

Name
Type
Description

page

string

'페이징 넘버'

created_time

boolean

'알림 생성'

Headers

Name
Type
Description

Authentication

string

'규칙 참조'

{
    "payload": {
        "items": [
            {
                "id": 3,
                "receiver_id": 9, 레거시
                "post_id": 1698,
                "comment_id": null,
                "report_id": null,
                "reason_detail": "사진의 위치정보가 정확하지 않습니다. 다시 위치를 확인하여 업로드 해 주시길 바랍니다.가이드 라인에 위배되는 부적절한 사진을 업로드하여 사진이 반려 되었습니다.",
                "kind": 22001,
                "confirmation": false,
                "created_date": "2020-02-20T11:21:43.083962Z",
                "post_image": "https://avon-spott-imageserver.s3.ap-northeast-2.amazonaws.com/media/post/p20200220200129.jpg",
                "reason": "잘못된 위치정보"
                "post_image" : "이미지 url"
                "comment_user_nick" : "댓글 유저 닉네"
                "comment_user_image" : "댓글 유저 이미지"
                "comment_user_id" : "댓글 유저의 아이디"
                
            }
            ...
            ...
            ...
        ],
        "created_time": "2020-02-20 13:17:40.154565+00:00",
        "pageable": false
    },
    "message": "show notice list"
}

'알림 리스트 불러오는 부분 response'

'공통 response data key

id = 알림 테이블 id

receiver_id = (int)알림 받는 유저의 아이디(pk)

comment_id = (int)코멘트 테이블 아이디(pk)

report_id = (int) 신고 테이블 아이디(pk)

resason_detail = (string)신고 상세 사유

kind =(int) 분기처( 반려 사진 - 22001, 통과 사진 - 22002, 댓글 남김 - 22003,

귀칙위반 사진 - 22004, 규칙 위반 댓글 22005)

confirmation = (boolean)알림 확인 불린값

created_date = (string)알림 생성일(datetime)

.

그 외 추가 데이터

post_image = 사진 url

reason = 신고 or 반려 사유

comment_user_nick = 댓글을 단 유저의 닉네임

comment_user_image = 댓글을 단 유저의 프로필 이미지 url

comment_post_id= 댓글이 달린 게시물의 id

show detail notice item

GET http://api.phopo.best/api/notice/:pk

Path Parameters

Name
Type
Description

pk

integer

'알림 id(pk)'

Headers

Name
Type
Description

Authentication

string

'규칙 참조'

{
    "payload": {
        "image_url": "https://avon-spott-imageserver.s3.ap-northeast-2.amazonaws.com/media/post/p20200220200129.jpg",
        "caption": "ㅋㅋㅋ"
    },
    "message": "show notice"
}

delete notice record

DELETE http://api.phopo.best/api/notice/:pk

Path Parameters

Name
Type
Description

pk

integer

'알림 id(pk)'

Headers

Name
Type
Description

Authentication

string

'규칙 참조'

{
    "payload": {
        "result": True
    },
    "message": "delete success"
}

Last updated

Was this helpful?