Assessing the Linguistic Quality of REST APIs for IoT Applications

05/13/2022
by   Francis Palma, et al.
0

Internet of Things (IoT) is a growing technology that relies on connected 'things' that gather data from peer devices and send data to servers via APIs (Application Programming Interfaces). The design quality of those APIs has a direct impact on their understandability and reusability. This study focuses on the linguistic design quality of REST APIs for IoT applications and assesses their linguistic quality by performing the detection of linguistic patterns and antipatterns in REST APIs for IoT applications. Linguistic antipatterns are considered poor practices in the naming, documentation, and choice of identifiers. In contrast, linguistic patterns represent best practices to APIs design. The linguistic patterns and their corresponding antipatterns are hence contrasting pairs. We propose the SARAv2 (Semantic Analysis of REST APIs version two) approach to perform syntactic and semantic analyses of REST APIs for IoT applications. Based on the SARAv2 approach, we develop the REST-Ling tool and empirically validate the detection results of nine linguistic antipatterns. We analyse 19 REST APIs for IoT applications. Our detection results show that the linguistic antipatterns are prevalent and the REST-Ling tool can detect linguistic patterns and antipatterns in REST APIs for IoT applications with an average accuracy of over 80 the detection of linguistic antipatterns on average in the order of seconds, i.e., 8.396 seconds. We found that APIs generally follow good linguistic practices, although the prevalence of poor practices exists.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
09/08/2023

Testing Real-World Healthcare IoT Application: Experiences and Lessons Learned

Healthcare Internet of Things (IoT) applications require rigorous testin...
research
02/19/2019

Zest: REST over ZeroMQ

In this paper, we introduce Zest (REST over ZeroMQ), a middleware techno...
research
04/25/2020

Best Practices for IoT Security: What Does That Even Mean?

Best practices for Internet of Things (IoT) security have recently attra...
research
02/29/2020

An Experimental Study of Network Coded REST HTTP in Dynamic IoT Systems

REST HTTP is the communication protocol of choice for software developer...
research
06/08/2020

A Heuristically Self-Organised Linguistic Attribute Deep Learning in Edge Computing For IoT Intelligence

With the development of Internet of Things (IoT), IoT intelligence becom...
research
07/30/2021

Which RESTful API Design Rules Are Important and How Do They Improve Software Quality? A Delphi Study with Industry Experts

Several studies analyzed existing Web APIs against the constraints of RE...
research
08/01/2022

Eficiency of REST and gRPC realizing communication tasks in microservice-based ecosystems

The aim of this contribution is to analyse practical aspects of the use ...

Please sign up or login with your details

Forgot password? Click here to reset