Overview
Summary
Contact
Donate
Imprint
Prompt for the
PhotoView
Please create a React-JS view called "PhotoView" for the fields of the Photo entity. The PhotoView must contain the following fields: - name: Description type: STRING - name: IsApproved type: BOOL - name: PhotographerName type: STRING - name: Source type: STRING - name: TakenUtc type: DATE - name: Title type: STRING - name: UploadedUtc type: DATE - name: Url type: STRING - name: UserAccount type: UserAccount - name: Vessel type: Vessel The data source for the [Vessel] select control should be loaded from the relative URL: "/VesselService/vessel" (HTTP-GET) The data source for the [UserAccount] select control should be loaded from the relative URL: "/UserAccountService/useraccount" (HTTP-GET) An existing Photo entity should be loaded from the relative URL: "/PhotoService/photo/{id}" (HTTP-GET) If a new Photo entity has been created, the new entity should be posted to the relative URL: "/PhotoService/photo" (HTTP-POST) If an existing Photo entity has been updated, the modified entity should be sent to the relative URL: "/PhotoService/photo/{id}" (HTTP-PUT) If an existing Photo entity has to be deleted, the following relative URL should be called: "/PhotoService/photo/{id}" (HTTP-DELETE) Add a HTML table to the view with the following PhotoRating columns: - column: Photo - column: UserAccount - column: RatingValue - column: RatedUtc The table should have the title "PhotoRatings" und the data must be loaded from the server with the following relative URL: "/PhotoService/photorating/photo/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint