Test Case Title |
TC5.12 - Anonymous annotation via Smart City API and MicroApplications. |
Goal |
I can Exploit MicroApplications developed on the basis of the Advanced Smart City API for accessing to mobile app micro applications ready to use, and for embedding them on City Dashboards. Use the Advanced Smart City API, not only to get data but also to provide at the city comments, votes, pictures, annotations. See for example, the vote of a POI via Web App, the contributions are accessible via API of KB only when the moderator has accepted/validated. See the provided comments, ranks and images, as administrator, and as the user who provide them via my profile...., from web pages, and mobile. |
Prerequisites |
Using a PC or Mobile with a web browser. Access to Smart City API user manual. Access to the development tool kit exemplified. Using a PC or Mobile with a web browser. Contributions can reach the KB by using smart city API. For testing they can be provided via: (i) direct rest call, (ii) web app, (iii) micro application embedded into dashboard, (iv) mobile application. The following functionalities are available only for specific Snap4city users with specific privileges. |
Expected successful result |
Learn how to exploit HTML5 MicroApplications based on Advanced Smart City API to create a web and/or mobile application. To sew how comments, votes and images can be provided in the system. To see how they are logged and moderated. The contribution provided by an user and presently collected, while they are going to be collected in the user profile, and since now the user can monitor them from its account and mobile device. |
Steps |
Please note that some of the following links could be accessible only for registered users.
- To make an anonymous annotation via Smart City API through a MicroApplication the user must to connect on the following link: https://www.km4city.org/webapp-new/?coordinates=43.773066;11.256932&operation=annotation
- The show this page:
- To make an anonymous annotation on a service, the user click on the desired service and write his annotation on the box showed after the details of the service
- If the annotation is sent correctly a pop up is showed
- As these annotations are anonymous, they cannot be shown immediately and must be awaited for approval. When the annotation is approved, id the user performs a new request on the service the annotation is showed
From the server side they are collected
- Empowering the city users: collecting data from end users bidirectional data flow; votes, comments, images;
- votes and/or comments on a service can be added by making a request like the following: https://servicemap.disit.org/WebAppGrafo/api/v1/feedback/?service=...&stars=2&comment=a%20comment&uid=...
- a photo of a service can be added by posting it to http://servicemap.disit.org/WebAppGrafo/api/v1/photo/
with the uri identifying the service, the uid of the device adding it.
- comments, ranks, images, etc. This information is collected into the user profile.
- Comments provided by users can be accessed ad validated using url: https://servicemap.km4city.org/WebAppGrafo/comments.jsp (accessible only from intranet)
- You can access from your account into the VM of the Development Environment:
- and photos submitted can be validated using url: https://servicemap.km4city.org/WebAppGrafo/photo.jsp (accessible only from intranet)
- You can access from your account into the VM of the Development Environment:
-
-
- The Direct insertion for a POI of an image, comment and ranks from one URI, for Web app is possible. While, the direct access to this feature as MicroApplication is not yet available.
-