Overview
Summary
Contact
Donate
Imprint
Prompt for the
SustainabilityInitiativeApp
Please create a React-JS application for the SustainabilityInitiativeModule. The application has to offer the following views for the user interface: 1. EventView 2. ExchangeMembershipInInitiativeView 3. MergerAttemptView 4. SustainabilityInitiativeView The views have to be reachable for the user via a menu list at the left side of each view. The requirements for the 4 views are defined below. 1. The EventView must contain the following fields: - name: Description type: STRING - name: EventDate type: DATE - name: EventType type: STRING - name: Exchange type: Exchange - name: Source type: STRING The data source for the [Exchange] select control should be loaded from the relative URL: "/ExchangeService/exchange" (HTTP-GET) An existing Event entity should be loaded from the relative URL: "/SustainabilityInitiativeService/event/{id}" (HTTP-GET) If a new Event entity has been created, the new entity should be posted to the relative URL: "/SustainabilityInitiativeService/event" (HTTP-POST) If an existing Event entity has been updated, the modified entity should be sent to the relative URL: "/SustainabilityInitiativeService/event/{id}" (HTTP-PUT) If an existing Event entity has to be deleted, the following relative URL should be called: "/SustainabilityInitiativeService/event/{id}" (HTTP-DELETE) 2. The ExchangeMembershipInInitiativeView must contain the following fields: - name: Exchange type: Exchange - name: JoinDate type: DATE - name: SustainabilityInitiative type: SustainabilityInitiative The data source for the [Exchange] select control should be loaded from the relative URL: "/ExchangeService/exchange" (HTTP-GET) The data source for the [SustainabilityInitiative] select control should be loaded from the relative URL: "/SustainabilityInitiativeService/sustainabilityinitiative" (HTTP-GET) An existing ExchangeMembershipInInitiative entity should be loaded from the relative URL: "/SustainabilityInitiativeService/exchangemembershipininitiative/{id}" (HTTP-GET) If a new ExchangeMembershipInInitiative entity has been created, the new entity should be posted to the relative URL: "/SustainabilityInitiativeService/exchangemembershipininitiative" (HTTP-POST) If an existing ExchangeMembershipInInitiative entity has been updated, the modified entity should be sent to the relative URL: "/SustainabilityInitiativeService/exchangemembershipininitiative/{id}" (HTTP-PUT) If an existing ExchangeMembershipInInitiative entity has to be deleted, the following relative URL should be called: "/SustainabilityInitiativeService/exchangemembershipininitiative/{id}" (HTTP-DELETE) 3. The MergerAttemptView must contain the following fields: - name: AnnouncementDate type: DATE - name: BidderExchange type: Exchange - name: PartnerCompany type: Company - name: ReasonWithdrawn type: STRING - name: Status type: STRING - name: TargetExchange type: Exchange - name: WithdrawnDate type: DATE The data source for the [PartnerCompany] select control should be loaded from the relative URL: "/CompanyService/company" (HTTP-GET) The data source for the [BidderExchange] select control should be loaded from the relative URL: "/ExchangeService/exchange" (HTTP-GET) The data source for the [TargetExchange] select control should be loaded from the relative URL: "/ExchangeService/exchange" (HTTP-GET) An existing MergerAttempt entity should be loaded from the relative URL: "/SustainabilityInitiativeService/mergerattempt/{id}" (HTTP-GET) If a new MergerAttempt entity has been created, the new entity should be posted to the relative URL: "/SustainabilityInitiativeService/mergerattempt" (HTTP-POST) If an existing MergerAttempt entity has been updated, the modified entity should be sent to the relative URL: "/SustainabilityInitiativeService/mergerattempt/{id}" (HTTP-PUT) If an existing MergerAttempt entity has to be deleted, the following relative URL should be called: "/SustainabilityInitiativeService/mergerattempt/{id}" (HTTP-DELETE) 4. The SustainabilityInitiativeView must contain the following fields: - name: Description type: STRING - name: LaunchDate type: DATE - name: Name type: STRING - name: SponsorOrganization type: STRING An existing SustainabilityInitiative entity should be loaded from the relative URL: "/SustainabilityInitiativeService/sustainabilityinitiative/{id}" (HTTP-GET) If a new SustainabilityInitiative entity has been created, the new entity should be posted to the relative URL: "/SustainabilityInitiativeService/sustainabilityinitiative" (HTTP-POST) If an existing SustainabilityInitiative entity has been updated, the modified entity should be sent to the relative URL: "/SustainabilityInitiativeService/sustainabilityinitiative/{id}" (HTTP-PUT) If an existing SustainabilityInitiative entity has to be deleted, the following relative URL should be called: "/SustainabilityInitiativeService/sustainabilityinitiative/{id}" (HTTP-DELETE) Add a HTML table to the view with the following ExchangeMembershipInInitiative columns: - column: SustainabilityInitiative - column: JoinDate - column: Exchange The table should have the title "ExchangeMembershipInInitiatives" und the data must be loaded from the server with the following relative URL: "/SustainabilityInitiativeService/exchangemembershipininitiative/sustainabilityinitiative/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint