Comments (3)
권한 확인 방식에 따라 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.
게시글, 댓글을 삭제할 수 있는 사람은
- 작성자
- 게시글 작성자(댓글의 경우)
- 게시판 관리자
가 있다.
각 api를 구분하는것도 좋을 것 같다.
from bbs.
/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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bbs.