resq/config/routes/capi.yaml
2021-06-11 05:54:33 +00:00

180 lines
4.5 KiB
YAML

# api test
capi_test:
path: /capi/test
controller: App\Controller\CAPI\TestController::test
# battery api
# battery models
#capi_battery_models:
# path: /capi/battery_models
# controller: App\Controller\CAPI\BatteryController::getModels
# methods: [GET]
# battery models
capi_battery_brands:
path: /capi/battery_brands
controller: App\Controller\CAPI\BatteryController::getBrands
methods: [GET]
# batteries
capi_batteries:
path: /capi/batteries
controller: App\Controller\CAPI\BatteryController::getBatteries
methods: [GET]
# battery sizes
capi_battery_sizes:
path: /capi/battery_sizes
controller: App\Controller\CAPI\BatteryController::getSizes
methods: [GET]
# add battery
capi_battery_add:
path: /capi/batteries
controller: App\Controller\CAPI\BatteryController::addBattery
methods: [POST]
# vehicle api
capi_vehicle_mfgs:
path: /capi/vehicle_manufacturers
controller: App\Controller\CAPI\VehicleController::getManufacturers
methods: [GET]
capi_vehicle_list:
path: /capi/vehicles
controller: App\Controller\CAPI\VehicleController::list
methods: [GET]
capi_vehicle_by_mfg:
path: /capi/vehicle_manufacturer/{mfg_id}
controller: App\Controller\CAPI\VehicleController::getByManufacturer
methods: [GET]
# plate api
capi_plate_warranty:
path: /capi/plates/{plate_number}/warranties
controller: App\Controller\CAPI\WarrantyController::getPlateWarranties
methods: [GET]
# warranty api
# check warranty by serial
capi_warranty_find:
path: /capi/warranties/{serial}
controller: App\Controller\CAPI\WarrantyController::find
methods: [GET]
# register battery
capi_warranty_register:
path: /capi/warranties
controller: App\Controller\CAPI\WarrantyController::register
methods: [POST]
# claim warranty
capi_warranty_claim:
path: /capi/warranties/{id}/claim
controller: App\Controller\CAPI\WarrantyController::claim
methods: [POST]
# get warranties
capi_warranty_get_all:
path: /capi/warranties
controller: App\Controller\CAPI\WarrantyController::getAll
methods: [GET]
# edit warranty
capi_warranty_update:
path: /capi/warranties/{id}
controller: App\Controller\CAPI\WarrantyController::update
methods: [POST]
# cancel warranty
capi_warranty_cancel:
path: /capi/warranties/{id}/cancel
controller: App\Controller\CAPI\WarrantyController::cancel
methods: [GET]
# delete warranty
capi_warranty_delete:
path: /capi/warranties/{id}/delete
controller: App\Controller\CAPI\WarrantyController::delete
methods: [POST]
# set privacy policy of warranty
capi_warranty_privacy_policy:
path: /capi/warranties/{id}/privacypolicy
controller: App\Controller\CAPI\WarrantyController::setPrivacyPolicy
methods: [POST]
# get list of warranties given list of serials
capi_warranty_get_warranties_from_serials:
path: /capi/warranties_list
controller: App\Controller\CAPI\WarrantyController::getWarrantiesBySerialList
methods: [POST]
# customer vehicle api
# find customer vehicle by id
capi_cv_find_by_id:
path: /capi/customer_vehicle/id/{id}
controller: App\Controller\::findByID
methods: [GET]
# find customer vehicle by plate
capi_cv_find_by_plate:
path: /capi/customer_vehicle/plate/{plate}
controller: App\Controller\CAPI\CustomerVehicle::findByPlate
methods: [GET]
# register customer vehicle
capi_cv_register:
path: /capi/customer_vehicle
controller: App\Controller\CAPI\CustomerVehicle::register
methods: [POST]
# privacy policy
# get privacy policy by id
capi_privacy_policy:
path: /capi/privacy_policy/{id}
controller: App\Controller\CAPI\PrivacyPolicyController::getPrivacyPolicy
methods: [GET]
# customer
# register customer and customer vehicle
capi_customer_register:
path: /capi/quick_registration
controller: App\Controller\CAPI\CustomerController::register
methods: [POST]
# customer warranty api
capi_cwarr_check:
path: /capi/customer_warranty/{serial}
controller: App\Controller\CAPI\CustomerWarrantyController::check
methods: [GET]
capi_cwarr_register:
path: /capi/customer_warranty/{serial}
controller: App\Controller\CAPI\CustomerWarrantyController::register
methods: [POST]
# municipality
capi_municipality_list:
path: /capi/municipality
controller: App\Controller\CAPI\MunicipalityController::getAll
methods: [GET]
# dealer
capi_dealer_list:
path: /capi/dealers
controller: App\Controller\CAPI\DealerController::getAll
methods: [GET]