62 lines
1.4 KiB
YAML
62 lines
1.4 KiB
YAML
# api test
|
|
capi_test:
|
|
path: /capi/test
|
|
controller: App\Controller\CAPI\TestController::test
|
|
|
|
|
|
# battery api
|
|
|
|
# find battery
|
|
capi_battery_find:
|
|
path: /capi/battery/{id}
|
|
controller: App\Controller\CAPI\BatteryController::find
|
|
methods: [GET]
|
|
|
|
# search battery
|
|
capi_battery_search:
|
|
path: /capi/battery/search
|
|
controller: App\Controller\CAPI\BatteryController::search
|
|
methods: [GET]
|
|
|
|
|
|
# warranty api
|
|
|
|
# check warranty by serial
|
|
capi_warranty_find:
|
|
path: /capi/warranty/{serial}
|
|
controller: App\Controller\CAPI\WarrantyController::find
|
|
methods: [GET]
|
|
|
|
# register battery
|
|
capi_warranty_register:
|
|
path: /capi/warranty
|
|
controller: App\Controller\CAPI\WarrantyController::register
|
|
methods: [POST]
|
|
|
|
# claim warranty
|
|
capi_warranty_claim:
|
|
path: /capi/warranty/{serial}
|
|
controller: App\Controller\CAPI\WarrantyController::claim
|
|
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]
|