Overview
Summary
Services
Contact
Donate
About
Imprint
Prompt for the
MessageThreadApp
Please create a React-JS application for the MessageThreadModule. The application has to offer the following views for the user interface: 1. CovidImpactView 2. FundingRoundInvestorView 3. MessageView 4. MessageThreadView 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 CovidImpactView must contain the following fields: - name: Company type: Company - name: Currency type: STRING - name: Market type: Market - name: MetricType type: STRING - name: Notes type: STRING - name: PeriodEnd type: DATE - name: PeriodStart type: DATE - name: Value type: DOUBLE The data source for the [Company] select control should be loaded from the relative URL: "/CompanyService/company" (HTTP-GET) The data source for the [Market] select control should be loaded from the relative URL: "/CountryService/market" (HTTP-GET) An existing CovidImpact entity should be loaded from the relative URL: "/MessageThreadService/covidimpact/{id}" (HTTP-GET) If a new CovidImpact entity has been created, the new entity should be posted to the relative URL: "/MessageThreadService/covidimpact" (HTTP-POST) If an existing CovidImpact entity has been updated, the modified entity should be sent to the relative URL: "/MessageThreadService/covidimpact/{id}" (HTTP-PUT) If an existing CovidImpact entity has to be deleted, the following relative URL should be called: "/MessageThreadService/covidimpact/{id}" (HTTP-DELETE) 2. The FundingRoundInvestorView must contain the following fields: - name: FundingRound type: FundingRound - name: Investor type: Investor The data source for the [FundingRound] select control should be loaded from the relative URL: "/CompanyService/fundinground" (HTTP-GET) The data source for the [Investor] select control should be loaded from the relative URL: "/CountryService/investor" (HTTP-GET) An existing FundingRoundInvestor entity should be loaded from the relative URL: "/MessageThreadService/fundingroundinvestor/{id}" (HTTP-GET) If a new FundingRoundInvestor entity has been created, the new entity should be posted to the relative URL: "/MessageThreadService/fundingroundinvestor" (HTTP-POST) If an existing FundingRoundInvestor entity has been updated, the modified entity should be sent to the relative URL: "/MessageThreadService/fundingroundinvestor/{id}" (HTTP-PUT) If an existing FundingRoundInvestor entity has to be deleted, the following relative URL should be called: "/MessageThreadService/fundingroundinvestor/{id}" (HTTP-DELETE) 3. The MessageView must contain the following fields: - name: Body type: STRING - name: IsSystemMessage type: BOOL - name: MessageThread type: MessageThread - name: MessageType type: STRING - name: Sender type: LONG - name: SentAt type: DATE The data source for the [MessageThread] select control should be loaded from the relative URL: "/MessageThreadService/messagethread" (HTTP-GET) An existing Message entity should be loaded from the relative URL: "/MessageThreadService/message/{id}" (HTTP-GET) If a new Message entity has been created, the new entity should be posted to the relative URL: "/MessageThreadService/message" (HTTP-POST) If an existing Message entity has been updated, the modified entity should be sent to the relative URL: "/MessageThreadService/message/{id}" (HTTP-PUT) If an existing Message entity has to be deleted, the following relative URL should be called: "/MessageThreadService/message/{id}" (HTTP-DELETE) 4. The MessageThreadView must contain the following fields: - name: CreatedAt type: DATE - name: Listing type: Listing The data source for the [Listing] select control should be loaded from the relative URL: "/ListingService/listing" (HTTP-GET) An existing MessageThread entity should be loaded from the relative URL: "/MessageThreadService/messagethread/{id}" (HTTP-GET) If a new MessageThread entity has been created, the new entity should be posted to the relative URL: "/MessageThreadService/messagethread" (HTTP-POST) If an existing MessageThread entity has been updated, the modified entity should be sent to the relative URL: "/MessageThreadService/messagethread/{id}" (HTTP-PUT) If an existing MessageThread entity has to be deleted, the following relative URL should be called: "/MessageThreadService/messagethread/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Message columns: - column: MessageType - column: Sender - column: SentAt - column: IsSystemMessage - column: Body - column: MessageThread The table should have the title "Messages" und the data must be loaded from the server with the following relative URL: "/MessageThreadService/message/messagethread/{id}"
Copy prompt
Overview
Summary
Services
Contact
Donate
About
Imprint