## Appendix B Java Code Snippets
```
<htmllang=\"en\"xmlns:th=\"[[http://www.thymeleaf.org](http://www.thymeleaf.org)]([http://www.thymeleaf.org](http://www.thymeleaf.org))> <head> <metacharset=\"ISO-8859-1\"> <title>myMeasurementService-Measurements</title> </head> <body> <h2>Here will be listed/handled the measurements</h2> <tablestyle=\"border:_1 px_solid_black;width:_95%;\"> <tr> <td>id</td> <td> <td>sensorId</td> <td>value</td> <td>unit</td> <td>type</td> <td>time</td> </tr> <trh:each=\"measurement:_$measurements)\"> <tdth:text=\"$measurement.id|\">id</td> <tdth:text=\"$measurement.sensorId|\">sensorId</td> <tdth:text=\"$measurement.value|\">value</td> <tdth:text=\"$measurement.unit|\">unit</td> <tdth:text=\"$measurement.type|\">type</td> <tdth:text=\"$measurement.time|\">time</td> </tr> </table> </body> </html>
```

Listing 12: Dynamic page Thymeleaf-based for UI with connection to data model.

```
<htmllang=\"en\"xmlns:th=\"[[http://www.thymeleaf.org](http://www.thymeleaf.org)]([http://www.thymeleaf.org](http://www.thymeleaf.org))> <head> <metacharset=\"ISO-8859-1\"> <title>myMeasurementService-Measurements</title> </head> <body> <h2>Here will be listed/handled the measurements</h2> <tablestyle=\"border:_1 px_solid_black;width:_95%;\"> <tr> <td>id</td> <td>sensorId</td> <td>value</td> <td>unit</td> <td>type</td> <td>time</td> </tr> <trh:each=\"measurement:_$measurements)\"> <tdth:text=\"$measurement.id|\">id</td> <tdth:text=\"$measurement.sensorId|\">sensorId</td> <tdth:text=\"$measurement.value|\">value</td> <tdth:text=\"$measurement.unit|\">unit</td> <tdth:text=\"$measurement.type|\">type</td> <tdth:text=\"$measurement.time|\">time</td> </tr> </table> </body> </html>
```

Listing 13: Endpoint for microservice access. ## References

* [PERSON] et al. (2016) [PERSON]; [PERSON]; [PERSON] Software reliability modeling based on ISO/IEC SQuaRE. _Inf. Softw. Technol._**2016**, _70_, 18-29. [CrossRef]
* [PERSON] et al. (2008) [PERSON]; [PERSON] Empirical studies of agile software development: A systematic review. _Inf. Softw. Technol._**2008**, _50_, 833-859. [CrossRef]* [PERSON] et al. (2011) [PERSON]; [PERSON]; [PERSON] Identifying relevant studies in software engineering. _Inf. Softw. Technol._**2011**, 53, 625-637. [CrossRef]
* [PERSON] et al. (2018) [PERSON]; [PERSON]; [PERSON] The pains and gains of microservices: A systematic grey literature review. _J. Syst. Softw._**2018**, 146, 215-232. [CrossRef]
* Open Authorization (OAuth) (2022) Open Authorization (OAuth). Available online: [[https://oauth.net/getting-started](https://oauth.net/getting-started)]([https://oauth.net/getting-started](https://oauth.net/getting-started)) (accessed on 6 December 2022). * [PERSON] and [PERSON] (2018) [PERSON]; [PERSON] Internet of Things (IoT) cybersecurity research: A review of current research topics. _IEEE Internet Things J._**2018**, 6, 2103-2115. [CrossRef]
* [PERSON] et al. (2021) [PERSON]; [PERSON]; [PERSON] The future of artificial intelligence in cybersecurity: A comprehensive survey. _EAI Endorsed Trans. Cract. Technol._**2021**, \(8\), e3. [CrossRef]
* [PERSON] et al. (2022) [PERSON]; [PERSON]; [PERSON]; [PERSON] Artificial Intelligence for Cybersecurity: Recent Advancements, Challenges and Opportunities. In _Robotics and AI for Cybersecurity and Critical Infrastructure in Smart Cities_; Springer: Berlin/Heidelberg, Germany, 2022; pp. 73-88. [CrossRef]
* [PERSON] et al. (2022) [PERSON] [PERSON]; [PERSON]; [PERSON] [PERSON] Microservices in IoT Middleware Architectures: Architecture, Trends, and Challenges. In _IoT with Smart Systems. Smart Innovation, Systems and Technologies_; Springer: Singapore, 2022; pp. 381-395. * [PERSON] (2018) [PERSON] A mapping study on microservice architectures of Internet of Things and cloud computing solutions. In Proceedings of the 7 th Mediterranean Conference on Embedded Computing (MECO), Budva, Montenegro, 10-14 June 2018; pp. 1-4. [CrossRef]
* [PERSON] et al. (2022) [PERSON]; [PERSON]; [PERSON]; [PERSON]; [PERSON]; [PERSON] [PERSON] Microservice security: A systematic literature review. _PeerJ Comput.