- Ruby 2.7.0
- Rails 6.0.2
- Postgres >= 9.3
- Redis 5
> bin/setup
> bin/start
Type | Endpoint | Order |
---|---|---|
GET | /api/library |
Creation |
GET | /api/library/movies |
Creation |
GET | /api/library/seasons |
Creation |
GET | /api/user/library |
Remanining time |
POST | /api/user/purchase (example below) |
{
"purchase": {
"video_id": 3,
"quality": "sd"
}
}
NOTE: All prices are expressed in cents.
> COVERAGE=1 bundle exec rspec
> open coverage/index.html
> bundle exec rspec