Bitte benutzen Sie diese Kennung, um auf die Ressource zu verweisen: http://dx.doi.org/10.18419/opus-9803
Autor(en): Fischer, Markus
Titel: Model-driven code generation for REST APIs
Sonstige Titel: Modellgetriebene Code Generierung für REST APIs
Erscheinungsdatum: 2015
Dokumentart: Abschlussarbeit (Master)
Seiten: 99
URI: http://nbn-resolving.de/urn:nbn:de:bsz:93-opus-ds-98201
http://elib.uni-stuttgart.de/handle/11682/9820
http://dx.doi.org/10.18419/opus-9803
Zusammenfassung: In recent years Representational State Transfer (REST) has become more and more popular as an architecture style for web applications. An application must obey several constraints to be considered fully REST compliant. Often these constraints are only partially fulfilled by developers. These issue can be addressed by applying Model Driven Software Development to the design and development of REST applications, a technique that uses formal models to describe applications and to generate application code. The goal of this thesis is the generation of application code for REST APIs. For this, a REST compliant application is developed manually to identify good and practical source code templates that can be used for the code generation. The manually developed application is also used to derive entities for the formal model that provides the basis for code generation. The solution developed in this thesis defines a platform specific meta model for the generation of REST APIS. The solution also provides a transformation from an already existing meta model for REST APIs to the new platform specific meta model, and the transformation to application code. The solution is integrated into the existing modeling tool and thereby provides an fast and easy way to develop REST compliant applications.
In den letzten Jahren ist Representational State Transfer (REST) als Architekturstil für Web-Anwendungen immer populärer geworden. Eine Anwendung muss einige Einschränkungen befolgen, um als REST-kompatibel zu gelten. Oft werden diese Einschränkungen nur teilweise von Entwicklern erfüllt. Dieses Problem kann durch den Einsatz Modellgetriebener Softwareentwicklung verbessert werden. Modellgetriebene Softwareentwicklung ist eine Technik, die formale Modelle nutzt, um Anwendungen zu beschreiben und daraus Anwendungscode zu erzeugen. Ziel dieser Arbeit ist die Generierung von Anwendungscode. Zu diesem Zweck wird manuell eine REST-konforme Anwendung entwickelt, um gute und geeignete Codestrukturen zu identifizieren, die für die Codegenerierung genutzt werden können. Die entwickelte Anwendung wird auch dazu verwendet, Entitäten für das formale Modell abzuleiten. Die in dieser Arbeit entwickelte Lösung definiert ein plattformspezifisches Modell zur Modellierung von REST APIs. Zusätzlich wird auch noch eine Modelltransformation von einem existierenden Metamodell für REST APIs in das neue plattformspezifische Modell entwickelt, sowie die Generierung von Anwendungscode aus dem plattformspezifischen Modell. Die Lösung wird in das bestehende Modellierungswerkzeug integriert und stellt damit eine schnelle und einfache Möglichkeit bereit, REST-kompatible Anwendungen zu entwickeln.
Enthalten in den Sammlungen:05 Fakultät Informatik, Elektrotechnik und Informationstechnik

Dateien zu dieser Ressource:
Datei Beschreibung GrößeFormat 
thesis.pdf8,68 MBAdobe PDFÖffnen/Anzeigen


Alle Ressourcen in diesem Repositorium sind urheberrechtlich geschützt.