Skip to content

lautarocastillo/video-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Video Library API

Dependencies

  • Ruby 2.7.0
  • Rails 6.0.2
  • Postgres >= 9.3
  • Redis 5

Install

> bin/setup

🚀 Run

> bin/start

ROUTES:

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)

Body example for creating a purchase:

{
  "purchase": {
    "video_id": 3,
    "quality": "sd"
  }
}

NOTE: All prices are expressed in cents.

Test

Update coverage

> COVERAGE=1 bundle exec rspec

View coverage

> open coverage/index.html

Run tests

> bundle exec rspec

About

Video library API example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published