Skip to content

Pre-release v0.5.0 for front-end testing

Pre-release
Pre-release
Compare
Choose a tag to compare
@YanzheL YanzheL released this 22 May 09:34
· 109 commits to dev since this release
806a5dc

Changelog

  • Fixed bugs in payment verification.
  • Implemented GET /api/v1/payments/<ID>
  • Implemented GET /api/v1/payments?orderId=xxx
  • Implemented PATCH /api/v1/orders/<ID>/SHIP
  • Changed delivery confirmation to PATCH /api/v1/orders/<ID>/DELIVERY_CONFIRM

Usage

java "-Dspring.profiles.active=test" -jar api-gate-0.5.0-SNAPSHOT.jar

It will listen on localhost:8981. No database configuration required.

Using the following command If you need to customize server listening port.

java "-Dspring.profiles.active=test" "-Dserver.port=YOUR_PORT" -jar api-gate-0.5.0-SNAPSHOT.jar

Replace YOUR_PORT with an integer port number.

Initial Test Data

These data will be automatically loaded on start.

Users

  • 10 Sellers
    • Username test_user_seller_username_0 ~ test_user_seller_username_9

    • Password test_user_seller_PASSWORD_0 ~ test_user_seller_PASSWORD_9

    • Email test_user_seller_email_0@test.org ~ test_user_seller_email_9@test.org

  • 10 Customers
    • Username test_user_customer_username_0 ~ test_user_customer_username_9

    • Password test_user_customer_PASSWORD_0 ~ test_user_customer_PASSWORD_9

    • Email test_user_customer_email_0@test.org ~ test_user_customer_email_9@test.org

Products

  • id 1 ~ 10

  • OwnerId test_user_seller_username_0 ~ test_user_seller_username_9

Stocks

  • 10 Pending Stocks (inboundedAt == null)
    • id 1 ~ 10

    • OwnerId test_user_seller_username_0 ~ test_user_seller_username_9

    • ProductId 1 ~ 10

    • TotalQuantity 100000

  • 10 Inbounded Stocks (inboundedAt != null)
    • id 11 ~ 20

    • OwnerId test_user_seller_username_0 ~ test_user_seller_username_9

    • ProductId 1 ~ 10

    • TotalQuantity 100000

Addresses

  • id 1 ~ 10

  • OwnerId test_user_seller_username_0 ~ test_user_seller_username_9

  • id 11 ~ 20

  • OwnerId test_user_customer_username_0 ~ test_user_customer_username_9