Skip to content

Latest commit

 

History

History
136 lines (84 loc) · 5.36 KB

DevelopLog.md

File metadata and controls

136 lines (84 loc) · 5.36 KB

Deadline1:0:00 23/5/2021

Deadline2:12:00 23/5/2021 10h

Deadline3:24:00 23/5/2021 22h

Doc

Free Resources

Server

Database

pocket_client
id name contact citizen_id create_on last_modified
pocket_vehicle
id name model_year create_on last_modified
pocket_vehicle_description
id vehicle_id description create_on last_modified
pocket_vehicle_stock
id sku_guid vehicle_id service_day_count free_day_count create_on last_modified
pocket_price_frequency
id price_frequency create_on last_modified
pocket_rental_schedule
id sku_guid start_time end_time schedule_price rental_order_id create_on last_modified
pocket_sku_price
id sku_guid price_frequency_id price create_on last_modified
pocket_rental_order
id client_id signing_time total_price create_on last_modified
pocket_sku
id sku_guid vehicle_id color create_on last_modified
  • flyway works 1621680359937

  • swagger works (test API)

    1621700877963

Azure

1621611197623

Swagger

http://localhost:8080/swagger-ui.html

API Design

User Story with Priority

  • [] sign up/sign in

  • [] view the most popular sku

  • view all vehicle

  • view all SKUs for one vehicle

  • [v] view available vehicle for selected rental period

  • [v] choose one sku and show the price, change rental period and show the new price

  • [v] add the {SKU + period} into order

  • [v] show order

  • [] view other SKU

  • [] take an order, waiting paid

  • [] call OtherAPI to finish payment

API

set the userID in the http header

GET /vehicles?from={start_day}&end={end_day}

GET /sku/{skuid}/price?from={start_day}&end={end_day}

POST /orders {body} PUT /orders/{orderId} {body}

GET /orders

Deployment Guide

https://docs.microsoft.com/zh-cn/azure/app-service/deploy-local-git?tabs=portal

Final

Git Repository: https://github.com/ParrySMS/PocketRentalCompany/tree/develop

Solution design document: https://github.com/ParrySMS/PocketRentalCompany/blob/develop/software%20design%20document.md

API Spec Swagger: http://demo-company.azurewebsites.net/swagger-ui.html#/

Test cases (Unit test): https://github.com/ParrySMS/PocketRentalCompany/tree/develop/pocket-rental-company/src/test/java/com/pocket/retal

Tech introduction doc: https://github.com/ParrySMS/PocketRentalCompany/blob/develop/README.md

More Details: