--- title: API Reference search: true --- <% resources.each do |resource| %> # <%= resource.name %> <% resource.examples.each do |example| %> ## <%= example.name %> <%= example.description %> <% example.requests.each do |request| -%> ```json <% response_body = JSON.parse(request[:response_body]) if request[:response_body] %> <%= JSON.pretty_generate(response_body) if response_body %> ``` ### HTTP Request `<%= request[:request_method] %> http://example.com<%= request[:request_path] %>` <% end -%> <% unless example.parameters.empty? -%> ### Query Parameters Parameter | Required | Description --------- | ------- | ----------- <% example.parameters.each do |parameter| -%> <%= parameter.name %> | <%= !!parameter.required %> | <%= parameter.description %> <% end -%> <% end -%> <% unless example.response_fields.empty? -%> ### Response Fields Parameter | Type | Description --------- | ------- | ----------- <% example.response_fields.each do |parameter| -%> <%= parameter.name %> | <%= parameter.type %> | <%= parameter.description %> <% end -%> <% end -%> <% end -%> <% end -%>