Do RESTful API Design Rules Have an Impact on the Understandability of
Web APIs? A Web-Based Experiment with API Descriptions
- URL: http://arxiv.org/abs/2305.07346v3
- Date: Thu, 20 Jul 2023 14:14:19 GMT
- Title: Do RESTful API Design Rules Have an Impact on the Understandability of
Web APIs? A Web-Based Experiment with API Descriptions
- Authors: Justus Bogner, Sebastian Kotstein, Timo Pfaff
- Abstract summary: We conducted a controlled Web-based hybrid experiment with 105 participants.
We studied 12 design rules using API snippets in two versions: one that adhered to a "rule" and one that was a "violation" of this rule.
For 11 of the 12 rules, we found that "violation" performed significantly worse than "rule" for the comprehension tasks.
- Score: 4.26177272224368
- License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/
- Abstract: 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 hybrid between a crossover and a between-subjects 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.
Related papers
- Developer Perspectives on REST API Usability: A Study of REST API Guidelines [4.2711788353513835]
We present an interview study with 16 REST API experts from industry.<n>We identify eight factors influencing REST API usability, among which the adherence to conventions is the most important.
arXiv Detail & Related papers (2026-01-23T12:45:01Z) - How Does Users' App Knowledge Influence the Preferred Level of Detail and Format of Software Explanations? [2.423517761302909]
This study investigates factors influencing users' preferred level of detail and the form of an explanation in software.
Results indicate that users prefer moderately detailed explanations in short text formats.
Our results show that explanation preferences are weakly influenced by app-specific knowledge but shaped by demographic and psychological factors.
arXiv Detail & Related papers (2025-02-10T15:18:04Z) - Harnessing Large Language Models for Knowledge Graph Question Answering via Adaptive Multi-Aspect Retrieval-Augmentation [81.18701211912779]
We introduce an Adaptive Multi-Aspect Retrieval-augmented over KGs (Amar) framework.
This method retrieves knowledge including entities, relations, and subgraphs, and converts each piece of retrieved text into prompt embeddings.
Our method has achieved state-of-the-art performance on two common datasets.
arXiv Detail & Related papers (2024-12-24T16:38:04Z) - APIRL: Deep Reinforcement Learning for REST API Fuzzing [3.053989095162017]
APIRL is a fully automated deep reinforcement learning tool for testing REST APIs.
We show APIRL can find significantly more bugs than the state-of-the-art in real world REST APIs.
arXiv Detail & Related papers (2024-12-20T15:40:51Z) - ExploraCoder: Advancing code generation for multiple unseen APIs via planning and chained exploration [70.26807758443675]
ExploraCoder is a training-free framework that empowers large language models to invoke unseen APIs in code solution.<n> Experimental results demonstrate that ExploraCoder significantly improves performance for models lacking prior API knowledge.
arXiv Detail & Related papers (2024-12-06T19:00:15Z) - Reinforcement Learning-Based REST API Testing with Multi-Coverage [4.127886193201882]
MUCOREST is a novel Reinforcement Learning (RL)-based API testing approach that leverages Q-learning to maximize code coverage and output coverage.
MUCOREST significantly outperforms state-of-the-art API testing approaches by 11.6-261.1% in the number of discovered API bugs.
arXiv Detail & Related papers (2024-10-20T14:20:23Z) - Complex Reasoning over Logical Queries on Commonsense Knowledge Graphs [61.796960984541464]
We present COM2 (COMplex COMmonsense), a new dataset created by sampling logical queries.
We verbalize them using handcrafted rules and large language models into multiple-choice and text generation questions.
Experiments show that language models trained on COM2 exhibit significant improvements in complex reasoning ability.
arXiv Detail & Related papers (2024-03-12T08:13:52Z) - RESTRuler: Towards Automatically Identifying Violations of RESTful
Design Rules in Web APIs [3.4711214580685557]
We present RESTRuler, a Java-based open-source tool that uses static analysis to detect design rule violations in OpenAPI descriptions.
For robustness, RESTRuler successfully analyzed 99% of the used real-world OpenAPI definitions.
For performance efficiency, the tool performed well for the majority of files and could analyze 84% in less than 23 seconds with low CPU and RAM usage.
arXiv Detail & Related papers (2024-02-21T11:25:22Z) - How Do Microservice API Patterns Impact Understandability? A Controlled
Experiment [4.26177272224368]
We conducted a controlled experiment with 6 microservice patterns to evaluate their impact on understandability with 65 diverse participants.
For five of the six patterns, we identified a significant positive impact on understandability, i.e., participants answered faster and / or more correctly for "P"
The correlations between performance and demographics seem to suggest that certain patterns may introduce additional complexity.
arXiv Detail & Related papers (2024-02-21T10:54:47Z) - Leveraging Large Language Models to Improve REST API Testing [51.284096009803406]
RESTGPT takes as input an API specification, extracts machine-interpretable rules, and generates example parameter values from natural-language descriptions in the specification.
Our evaluations indicate that RESTGPT outperforms existing techniques in both rule extraction and value generation.
arXiv Detail & Related papers (2023-12-01T19:53:23Z) - MGA-VQA: Multi-Granularity Alignment for Visual Question Answering [75.55108621064726]
Learning to answer visual questions is a challenging task since the multi-modal inputs are within two feature spaces.
We propose Multi-Granularity Alignment architecture for Visual Question Answering task (MGA-VQA)
Our model splits alignment into different levels to achieve learning better correlations without needing additional data and annotations.
arXiv Detail & Related papers (2022-01-25T22:30:54Z) - AES Systems Are Both Overstable And Oversensitive: Explaining Why And
Proposing Defenses [66.49753193098356]
We investigate the reason behind the surprising adversarial brittleness of scoring models.
Our results indicate that autoscoring models, despite getting trained as "end-to-end" models, behave like bag-of-words models.
We propose detection-based protection models that can detect oversensitivity and overstability causing samples with high accuracies.
arXiv Detail & Related papers (2021-09-24T03:49:38Z) - An Exploration And Validation of Visual Factors in Understanding
Classification Rule Sets [21.659381756612866]
Rule sets are often used in Machine Learning (ML) as a way to communicate the model logic in settings where transparency and intelligibility are necessary.
Surprisingly, to date there has been limited work on exploring visual alternatives for presenting rules.
This work can help practitioners employ more effective solutions when using rules as a communication strategy to understand ML models.
arXiv Detail & Related papers (2021-09-19T16:33:16Z) - Everything Has a Cause: Leveraging Causal Inference in Legal Text
Analysis [62.44432226563088]
Causal inference is the process of capturing cause-effect relationship among variables.
We propose a novel Graph-based Causal Inference framework, which builds causal graphs from fact descriptions without much human involvement.
We observe that the causal knowledge contained in GCI can be effectively injected into powerful neural networks for better performance and interpretability.
arXiv Detail & Related papers (2021-04-19T16:13:10Z) - Mining Implicit Relevance Feedback from User Behavior for Web Question
Answering [92.45607094299181]
We make the first study to explore the correlation between user behavior and passage relevance.
Our approach significantly improves the accuracy of passage ranking without extra human labeled data.
In practice, this work has proved effective to substantially reduce the human labeling cost for the QA service in a global commercial search engine.
arXiv Detail & Related papers (2020-06-13T07:02:08Z) - User Intent Inference for Web Search and Conversational Agents [3.9400263964632836]
thesis work focuses on: 1) Utterance topic and intent classification for conversational agents 2) Query intent mining and classification for Web search engines.
To address the first topic, I proposed novel models to incorporate entity information and conversation-context clues to predict both topic and intent of the user's utterances.
For the second research topic, I plan to extend the existing state of the art methods in Web search intent prediction to the e-commerce domain.
arXiv Detail & Related papers (2020-05-28T07:04:42Z)
This list is automatically generated from the titles and abstracts of the papers in this site.
This site does not guarantee the quality of this site (including all information) and is not responsible for any consequences.