- Ruby version 3.0.0
- Rails 6.1.1
- Database PostgreSQL
git clone <repo url>
cd categories/
bundle install
rails db:create
rails db:migration
rails db:seed
rspec
use via https://petstore.swagger.io/
input to field 'Explore' link to json configuration builder https://categories-valerii.herokuapp.com/swagger
-
get https://categories-valerii.herokuapp.com/categories - getting all Categories with deep children Categories and Products including children Products
-
get https://categories-valerii.herokuapp.com/categories/1/products - getting first Category's Products by params 'page' and 'name_order' Category's Products include children's Products
-
get https://categories-valerii.herokuapp.com/swagger - builder json config for using on https://petstore.swagger.io/