api.wiki.mustache 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. {{#api_declaration}}
  2. h1. {{name_title}}
  3. || Method || Path || Return Model || Summary ||
  4. {{#apis}}
  5. {{#operations}}
  6. | {{http_method}} | [{{wiki_path}}|#{{nickname}}] | {{#response_class}}{{#is_primitive}}{{name}}{{/is_primitive}}{{^is_primitive}}[{{wiki_name}}|{{wiki_prefix}} REST Data Models#{{singular_name}}]{{/is_primitive}}{{/response_class}} | {{summary}} |
  7. {{/operations}}
  8. {{/apis}}
  9. {{#apis}}
  10. {{#operations}}
  11. {anchor:{{nickname}}}
  12. h2. {{nickname}}: {{http_method}} {{wiki_path}}
  13. {{{wiki_summary}}}{{#wiki_notes}} {{{wiki_notes}}}{{/wiki_notes}}
  14. {{#has_path_parameters}}
  15. h3. Path parameters
  16. {{#path_parameters}}
  17. * {{name}}: _{{data_type}}_ - {{{wiki_description}}}
  18. {{#default_value}}
  19. ** Default: {{default_value}}
  20. {{/default_value}}
  21. {{#wiki_allowable_values}}
  22. ** {{wiki_allowable_values}}
  23. {{/wiki_allowable_values}}
  24. {{/path_parameters}}
  25. {{/has_path_parameters}}
  26. {{#has_query_parameters}}
  27. h3. Query parameters
  28. {{#query_parameters}}
  29. * {{name}}: _{{data_type}}_ -{{#required}} *(required)*{{/required}} {{{wiki_description}}}
  30. {{#default_value}}
  31. ** Default: {{default_value}}
  32. {{/default_value}}
  33. {{#wiki_allowable_values}}
  34. ** {{wiki_allowable_values}}
  35. {{/wiki_allowable_values}}
  36. {{#allow_multiple}}
  37. ** Allows comma separated values.
  38. {{/allow_multiple}}
  39. {{/query_parameters}}
  40. {{/has_query_parameters}}
  41. {{#has_body_parameter}}
  42. h3. Body parameter
  43. {{#body_parameter}}
  44. * {{name}}: {{data_type}}{{#default_value}} = {{default_value}}{{/default_value}} -{{#required}} *(required)*{{/required}} {{{wiki_description}}}
  45. {{#allow_multiple}}
  46. ** Allows comma separated values.
  47. {{/allow_multiple}}
  48. {{/body_parameter}}
  49. {{/has_body_parameter}}
  50. {{#has_header_parameters}}
  51. h3. Header parameters
  52. {{#header_parameters}}
  53. * {{name}}: {{data_type}}{{#default_value}} = {{default_value}}{{/default_value}} -{{#required}} *(required)*{{/required}} {{{wiki_description}}}
  54. {{#allow_multiple}}
  55. ** Allows comma separated values.
  56. {{/allow_multiple}}
  57. {{/header_parameters}}
  58. {{/has_header_parameters}}
  59. {{#has_error_responses}}
  60. h3. Error Responses
  61. {{#error_responses}}
  62. * {{code}} - {{{reason}}}
  63. {{/error_responses}}
  64. {{/has_error_responses}}
  65. {{/operations}}
  66. {{/apis}}
  67. {{/api_declaration}}