GithubHelp home page GithubHelp logo

✨ 게시판 시스템 도입 about bbs HOT 3 CLOSED

rojiwon123 avatar rojiwon123 commented on September 7, 2024
✨ 게시판 시스템 도입

from bbs.

Comments (3)

rojiwon123 avatar rojiwon123 commented on September 7, 2024

권한 확인 방식에 따라 api를 나눠보자

/boards
/boards/:board_id
/boards/:board_id/articles (목록 조회, 생성)
/boards/:board_id/articles/:article_id (단일 조회)
/boards/:board_id/articles/:article_id/comments (목록 조회, (대댓글) 생성)
/boards/:board_id/articles/:article_id/comments/:comment_id/comments
=> 대댓글 목록 조회

/articles/{functional} -> multi-board search (목록 조회 public만 검색)
/articles/latest
/articles/popular
/articles/mine

  • 최신 글, 인기 글, 내 글

/articles/:article_id (수정, 삭제)

/comments/mine -> 내 댓글 보기
/comments/:comment_id (수정, 삭제)


/mine/articles
/mine/comments
=> 내 게시글, 댓글 모아보기

/mine/articles/:article_id => 수정, 삭제
/mine/comments/:comment_id => 수정, 삭제

from bbs.

rojiwon123 avatar rojiwon123 commented on September 7, 2024

게시글, 댓글을 삭제할 수 있는 사람은

  1. 작성자
  2. 게시글 작성자(댓글의 경우)
  3. 게시판 관리자
    가 있다.
    각 api를 구분하는것도 좋을 것 같다.

from bbs.

rojiwon123 avatar rojiwon123 commented on September 7, 2024

/mine/articles/:article_id => 삭제(1)
/mine/comments/:comment_id => 삭제(1)
/mine/articles/:article_id/comments/:comment_id => 삭제(2)
/mine/boards/:board_id/articles/:article_id => 삭제(3)
/mine/boards/:board_id/articles/:article_id/comments/:comment_id => 삭제(3)

from bbs.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.