글 발행 시 발행 선택 정보 추가
Closed this issue · 0 comments
ezzanzzan commented
⏰ Estimated Time
2
🛠️ Description
기존에 태그만 추가할 수 있었던 발행 선택 정보를 추가한다.
티스토리, 미디움에서 허용되는 선택 정보에 맞춰 API를 수정한다.
✅ Tasks
- 글 발행 API 분리
- 티스토리 발행하기 API 수정
- 미디움 발행하기 API 수정
📝 Note
티스토리
Request
POST /writings/{writingId}/publish/tistory HTTP/1.1
Content-Type: application/json
Authorziation : Bearer {access_token}
{
"tags": ["OS", "우테코"],
"publishStatus": "PUBLIC",
"password": "12345677",
"categoryId": 1,
"reserve": true,
"publishTime": "2023-09-14 16:27:58.041167"
}
- tags : List (기본값 :
[]
) - publishStatus : String (PUBLIC(공개), PRIVATE(비공개), PROTECT(보호)) (
PUBLIC
) - password : String (protect 일 때만 가능) (기본값 :
“”
) - categoryId : Long (기본값 :
0
) - publishTime : String(Date) (public & protect 일 때만 가능) (기본값 : )
Response
HTTP/1.1 200 Ok
미디움
Request
POST /writings/{writingId}/publish/medium HTTP/1.1
Content-Type: application/json
Authorziation : Bearer {access_token}
{
"tags": ["OS", "우테코"],
"publishStatus": "PUBLISH"
}
- tags : List (기본값 :
[]
) - publishStatus : String (PUBLIC(public), PRIVATE(draft), PROTECT(unlisted)) (
PUBLIC
)
Response
HTTP/1.1 200 Ok