Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
LibraryApp
Please create a React-JS application for the LibraryModule. The application has to offer the following views for the user interface: 1. BookRentalView 2. LibraryView The views have to be reachable for the user via a menu list at the left side of each view. The requirements for the 2 views are defined below. 1. The BookRentalView must contain the following fields: - name: FromDate type: DATE - name: Book type: Book - name: Library type: Library - name: Teacher type: Teacher - name: ReservationDate type: DATE - name: ToDate type: DATE - name: Student type: Student The data source for the [Book] select control should be loaded from the relative URL: "/AgeGroupService/book" (HTTP-GET) The data source for the [Teacher] select control should be loaded from the relative URL: "/StudentService/teacher" (HTTP-GET) The data source for the [Library] select control should be loaded from the relative URL: "/LibraryService/library" (HTTP-GET) The data source for the [Student] select control should be loaded from the relative URL: "/StudentService/student" (HTTP-GET) An existing BookRental entity should be loaded from the relative URL: "/LibraryService/bookrental/{id}" (HTTP-GET) If a new BookRental entity has been created, the new entity should be posted to the relative URL: "/LibraryService/bookrental" (HTTP-POST) If an existing BookRental entity has been updated, the modified entity should be sent to the relative URL: "/LibraryService/bookrental/{id}" (HTTP-PUT) If an existing BookRental entity has to be deleted, the following relative URL should be called: "/LibraryService/bookrental/{id}" (HTTP-DELETE) 2. The LibraryView must contain the following fields: - name: LibraryName type: STRING - name: Room type: Room The data source for the [Room] select control should be loaded from the relative URL: "/RoomService/room" (HTTP-GET) An existing Library entity should be loaded from the relative URL: "/LibraryService/library/{id}" (HTTP-GET) If a new Library entity has been created, the new entity should be posted to the relative URL: "/LibraryService/library" (HTTP-POST) If an existing Library entity has been updated, the modified entity should be sent to the relative URL: "/LibraryService/library/{id}" (HTTP-PUT) If an existing Library entity has to be deleted, the following relative URL should be called: "/LibraryService/library/{id}" (HTTP-DELETE) Add a HTML table to the view with the following BookRental columns: - column: Student - column: Library - column: FromDate - column: Teacher - column: ReservationDate - column: Book - column: ToDate The table should have the title "BookRentals" und the data must be loaded from the server with the following relative URL: "/LibraryService/bookrental/library/{id}"
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum