Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gnujoow/jsonplaceholder-rails
https://github.com/gnujoow/jsonplaceholder-rails
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/gnujoow/jsonplaceholder-rails
- Owner: gnujoow
- Created: 2016-07-30T10:32:21.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-07-30T17:13:00.000Z (over 8 years ago)
- Last Synced: 2024-10-27T09:50:44.869Z (2 months ago)
- Language: Ruby
- Size: 31.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 실행
```
$ git clone [this repo]
$ bundle
$ rake db:migrate
$ rake db:seed
$ rails s
```# Resource
| url | 갯수 |
|------------|--------|
| /posts | 100개 |
| /comments | 500개 |
| /albums | 100개 |
| /photos | 5000개 |
| /todos | 200개 |# Routes
```
$ rake routes
```| get | /posts | 내용 |
|-----|-------------------|---------|
| get | /posts | 포스트전체 |
| get | /posts/1 | 아이디가 1인 포스트 |
| get | /posts/1/comments | 포스트1에 속한 comments들 |- post는 구현하지 않았음
---
- ref & data https://jsonplaceholder.typicode.com/