Overview
Summary
Contact
Donate
Imprint
Prompt for the
CompanyApp
Please create a React-JS application for the CompanyModule. The application has to offer the following views for the user interface: 1. CompanyView 2. ContentAvailabilityView 3. LicenseAgreementView 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 CompanyView must contain the following fields: - name: Description type: STRING - name: FoundedDate type: DATE - name: HeadquartersCity type: STRING - name: HeadquartersCountry type: STRING - name: Name type: STRING - name: Website type: STRING An existing Company entity should be loaded from the relative URL: "/CompanyService/company/{id}" (HTTP-GET) If a new Company entity has been created, the new entity should be posted to the relative URL: "/CompanyService/company" (HTTP-POST) If an existing Company entity has been updated, the modified entity should be sent to the relative URL: "/CompanyService/company/{id}" (HTTP-PUT) If an existing Company entity has to be deleted, the following relative URL should be called: "/CompanyService/company/{id}" (HTTP-DELETE) Add a HTML table to the view with the following LicenseAgreement columns: - column: LicensorCompany - column: IsExclusive - column: LicenseEnd - column: LicenseStart - column: TerritoryScope - column: Title The table should have the title "LicenseAgreements" und the data must be loaded from the server with the following relative URL: "/CompanyService/licenseagreement/licensorcompany/{id}" Add a HTML table to the view with the following Channel columns: - column: Name - column: IsLive - column: Description - column: ProviderCompany - column: Website The table should have the title "Channels" und the data must be loaded from the server with the following relative URL: "/ChannelService/channel/providercompany/{id}" Add a HTML table to the view with the following Service columns: - column: LaunchDate - column: Name - column: OwnerCompany - column: Type - column: Description The table should have the title "Services" und the data must be loaded from the server with the following relative URL: "/ServiceService/service/ownercompany/{id}" 2. The ContentAvailabilityView must contain the following fields: - name: AvailableFrom type: DATE - name: AvailableTo type: DATE - name: Country type: Country - name: IsIncludedWithSubscription type: BOOL - name: IsTransactional type: BOOL - name: Notes type: STRING - name: Title type: Title The data source for the [Country] select control should be loaded from the relative URL: "/TitleService/country" (HTTP-GET) The data source for the [Title] select control should be loaded from the relative URL: "/TitleService/title" (HTTP-GET) An existing ContentAvailability entity should be loaded from the relative URL: "/CompanyService/contentavailability/{id}" (HTTP-GET) If a new ContentAvailability entity has been created, the new entity should be posted to the relative URL: "/CompanyService/contentavailability" (HTTP-POST) If an existing ContentAvailability entity has been updated, the modified entity should be sent to the relative URL: "/CompanyService/contentavailability/{id}" (HTTP-PUT) If an existing ContentAvailability entity has to be deleted, the following relative URL should be called: "/CompanyService/contentavailability/{id}" (HTTP-DELETE) 3. The LicenseAgreementView must contain the following fields: - name: IsExclusive type: BOOL - name: LicenseEnd type: DATE - name: LicenseStart type: DATE - name: LicensorCompany type: Company - name: TerritoryScope type: STRING - name: Title type: Title The data source for the [LicensorCompany] select control should be loaded from the relative URL: "/CompanyService/company" (HTTP-GET) The data source for the [Title] select control should be loaded from the relative URL: "/TitleService/title" (HTTP-GET) An existing LicenseAgreement entity should be loaded from the relative URL: "/CompanyService/licenseagreement/{id}" (HTTP-GET) If a new LicenseAgreement entity has been created, the new entity should be posted to the relative URL: "/CompanyService/licenseagreement" (HTTP-POST) If an existing LicenseAgreement entity has been updated, the modified entity should be sent to the relative URL: "/CompanyService/licenseagreement/{id}" (HTTP-PUT) If an existing LicenseAgreement entity has to be deleted, the following relative URL should be called: "/CompanyService/licenseagreement/{id}" (HTTP-DELETE)
Copy prompt
Overview
Summary
Contact
Donate
Imprint