api.md 4.0 KB

API Maps

Table of Contents

1. Home Tab

2. Home - Scan

  • 2-1 Get User's Cars: From Zustand
  • 2-2 Scan QR Code (Connector ID)

3. Home - My Booking

  • 3-1 Get Booking History (All Status)

4. Home - My Booking - New Booking

5. Home - My Booking - New Booking - Station Details

6. Home - My Booking - New Booking - Station Details - New Booking

7. Home - My Booking - New Booking - Station Details - New Booking - Confirm Booking - Payment Details (Wallet)

8. Charge Tab

Indent Order By Status of Complete & Incomplete

  • 8-1 Get Booking History (Up Coming One)

9. Charge Tab - Complete Order

Indent Order By Status of Complete & Incomplete

  • 9-1 Finish Order Manually by Order ID

10. My Car

11. Account Tab

  • 11-1 User Info: 1-1

12. Account - Wallet

  • 12-1 Get Remain Amount
  • 12-2 Get All Coupons: 7-2
  • 12-3 Top Up Value (QFPay)

13. Account - History (Record)

  • 13-1 Get Booking History (All Status): 3-1

14. Account - Apply Uber

  • 14-1 Upload Image & Bind User Relation

API Location

1. Home Tab

1-1 Get User Info

  • Path: /api/v1/clients/customer
  • Docs Url: http://192.168.1.33:12000/api#/Customer/UserController_getCustomer

4. Home - My Booking - New Booking

4-1 Get All Charge Stations

  • Path: /api/v1/clients/chargestations/resources/info
  • Docs Url: http://192.168.1.33:12000/api#/Charge%20Stations/ResourcesController_queryStationsInfo

5. Home - My Booking - New Booking - Station Details

5-1 Get Charge Station Info By ID

  • Path: /api/v1/clients/chargestations/resources/status
  • Docs Url: http://192.168.1.33:12000/api#/Charge%20Stations/ResourcesController_queryStationStatus

5-2 Get Business Hour

  • Path: /api/v1/clients/promotion/business_hour
  • Docs Url: http://192.168.1.33:12000/api#/Promotion/PromotionController_getAllBusinessHour

6. Home - My Booking - New Booking - Station Details - New Booking

6-1 Get Connectors Available Time By Station ID

  • Path: /api/v1/clients/reservation/connectors/{stationId}
  • Docs Url: http://192.168.1.33:12000/api#/Reservation/ReservationController_getConnectors

6-2 Get Charge Station Price by Station ID

(***Need Additional Feature: By Time)

  • Path: /api/v1/clients/promotion/price
  • Docs Url: http://192.168.1.33:12000/api#/Promotion/PromotionController_getPriceByStationID

7. Home - My Booking - New Booking - Station Details - New Booking - Confirm Booking - Payment Details (Wallet)

7-2 Get All Coupons

  • Path: /api/v1/clients/promotion/coupons/{uid?}
  • Docs Url: http://192.168.1.33:12000/api#/Promotion/PromotionController_getCouponByUID

10. My Car

10-1 Get User Cars

  • Path: /api/v1/clients/customer/car/cars
  • Docs Url: http://192.168.1.33:12000/api#/Public/CarController_getCarBrand

10-4 Set default car

  • Path: /api/v1/clients/customer/car/default
  • Docs Url: http://192.168.1.33:12000/api#/Car/CarController_putDefaultCar

10-5 Get Car Brand & Types

  • Path: /api/v1/public/client/car/brand
  • Docs Url: http://192.168.1.33:12000/api#/Public/CarController_getCarBrand