options-wadl.xml 890 B

12345678910111213141516171819202122232425
  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" required="true" path="$['has_options]"
  18. name="has_options">
  19. <option value="Value 1" />
  20. <option value="Value 2" />
  21. </param>
  22. </representation>
  23. </application>