Usecase_Diagram.drawio.png

Untitled

기능 Method URL Request Response
회원가입 API POST /users/signup {
"username": "admin1",
"password": "pasword123456"
”admin” : true,
”adminToken”: “{adminpassword}”
} {
”message”: ”회원가입 성공”,
”statusCode”: 201
}
로그인 API POST /users/login {
"username": "admin1",
"password": "pasword123456"
} {
”message”: ”로그인 성공”,
”statusCode”: 200
}
게시글 작성 API POST /boards {
"title": "title1",
"content": "content1"
} {
"id": 1,
"title": "title1",
"content": "content1",
"username": "author1",
"createdAt": "2022-07-25T12:43:01.226062”,
"modifiedAt": "2022-07-25T12:43:01.226062”
}
전체 게시글 목록 조회 API GET /boards - {
{
"id": 1,
"title": "title1",
"content": "content1",
"username": "author1",
"createdAt": "2022-07-25T12:43:01.226062”,
"modifiedAt": "2022-07-25T12:43:01.226062”
}
……
}
선택한 게시글 조회 API GET /boards/{id} - {
"id": 1,
"title": "title1",
"content": "content1",
"username": "author1",
"createdAt": "2022-07-25T12:43:01.226062”,
"modifiedAt": "2022-07-25T12:43:01.226062”
}
선택한 게시글 수정 API PUT /boards/{id} {
"title": "title0",
"content": "content0"
} {
"id": 1,
"title": "title0",
"content": "content0",
"username": "author0",
"createdAt": "2022-07-25T12:43:01.226062”,
"modifiedAt": "2022-07-25T12:45:01.226062”
}
선택한 게시글 삭제 API DELETE /boards/{id} - {
”message”: ”삭제가 완료 되었습니다.”,
”statusCode”: 200
}
댓글 작성 API POST /comments/{boardId} {
”comment”: “comment 내용”
} {
”id”: 1,
”username”: “commentor1”,
”comment”: “comment 내용”
}
댓글 수정 API PUT /comments/{commentId} {
”comment”: “comment 내용 수정”
} {
”id”: 1,
”username”: “commentor1”,
”comment”: “comment 내용 수정”
}
댓글 삭제 API DELETE /comments/{commentId} - {
”message”: ”삭제가 완료 되었습니다.”,
”statusCode”: 200
}