Spring_Lv1 블로그

지인·2023년 6월 16일
0

프로젝트

목록 보기
1/17

🐰 개인 과제


요구사항

  1. 전체 게시글 목록 조회 API
    • 제목, 작성자명, 작성 내용, 작성 날짜를 조회하기
    • 작성 날짜 기준 내림차순으로 정렬하기
  2. 게시글 작성 API
    • 제목, 작성자명, 비밀번호, 작성 내용을 저장하고
    • 저장된 게시글을 Client 로 반환하기
  3. 선택한 게시글 조회 API
    • 선택한 게시글의 제목, 작성자명, 작성 날짜, 작성 내용을 조회하기
      (검색 기능이 아닙니다. 간단한 게시글 조회만 구현해주세요.)
  4. 선택한 게시글 수정 API
    • 수정을 요청할 때 수정할 데이터와 비밀번호를 같이 보내서 서버에서 비밀번호 일치 여부를 확인 한 후
    • 제목, 작성자명, 작성 내용을 수정하고 수정된 게시글을 Client 로 반환하기
  5. 선택한 게시글 삭제 API
    • 삭제를 요청할 때 비밀번호를 같이 보내서 서버에서 비밀번호 일치 여부를 확인 한 후
    • 선택한 게시글을 삭제하고 Client 로 성공했다는 표시 반환하기

Use Case


API 명세서

MethodURLRequestResponse
Get/api/post-{
"createdAt" = "2023-06-16T12:43:01.226062”,
"modifiedAt" = "2023-06-16T12:43:01.226062",
"title" = "title",
"userName" = "userName",
"content" = "content",
"id" = "id"
}
Get/api/post/{id}-{
"createdAt" = "2023-06-16T12:43:01.226062”,
"modifiedAt" = "2023-06-16T12:43:01.226062",
"title" = "title",
"userName" = "userName",
"content" = "content",
"id" = "id"
}
Post/api/post{
"title" = "title",
"username" = "username",
"content" = "content"
}
{
"createdAt" = "2023-06-16T12:43:01.226062”,
"modifiedAt" = "2023-06-16T12:43:01.226062",
"title" = "title",
"username" = "username",
"content" = "content",
"password" = "password",
"id" = "id"
}
Put/api/post/{id}{
"title" = "title2",
"username" = "username2",
"content" = "content2"
}
{
"createdAt" = "2023-06-16T12:43:01.226062”,
"modifiedAt" = "2023-06-16T12:43:01.226062",
"title" = "title2",
"username" = "username2",
"content" = "content2",
"id" = "id"
}
Delete/api/post/{id}/{password}{
"password" = "password"
}
{
"success": true
}


GitHub

spring_Lv1

profile
열쩡

0개의 댓글