WS-REST 2011.
Second International Workshop on RESTful Design.
Chairs: Cesare Pautasso, Erik Wilde, Rosa Alarcon.
<br>
Hypermedia and Model-Driven Development Session. Silvia Schreier
Fulfilling the Hypermedia Constraint via HTTP OPTIONS, The HTTP Vocabulary In...
Modeling RESTful applications
1. University of Hagen - Faculty of Mathematics and Computer Science
Modeling RESTful applications
Silvia Schreier
Silvia Schreier - Chair of Data Processing Technology
2. University of Hagen - Faculty of Mathematics and Computer Science
Problems during development
§ Many frameworks for implementation support
§ Concentration on technical details instead of design
§ Lack of support for early phases
§ No (standardized) design language
§ A lot of natural language, e.g. best practices and patterns
§ No model-driven development / code generation possible
§ Possible solution: a REST metamodel
Intention: discussing the current version
Slide 2 3/30/11 Silvia Schreier - Chair of Data Processing Technology
3. University of Hagen - Faculty of Mathematics and Computer Science
Metamodeling
§ Abstract Syntax: possible elements and their relations
§ Vocabulary
§ Static Semantic: constraints for well-formed models
§ Grammar
§ Concrete Syntax: textual or visual language
Slide 3 3/30/11 Silvia Schreier - Chair of Data Processing Technology
4. University of Hagen - Faculty of Mathematics and Computer Science
Example: Web album
§ Albums
§ (excellent) Pictures
§ Excellent pictures can be suggested and must be reviewed
Slide 4 3/30/11 Silvia Schreier - Chair of Data Processing Technology
5. University of Hagen - Faculty of Mathematics and Computer Science
REST metamodel
How does the
Elements and
application react
their relations
to requests?
Slide 5 3/30/11 Silvia Schreier - Chair of Data Processing Technology
6. University of Hagen - Faculty of Mathematics and Computer Science
Structural Model – ResourceTypes
Slide 6 3/30/11 Silvia Schreier - Chair of Data Processing Technology
7. University of Hagen - Faculty of Mathematics and Computer Science
Structural Model – Overview
Slide 7 3/30/11 Silvia Schreier - Chair of Data Processing Technology
8. University of Hagen - Faculty of Mathematics and Computer Science
Structural Model – Example
Slide 8 3/30/11 Silvia Schreier - Chair of Data Processing Technology
9. University of Hagen - Faculty of Mathematics and Computer Science
Behavioral Model
Slide 9 3/30/11 Silvia Schreier - Chair of Data Processing Technology
10. University of Hagen - Faculty of Mathematics and Computer Science
Behavioral Model – Example
§ States of Suggestion
Slide 10 3/30/11 Silvia Schreier - Chair of Data Processing Technology
11. University of Hagen - Faculty of Mathematics and Computer Science
Conclusion
in future
Slide 11 3/30/11 Silvia Schreier - Chair of Data Processing Technology
12. University of Hagen - Faculty of Mathematics and Computer Science
Future Work
§ Application to various scenarios
§ Testing vocabulary
§ Adding more details
§ Code generation for different languages
§ Textual and visual language
§ Modeling representations
§ Connecting legacy systems
Slide 12 3/30/11 Silvia Schreier - Chair of Data Processing Technology
13. University of Hagen - Faculty of Mathematics and Computer Science
Thank you for your attention!
Slide 13 3/30/11 Silvia Schreier - Chair of Data Processing Technology
14. University of Hagen - Faculty of Mathematics and Computer Science
References
§ M. Nottingham. Web Linking. Request for Comments: 5988.
Internet Engineering Task Force (IETF), October 2010.
§ M. Nottingham and R. Sayre. The atom syndication format.
Request for Comments: 4287. Internet Engineering Task
Force (IETF), December 2005.
§ L. Richardson and S. Ruby. RESTful Web Services. O'Reilly
Media, 2007.
§ T. Stahl, M. Völter, S. Etinge, and A. Haase. Modellgetriebene
Softwareentwicklung: Techniken, Engineering, Management.
dpunkt.verlag, 2007.
§ D. Steinberg, F. Budinsky, M. Paternostro, and E. Merks.
EMF: Eclipse Modeling Framework. Addison-Wesley
Longman, 2009.
§ S. Tilkov. REST und HTTP: Einsatz der Architektur des Webs
für Integrationsszenarien. dpunkt.verlag, 2009.
Slide 14 3/30/11 Silvia Schreier - Chair of Data Processing Technology