JSONPlaceholder 정보
기타 JSONPlaceholder본문
https://sir.kr/so_app/1576 여기 글에서 나온 JSONPlaceholder 입니다.
https://jsonplaceholder.typicode.com/
Resources
JSONPlaceholder comes with a set of 6 common resources:
/posts | 100 posts |
/comments | 500 comments |
/albums | 100 albums |
/photos | 5000 photos |
/todos | 200 todos |
/users | 10 users |
Note: resources have relations. For example: posts have many comments, albums have many photos, ... see below for routes examples.
Routes
All HTTP methods are supported.
GET | /posts |
GET | /posts/1 |
GET | /posts/1/comments |
GET | /comments?postId=1 |
GET | /posts?userId=1 |
POST | /posts |
PUT | /posts/1 |
PATCH | /posts/1 |
DELETE | /posts/1 |
lavuebd에서 하고자 하는 것과 비슷하네요..
앱 개발하시는 분들을 위해서 lavuebd와 비슷하게 fake JSON Server를 만들어 보면 좋을 것 같네요.
https://github.com/typicode/json-server
https://egghead.io/lessons/javascript-creating-demo-apis-with-json-server
추천
0
0
댓글 0개