Do RESTful API Design Rules Have an Impact on the Understandability of Web APIs? A Web-Based Experiment with API Descriptions

05/12/2023
by   Justus Bogner, et al.
0

Context: Web APIs are one of the most used ways to expose application functionality on the Web, and their understandability is important for efficiently using the provided resources. While many API design rules exist, empirical evidence for the effectiveness of most rules is lacking. Objective: We therefore wanted to study 1) the impact of RESTful API design rules on understandability, 2) if rule violations are also perceived as more difficult to understand, and 3) if demographic attributes like REST-related experience have an influence on this. Method: We conducted a controlled Web-based experiment with 105 participants, from both industry and academia and with different levels of experience. Based on a crossover design, we studied 12 design rules using API snippets in two complementary versions: one that adhered to a "rule" and one that was a "violation" of this rule. Participants answered comprehension questions and rated the perceived difficulty. Results: For 11 of the 12 rules, we found that "violation" performed significantly worse than "rule" for the comprehension tasks. Regarding the subjective ratings, we found significant differences for 9 of the 12 rules, meaning that most violations were subjectively rated as more difficult to understand. Demographics played no role in the comprehension performance for "violation". Conclusions: Our results provide first empirical evidence for the importance of following design rules to improve the understandability of Web APIs, which is important for researchers, practitioners, and educators.

READ FULL TEXT

page 22

page 23

page 28

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
03/25/2022

Anchoring Code Understandability Evaluations Through Task Descriptions

In code comprehension experiments, participants are usually told at the ...
research
03/18/2019

Benchmarking Web API Quality - Revisited

Modern applications increasingly interact with web APIs - reusable compo...
research
03/01/2021

Visualizing Rule Sets: Exploration and Validation of a Design Space

Rule sets are often used in Machine Learning (ML) as a way to communicat...
research
02/19/2020

Tricking Johnny into Granting Web Permissions

We studied the web permission API dialog box in popular mobile and deskt...
research
09/19/2021

An Exploration And Validation of Visual Factors in Understanding Classification Rule Sets

Rule sets are often used in Machine Learning (ML) as a way to communicat...
research
03/12/2020

Jiskefet, a bookkeeping application for ALICE

A new bookkeeping system called Jiskefet is being developed for A Large ...

Please sign up or login with your details

Forgot password? Click here to reset