api.mustache 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # {{classname}}{{#description}}
  2. {{description}}{{/description}}
  3. All URIs are relative to *{{basePath}}*
  4. Method | HTTP request | Description
  5. ------------- | ------------- | -------------
  6. {{#operations}}{{#operation}}[**{{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}**]({{classname}}.md#{{#lambda.lowercase}}{{operationId}}{{/lambda.lowercase}}) | **{{httpMethod}}** {{path}} | {{#summary}}{{summary}}{{/summary}}
  7. {{/operation}}{{/operations}}
  8. {{#operations}}
  9. {{#operation}}
  10. <a name="{{#lambda.lowercase}}{{operationId}}{{/lambda.lowercase}}"></a>
  11. ## **{{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}**
  12. {{summary}}{{#notes}}
  13. {{notes}}{{/notes}}
  14. ### Parameters
  15. {{^allParams}}This endpoint does not need any parameters.{{/allParams}}{{#allParams}}{{#-last}}
  16. Name | Type | Description | Notes
  17. ------------- | ------------- | ------------- | -------------{{/-last}}{{/allParams}}
  18. {{#allParams}} **{{#lambda.titlecase}}{{paramName}}{{/lambda.titlecase}}** | {{#isPrimitiveType}}**{{dataType}}**{{/isPrimitiveType}}{{^isPrimitiveType}}{{#isFile}}**{{dataType}}**{{/isFile}}{{^isFile}}{{#generateModelDocs}}[**{{dataType}}**](..{{modelPackage}}/{{baseType}}.md){{/generateModelDocs}}{{^generateModelDocs}}**{{dataType}}**{{/generateModelDocs}}{{/isFile}}{{/isPrimitiveType}}| {{description}} |{{^required}} [optional]{{/required}}{{#defaultValue}} [default to {{defaultValue}}]{{/defaultValue}}{{#allowableValues}} [enum: {{#values}}{{{.}}}{{^-last}}, {{/-last}}{{/values}}]{{/allowableValues}}
  19. {{/allParams}}
  20. ### Return type
  21. {{#returnType}}{{#returnTypeIsPrimitive}}**{{returnType}}**{{/returnTypeIsPrimitive}}{{^returnTypeIsPrimitive}}{{#generateModelDocs}}[**{{returnType}}**](..{{modelPackage}}/{{returnBaseType}}.md){{/generateModelDocs}}{{^generateModelDocs}}**{{returnType}}**{{/generateModelDocs}}{{/returnTypeIsPrimitive}}{{/returnType}}{{^returnType}}null (empty response body){{/returnType}}
  22. ### Authorization
  23. {{^authMethods}}No authorization required{{/authMethods}}{{#authMethods}}[{{name}}](../README.md#{{name}}){{^-last}}, {{/-last}}{{/authMethods}}
  24. ### HTTP request headers
  25. - **Content-Type**: {{#consumes}}{{{mediaType}}}{{#hasMore}}, {{/hasMore}}{{/consumes}}{{^consumes}}Not defined{{/consumes}}
  26. - **Accept**: {{#produces}}{{{mediaType}}}{{#hasMore}}, {{/hasMore}}{{/produces}}{{^produces}}Not defined{{/produces}}
  27. {{/operation}}
  28. {{/operations}}