POST /api/contents/blog/


key type default required description
user User 작성자
title char(100) True 제목
content Text True 내용
category char(20) 카테고리
image Attachment 썸네일
tags char(1024) 태그 (CommaSeperatedText)
is_published bool True 발행 여부 (False 시 임시저장)
created_at datetime 작성일
modified_at datetime 최종 수정일
editable bool False 현재 이용자가 블로그 편집 가능 여부
liked bool False 현재 이용자가 블로그를 이미 추천했는지 여부
{
    "title": "post",
    "content": "hi",
    "category": "asmr",
    "image": {
        "id": 1
    },
    "tags": "asmr, hi",
    "is_published": true
}
{
    "data": {
        "id": 14,
        "user": {
            "id": 2,
            "username": "[email protected]",
            "call_name": "B B"
        },
        "title": "post",
        "content": "hi",
        "category": "asmr",
        "image": {
            "id": 1,
            "file": "<http://localhost:8000/upload/files/shield_TaNz5sY.png>",
            "filename": "shield.png",
            "content_type": "image/png",
            "size": 48248,
            "created_at": "2023-09-27T11:02:24+0900"
        },
        "tags": "asmr, hi",
        "is_published": true,
        "created_at": "2023-11-16T11:00:20+0900",
        "modified_at": "2023-11-16T11:00:20+0900"
    }
}

PATCH /api/contents/blog/{blog_id}/


{
    "title": "test2",
    "content": "hi",
    "category": "asmr",
    "image": null,
    "tags": "asmr, hi",
    "is_published": false
}
{
    "data": {
        "id": 1,
        "user": {
            "id": 2,
            "username": "[email protected]",
            "call_name": "B B"
        },
        "title": "test2",
        "content": "hi",
        "category": "asmr",
        "image": null,
        "tags": "asmr, hi",
        "is_published": false,
        "created_at": "2023-11-07T11:29:17+0900",
        "modified_at": "2023-11-07T11:29:17+0900"
    }
}