story-dict
  1. 이야기
story-dict
  • v0
    • ping-pong
      GET
  • v1
    • 인증
      • 로그아웃
    • 유저
      • 로그인한 유저 정보 요청
      • 회원가입
    • 이미지
      • 미리 서명된 URL
      • 이미지 이동
    • 이야기
      • 리액션
        • 이야기의 리액션 생성
        • 이야기의 리액션 수정
        • 이야기의 리액션 제거
      • 댓글
        • 리액션
          • 이야기의 댓글의 리액션 생성
          • 이야기의 댓글의 리액션 수정
          • 이야기의 댓글의 리액션 삭제
        • 이야기의 댓글 생성
        • 이야기의 모든 댓글들 가져오기
        • 이야기의 댓글 수정
        • 이야기의 댓글 삭제
      • 모든 이야기들 가져오기
        GET
      • 랜덤 이야기들 가져오기
        GET
      • 단일 이야기 가져오기
        GET
      • 제목으로 단일 이야기 가져오기
        GET
      • 키워드로 이야기들 검색
        GET
      • 카테고리로 이야기들 가져오기
        GET
      • 단일 이야기 수정
        PATCH
      • 단일 이야기 삭제
        DELETE
      • 이야기 제목 중복 검사
        POST
      • 단일 이야기 생성
        POST
  1. 이야기

단일 이야기 삭제

Develop Env
http://localhost:9050
Develop Env
http://localhost:9050
DELETE
/apis/v1/stories/{storyId}
story
단일 이야기 삭제

Request

Path Params
storyId
string 
required
이야기 식별자
Example:
00000000-0000-0000-0000-100000000000

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request DELETE 'http://localhost:9050/apis/v1/stories/00000000-0000-0000-0000-100000000000'

Responses

🟢200🟢 이야기 삭제 성공
application/json
Body
toast
object (Toast) 
required
title
string 
required
프론트에서 렌더링할 토스트 메시지 제목
description
string 
required
프론트에서 렌더링할 토스트 메시지 내용
payload
object (Story) 
required
이야기 스키마
id
string 
required
이야기 식별자
createdAt
string 
required
생성 일자
Default:
CURRENT_TIMESTAMP
updatedAt
string 
required
수정 일자
deletedAt
string  | null 
optional
삭제 일자
title
string 
required
이야기 제목
summary
string 
required
이야기 요약
content
string 
required
이야기 내용
thumbnailPath
string  | null 
optional
이야기 썸네일 이미지 경로
category
enum<string> 
required
이야기 카테고리
Allowed values:
GENERAL_KNOWLEDGEETYMOLOGYPURE_KOREANQUOTATIONINFORMATIONNONSENSE
userId
string 
required
유저 식별자
Example
{
    "toast": {
        "title": "이야기 삭제 완료",
        "description": "이야기를 삭제했습니다.\n메인 페이지로 이동합니다!"
    },
    "payload": {
        "id": "00000000-0000-0000-0000-100000000000",
        "createdAt": "2025-01-09T10:56:16.226Z",
        "updatedAt": "2025-01-12T00:58:50.617Z",
        "deletedAt": null,
        "title": "Postman에서 수정",
        "summary": "Postman에서 수정 요약",
        "content": "Postman에서 수정 요약입니다\n아무튼 요약입니다",
        "thumbnailPath": null,
        "category": "INFORMATION",
        "userId": "00000000-0000-0000-0000-000000000000"
    }
}
🟠400🔴 유효성 검사 실패
🟠404🔴 존재하지 않음
Previous
단일 이야기 수정
Next
이야기 제목 중복 검사
Built with