A Comparative Study of Model-First API Design Frameworks and a Methodology for Endpoint Interdependency Analysis

dc.contact.usd03120098en_US
dc.contributor.authorΚαμπουγέρης, Χαράλαμπος
dc.contributor.supervisorΒεσκούκης Βασίλειοςen_US
dc.date.accessioned2025-11-07T10:18:38Z
dc.date.available2025-11-07T10:18:38Z
dc.date.issued2025-11-05
dc.departmentΤομέας Τεχνολογίας Πληροφορικής και Υπολογιστώνen_US
dc.description.abstractIn an era where software systems form the backbone of digital infrastructure, Application Programming Interfaces (APIs) play a crucial role in enabling interoperability between services, applications, and users. APIs define structured contracts, sets of endpoints that expose specific functionalities of a system. As modern architectures increasingly rely on distributed and cloud-native services, the consistency, scalability, and maintainability of APIs have become vital for efficient system design and evolution. This thesis focuses on the Model-First API Design approach, where the API contract is defined before implementation, using formal modeling frameworks. Three such frameworks are examined: gRPC/Protocol Buffers, AWS Smithy, and Microsoft TypeSpec. Each framework provides a structured way to describe endpoints, operations, and data models, supporting automated documentation and SDK generation. Building on this foundation, the thesis introduces a methodology for static inter-endpoint dependency analysis that leverages the structured models produced by these frameworks. The analysis identifies data dependencies between API endpoints by comparing shared types and message structures in their input and output models. This enables the visualization of relationships between operations and the discovery of implicit invocation orders that describe real API workflows. Experimental results show that Smithy and TypeSpec generate highly accurate and noise-free dependency graphs, effectively capturing object-level dependencies and reducing ambiguity. In contrast, gRPC exhibits reduced precision due to its inability to wrap primitive types, which leads to semantic loss in its OpenAPI export. The findings demonstrate that well-structured, model-first definitions provide a richer and more reliable foundation for analyzing API interdependencies than traditional static or dynamic approaches such as those implemented in RADAR.en_US
dc.description.pages70en_US
dc.identifier.urihttp://artemis.cslab.ece.ntua.gr:8080/jspui/handle/123456789/19908
dc.languageenen_US
dc.subjectModel-First API Designen_US
dc.subjectgRPCen_US
dc.subjectSmithyen_US
dc.subjectTypeSpecen_US
dc.subjectAPI Dependency Analysisen_US
dc.subjectOpenAPIen_US
dc.subjectStatic Analysisen_US
dc.titleA Comparative Study of Model-First API Design Frameworks and a Methodology for Endpoint Interdependency Analysisen_US

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
Diploma_Thesis_Charalampos_Kampougeris.pdf
Size:
2.91 MB
Format:
Adobe Portable Document Format
Description:

License bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
license.txt
Size:
1.71 KB
Format:
Item-specific license agreed upon to submission
Description: