links-wadl.xml 1.0 KB

123456789101112131415161718192021222324252627
  1. <?xml version="1.0"?>
  2. <application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xmlns="http://research.sun.com/wadl/2006/10"
  4. xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  5. xsi:schemaLocation="http://research.sun.com/wadl/2006/10/wadl.xsd">
  6. <resources base="http://www.example.com/">
  7. <resource path="" type="#service-root"/>
  8. </resources>
  9. <resource_type id="service-root">
  10. <method name="GET" id="service-root-get">
  11. <response>
  12. <representation href="#service-root-json"/>
  13. </response>
  14. </method>
  15. </resource_type>
  16. <representation id="service-root-json" mediaType="application/json">
  17. <param style="plain" path="$['scalar_value']" name="scalar_value" />
  18. <param style="plain" path="$['known_link']" name="known_link">
  19. <link resource_type="#service-root"/>
  20. </param>
  21. <param style="plain" path="$['unknown_link']" name="unknown_link">
  22. <link />
  23. </param>
  24. </representation>
  25. </application>