api.wiki.mustache 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. {{#api_declaration}}
  2. h1. {{name_title}}
  3. || Method || Path<br>h5. Parameters are case-sensitive || 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. Parameters are case-sensitive.
  17. {{#path_parameters}}
  18. * {{name}}: _{{data_type}}_ - {{{wiki_description}}}
  19. {{#default_value}}
  20. ** Default: {{default_value}}
  21. {{/default_value}}
  22. {{#wiki_allowable_values}}
  23. ** {{wiki_allowable_values}}
  24. {{/wiki_allowable_values}}
  25. {{/path_parameters}}
  26. {{/has_path_parameters}}
  27. {{#has_query_parameters}}
  28. h3. Query parameters
  29. {{#query_parameters}}
  30. * {{name}}: _{{data_type}}_ -{{#required}} *(required)*{{/required}} {{{wiki_description}}}
  31. {{#default_value}}
  32. ** Default: {{default_value}}
  33. {{/default_value}}
  34. {{#wiki_allowable_values}}
  35. ** {{wiki_allowable_values}}
  36. {{/wiki_allowable_values}}
  37. {{#allow_multiple}}
  38. ** Allows comma separated values.
  39. {{/allow_multiple}}
  40. {{/query_parameters}}
  41. {{/has_query_parameters}}
  42. {{#has_body_parameter}}
  43. h3. Body parameter
  44. {{#body_parameter}}
  45. * {{name}}: {{data_type}}{{#default_value}} = {{default_value}}{{/default_value}} -{{#required}} *(required)*{{/required}} {{{wiki_description}}}
  46. {{#allow_multiple}}
  47. ** Allows comma separated values.
  48. {{/allow_multiple}}
  49. {{/body_parameter}}
  50. {{/has_body_parameter}}
  51. {{#has_header_parameters}}
  52. h3. Header parameters
  53. {{#header_parameters}}
  54. * {{name}}: {{data_type}}{{#default_value}} = {{default_value}}{{/default_value}} -{{#required}} *(required)*{{/required}} {{{wiki_description}}}
  55. {{#allow_multiple}}
  56. ** Allows comma separated values.
  57. {{/allow_multiple}}
  58. {{/header_parameters}}
  59. {{/has_header_parameters}}
  60. {{#has_error_responses}}
  61. h3. Error Responses
  62. {{#error_responses}}
  63. * {{code}} - {{{wiki_reason}}}
  64. {{/error_responses}}
  65. {{/has_error_responses}}
  66. {{/operations}}
  67. {{/apis}}
  68. {{/api_declaration}}