Book Image

RESTful Java Web Services, Second Edition

Book Image

RESTful Java Web Services, Second Edition

Overview of this book

Table of Contents (17 chapters)
RESTful Java Web Services Second Edition
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Web Application Description Language


Web Application Description Language (WADL) is an XML description of HTTP-based web applications such as RESTful web services. WADL was submitted to the World Wide Web Consortium (W3C) by Sun in 2009 but has not been standardized yet.

WADL models the resources provided by a RESTful web service with relationships between the resources. It also allows you to clearly represent the media types used for the request and response contents.

An overview of the WADL structure

The WADL schema that you use for building a WADL file is based on the WADL specification. Here is a quick overview of the WADL file content that describes RESTful web APIs.

The top-level element in a WADL document is the application. It contains global information about RESTful web services, such as links to schema definition and documentation. Here is a quick summary of the elements that you see in WADL:

  • <resources>: This element comes as wrapper for all resources exposed by a RESTful...