Add new route file for resqapi. #591
This commit is contained in:
parent
39eb6e6dba
commit
642803217d
1 changed files with 193 additions and 0 deletions
193
config/routes/resqapi.yaml
Normal file
193
config/routes/resqapi.yaml
Normal file
|
|
@ -0,0 +1,193 @@
|
||||||
|
# resqapi aka mobile api
|
||||||
|
|
||||||
|
# customer/registration-related endpoints
|
||||||
|
resqapi_register:
|
||||||
|
path: /resqapi/register
|
||||||
|
controller: App\Controller\ResqAPI\CustomerController::register
|
||||||
|
methods: [POST]
|
||||||
|
|
||||||
|
resqapi_confirm:
|
||||||
|
path: /resqapi/number_confirm
|
||||||
|
controller: App\Controller\ResqAPI\CustomerController::confirmNumber
|
||||||
|
methods: [POST]
|
||||||
|
|
||||||
|
resqapi_validate:
|
||||||
|
path: /resqapi/code_validate
|
||||||
|
controller: App\Controller\ResqAPI\CustomerController::validateCode
|
||||||
|
methods: [POST]
|
||||||
|
|
||||||
|
resqapi_info_get:
|
||||||
|
path: /resqapi/info
|
||||||
|
controller: App\Controller\ResqAPI\CustomerController::getInfo
|
||||||
|
methods: [GET]
|
||||||
|
|
||||||
|
resqapi_info_update:
|
||||||
|
path: /resqapi/info
|
||||||
|
controller: App\Controller\ResqAPI\CustomerController::updateInfo
|
||||||
|
methods: [POST]
|
||||||
|
|
||||||
|
resqapi_status:
|
||||||
|
path: /resqapi/status
|
||||||
|
controller: App\Controller\ResqAPI\CustomerController::getStatus
|
||||||
|
methods: [GET]
|
||||||
|
|
||||||
|
resqapi_resend_code:
|
||||||
|
path: /resqapi/resend_code
|
||||||
|
controller: App\Controller\ResqAPI\CustomerController:resendCode
|
||||||
|
methods: [POST]
|
||||||
|
|
||||||
|
resqapi_version_check:
|
||||||
|
path: /resqapi/version_check
|
||||||
|
controller: App\Controller\ResqAPI\CustomerController::versionCheck
|
||||||
|
methods: [GET]
|
||||||
|
|
||||||
|
resqapi_device_id:
|
||||||
|
path: /resqapi/device_id
|
||||||
|
controller: App\Controller\ResqAPI\CustomerController:updateDeviceID
|
||||||
|
methods: [POST]
|
||||||
|
|
||||||
|
resqapi_privacy:
|
||||||
|
path: /resqapi/privacy
|
||||||
|
controller: App\Controller\ResqAPI\CustomerController:privacySettings
|
||||||
|
methods: [POST]
|
||||||
|
|
||||||
|
# vehicle manufacturer and vehicle endpoints
|
||||||
|
resqapi_vehicle_mfg_list:
|
||||||
|
path: /resqapi/vehicle/mfgs
|
||||||
|
controller: App\Controller\ResqAPI\VehicleController::listVehicleManufacturers
|
||||||
|
methods: [GET]
|
||||||
|
|
||||||
|
resqapi_vehicle_make_list:
|
||||||
|
path: /resqapi/vehicle/mfgs/{mfg_id}/makes
|
||||||
|
controller: App\Controller\ResqAPI\VehicleController::listVehicleMakes
|
||||||
|
methods: [GET]
|
||||||
|
|
||||||
|
# customer vehicle endpoints
|
||||||
|
resqapi_cust_vehicle_add:
|
||||||
|
path: /resqapi/vehicles
|
||||||
|
controller: App\Controller\ResqAPI\CustomerVehicleController::addVehicle
|
||||||
|
methods: [POST]
|
||||||
|
|
||||||
|
resqapi_cust_vehicle_update:
|
||||||
|
path: /resqapi/vehicles/{id}
|
||||||
|
controller: App\Controller\ResqAPI\CustomerVehicleController::updateVehicle
|
||||||
|
methods: [POST]
|
||||||
|
|
||||||
|
resqapi_cust_vehicle_list:
|
||||||
|
path: /resqapi/vehicles
|
||||||
|
controller: App\Controller\ResqAPI\CustomerVehicleController::listVehicles
|
||||||
|
methods: [GET]
|
||||||
|
|
||||||
|
# promo endpoints
|
||||||
|
resqapi_promo_list:
|
||||||
|
path: /resqapi/promos
|
||||||
|
controller: App\Controller\ResqAPI\PromoController::listPromos
|
||||||
|
methods: [GET]
|
||||||
|
|
||||||
|
# battery endpoints
|
||||||
|
resqapi_battery_list:
|
||||||
|
path: /resqapi/vehicles/{vid}/compatible_batteries
|
||||||
|
controller: App\Controller\ResqAPI\BatteryController::getCompatibleBatteries
|
||||||
|
methods: [GET]
|
||||||
|
|
||||||
|
# service endpoints
|
||||||
|
resqapi_service_list:
|
||||||
|
path: /resqapi/services
|
||||||
|
controller: App\Controller\ResqAPI\ServiceController:listServices
|
||||||
|
methods: [GET]
|
||||||
|
|
||||||
|
# partner endpoints
|
||||||
|
resqapi_partner_info:
|
||||||
|
path: /resqapi/partners/{pid}
|
||||||
|
controller: App\Controller\ResqAPI\PartnerController:getPartnerInformation
|
||||||
|
methods: [GET]
|
||||||
|
|
||||||
|
resqapi_partner:
|
||||||
|
path: /resqapi/partners
|
||||||
|
controller: App\Controller\ResqAPI\PartnerController:getClosestPartners
|
||||||
|
methods: [GET]
|
||||||
|
|
||||||
|
resqapi_partner_review:
|
||||||
|
path: /resqapi/partners/{pid}/review
|
||||||
|
controller: App\Controller\ResqAPI\PartnerController:reviewPartner
|
||||||
|
methods: [POST]
|
||||||
|
|
||||||
|
# rider endpoints
|
||||||
|
resq_rider_status:
|
||||||
|
path: /resqapi/rider
|
||||||
|
controller: App\Controller\ResqAPI\RiderController::getRiderStatus
|
||||||
|
methods: [GET]
|
||||||
|
|
||||||
|
resqapi_rider_rating_add:
|
||||||
|
path: /resqapi/rider_rating
|
||||||
|
controller: App\Controller\ResqAPI\RiderController::addRiderRating
|
||||||
|
methods: [POST]
|
||||||
|
|
||||||
|
# job order endpoints
|
||||||
|
resqapi_jo_request:
|
||||||
|
path: /resqapi/job_order
|
||||||
|
controller: App\Controller\ResqAPI\JobOrderController::requestJobOrder
|
||||||
|
methods: [POST]
|
||||||
|
|
||||||
|
resqapi_estimate:
|
||||||
|
path: /resqapi/estimate
|
||||||
|
controller: App\Controller\ResqAPI\JobOrderController::getEstimate
|
||||||
|
methods: [POST]
|
||||||
|
|
||||||
|
resqapi_ongoing:
|
||||||
|
path: /resqapi/job_order/ongoing
|
||||||
|
controller: App\Controller\ResqAPI\JobOrderController::getOngoing
|
||||||
|
methods: [GET]
|
||||||
|
|
||||||
|
resqapi_jo_cancel:
|
||||||
|
path: /resqapi/job_order/cancel
|
||||||
|
controller: App\Controller\ResqAPI\JobOrderController:cancelJobOrder
|
||||||
|
methods: [POST]
|
||||||
|
|
||||||
|
resqapi_jo_history:
|
||||||
|
path: /resqapi/job_order/history
|
||||||
|
controller: App\Controller\ResqAPI\JobOrderController:getJOHistory
|
||||||
|
methods: [GET]
|
||||||
|
|
||||||
|
resqapi_jo_invoice:
|
||||||
|
path: /resqapi/job_order/invoice
|
||||||
|
controller: App\Controller\ResqAPI\JobOrderController:getJOInvoice
|
||||||
|
methods: [GET]
|
||||||
|
|
||||||
|
resqapi_location_support:
|
||||||
|
path: /resqapi/location_support
|
||||||
|
controller: App\Controller\ResqAPI\JobOrderController:locationSupport
|
||||||
|
methods: [GET]
|
||||||
|
|
||||||
|
resqapi_nearest_hub_slots:
|
||||||
|
path: /resqapi/hub_slots
|
||||||
|
controller: App\Controller\ResqAPI\JobOrderController::getNearestHubAndSlots
|
||||||
|
methods: [GET]
|
||||||
|
|
||||||
|
resqapi_new_jo_request:
|
||||||
|
path: /resqapi/new_job_order
|
||||||
|
controller: App\Controller\ResqAPI\JobOrderController::newRequestJobOrder
|
||||||
|
methods: [POST]
|
||||||
|
|
||||||
|
resqapi_schedule_option_status:
|
||||||
|
path: /resqapi/schedule_option_status
|
||||||
|
controller: App\Controller\ResqAPI\JobOrderController::scheduleOptionStatus
|
||||||
|
methods: [GET]
|
||||||
|
|
||||||
|
# warranty endpoints
|
||||||
|
resqapi_activate_warranty:
|
||||||
|
path: /resqapi/activate_warranty
|
||||||
|
controller: App\Controller\ResqAPI\WarrantyController:activateWarranty
|
||||||
|
methods: [POST]
|
||||||
|
|
||||||
|
# paperless warranty / qr code
|
||||||
|
resqapi_warr_serial_check:
|
||||||
|
path: /resqapi/warranty/{serial}
|
||||||
|
controller: App\Controller\ResqAPI\WarrantyController::warrantyCheck
|
||||||
|
methods: [GET]
|
||||||
|
|
||||||
|
resqapi_warr_serial_register:
|
||||||
|
path: /resqapi/warranty/{serial}
|
||||||
|
controller: App\Controller\ResqAPI\WarrantyController::warrantyRegister
|
||||||
|
methods: [POST]
|
||||||
|
|
||||||
Loading…
Reference in a new issue