Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
PurchaseListApp
Please create a React-JS application for the PurchaseListModule. The application has to offer the following views for the user interface: 1. DistributorView 2. PurchaseListView 3. PurchaseListItemView The views have to be reachable for the user via a menu list at the left side of each view. The requirements for the 3 views are defined below. 1. The DistributorView must contain the following fields: - name: DistributorInfo type: STRING - name: DistributorName type: STRING An existing Distributor entity should be loaded from the relative URL: "/PurchaseListService/distributor/{id}" (HTTP-GET) If a new Distributor entity has been created, the new entity should be posted to the relative URL: "/PurchaseListService/distributor" (HTTP-POST) If an existing Distributor entity has been updated, the modified entity should be sent to the relative URL: "/PurchaseListService/distributor/{id}" (HTTP-PUT) If an existing Distributor entity has to be deleted, the following relative URL should be called: "/PurchaseListService/distributor/{id}" (HTTP-DELETE) Add a HTML table to the view with the following PurchaseList columns: - column: PurchaseDate - column: Buyer - column: Distributor - column: BuyingTeacher The table should have the title "PurchaseLists" und the data must be loaded from the server with the following relative URL: "/PurchaseListService/purchaselist/distributor/{id}" 2. The PurchaseListView must contain the following fields: - name: PurchaseDate type: DATE - name: Buyer type: ExternalPerson - name: BuyingTeacher type: Teacher - name: Distributor type: Distributor The data source for the [Distributor] select control should be loaded from the relative URL: "/PurchaseListService/distributor" (HTTP-GET) The data source for the [Buyer] select control should be loaded from the relative URL: "/ExternalPersonService/externalperson" (HTTP-GET) The data source for the [BuyingTeacher] select control should be loaded from the relative URL: "/StudentService/teacher" (HTTP-GET) An existing PurchaseList entity should be loaded from the relative URL: "/PurchaseListService/purchaselist/{id}" (HTTP-GET) If a new PurchaseList entity has been created, the new entity should be posted to the relative URL: "/PurchaseListService/purchaselist" (HTTP-POST) If an existing PurchaseList entity has been updated, the modified entity should be sent to the relative URL: "/PurchaseListService/purchaselist/{id}" (HTTP-PUT) If an existing PurchaseList entity has to be deleted, the following relative URL should be called: "/PurchaseListService/purchaselist/{id}" (HTTP-DELETE) Add a HTML table to the view with the following PurchaseListItem columns: - column: PurchaseList - column: Price - column: FoodStuff - column: Amount The table should have the title "PurchaseListItems" und the data must be loaded from the server with the following relative URL: "/PurchaseListService/purchaselistitem/purchaselist/{id}" 3. The PurchaseListItemView must contain the following fields: - name: PurchaseList type: PurchaseList - name: Amount type: DOUBLE - name: FoodStuff type: FoodStuff - name: Price type: DOUBLE The data source for the [PurchaseList] select control should be loaded from the relative URL: "/PurchaseListService/purchaselist" (HTTP-GET) The data source for the [FoodStuff] select control should be loaded from the relative URL: "/FoodService/foodstuff" (HTTP-GET) An existing PurchaseListItem entity should be loaded from the relative URL: "/PurchaseListService/purchaselistitem/{id}" (HTTP-GET) If a new PurchaseListItem entity has been created, the new entity should be posted to the relative URL: "/PurchaseListService/purchaselistitem" (HTTP-POST) If an existing PurchaseListItem entity has been updated, the modified entity should be sent to the relative URL: "/PurchaseListService/purchaselistitem/{id}" (HTTP-PUT) If an existing PurchaseListItem entity has to be deleted, the following relative URL should be called: "/PurchaseListService/purchaselistitem/{id}" (HTTP-DELETE)
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum