- Ruby version:
2.6.5
- System dependencies:
Postgress, Redis, Ruby, bunlle
- Configuration
bundle install
- Database creation
bundle exec rake db:create
- Database migration
bundle exec rake db:migrate
- How to run the tests
bundle exec rspec
GET /sidekiq
POST /api/v1/dealer_cars/:id/book
DELETE /api/v1/dealer_cars/destroy_list
GET /api/v1/dealer_cars
GET /api/v1/dealer_cars/:id
DELETE /api/v1/dealer_cars/:id
GET /api/v1/dealers/:dealer_id/reservations
GET /api/v1/dealers/:id/cars
POST /api/v1/dealers/upload_xml
GET /api/v1/dealers/:id
GET /api/v1/filters/marks/:mark_id/models/:model_id/modifications
GET /api/v1/filters/marks/:mark_id/models/:model_id/complectations
GET /api/v1/filters/marks/:mark_id/models
GET /api/v1/filters/marks
GET /api/v1/filters/dealer_cars
GET /api/v1/filters/extra_options
GET /api/v1/filters/dealers
GET /api/v1/filters/dealer_groups
GET /api/v1/filters/dealer_groups/:id/dealers
GET /api/v1/filters/cities?query=
GET /api/v1/filters/regions?query=
GET /api/v1/filters/regions/:id/cities?query=
GET /api/v1/current_user
GET /api/v1/current_location
GET /api/v1/admin/users
POST /api/v1/admin/users
GET /api/v1/admin/users/:id
PATCH /api/v1/admin/users/:id
PUT /api/v1/admin/users/:id
DELETE /api/v1/admin/users/:id
GET /api/v1/admin/reservations
GET /api/v1/admin/reservations/:id
GET /api/v1/admin/dealer_cars
POST /api/v1/admin/dealer_cars
GET /api/v1/admin/dealer_cars/:id
PATCH /api/v1/admin/dealer_cars/:id
PUT /api/v1/admin/dealer_cars/:id
DELETE /api/v1/admin/dealer_cars/:id
GET /api/v1/admin/cars
GET /api/v1/admin/cars/:id
PATCH /api/v1/admin/cars/:id
PUT /api/v1/admin/cars/:id
DELETE /api/v1/admin/cars/:id
GET /api/v1/admin/dealer_groups
POST /api/v1/admin/dealer_groups
GET /api/v1/admin/dealer_groups/:id
PATCH /api/v1/admin/dealer_groups/:id
DELETE /api/v1/admin/dealer_groups/:id
POST /api/v1/signup
POST /api/v1/session
POST /api/v1/refresh
mark_id=1
model_id=1
modification_id=1
complectation_id=1
body_type=Лифтбек
engine_hp[:min]=1
engine_hp[:max]=1
engine_volume[:min]=1
engine_volume[:max]=1
dealer_id=1
color=Белый
wheel=Левый
engine_type=Бензин
state=Отличное
new=1
year[:min]=1
year[:max]=1
price[:min]=1
price[:max]=1
run[:min]=1
run[:max]=1
region=Москва
city=Москва
- Импорт данных из xml словаря
CarImport.call(path)
- Импорт данных из xml словаря
DealerCarImport.call(path, dealer: Dealer.find(:id))
- Поиск регионов
Search::Region.call(query:)
- Поиск городов в регионе
Search::City.call(query:, region_id:)
DealerCarUploadJob