Overview
Summary
Contact
Donate
Imprint
Prompt for the
PromotionView
Please create a React-JS view called "PromotionView" for the fields of the Promotion entity. The PromotionView must contain the following fields: - name: Code type: STRING - name: Currency type: STRING - name: Description type: STRING - name: DiscountType type: STRING - name: DiscountValue type: DOUBLE - name: EndDate type: DATE - name: MaxRedemptions type: INT - name: StartDate type: DATE An existing Promotion entity should be loaded from the relative URL: "/StockListingService/promotion/{id}" (HTTP-GET) If a new Promotion entity has been created, the new entity should be posted to the relative URL: "/StockListingService/promotion" (HTTP-POST) If an existing Promotion entity has been updated, the modified entity should be sent to the relative URL: "/StockListingService/promotion/{id}" (HTTP-PUT) If an existing Promotion entity has to be deleted, the following relative URL should be called: "/StockListingService/promotion/{id}" (HTTP-DELETE) Add a HTML table to the view with the following TripPromotion columns: - column: AppliedAmount - column: Currency - column: Trip - column: Promotion The table should have the title "TripPromotions" und the data must be loaded from the server with the following relative URL: "/VehicleService/trippromotion/promotion/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint