Sha256: c3fc42ea99ad208efed77d48389c8b0f069a91946b416a92ca12dac35c63550e
Contents?: true
Size: 1.06 KB
Versions: 2
Compression:
Stored size: 1.06 KB
Contents
# <%= schema.title || "API" %> <%= schema.description -%> <% schema.resources.each do |resource| %> * <%= resource.hyperlink %> <% resource.links.each do |link| %> * <%= link.hyperlink %> <% end %> <% end %> <% schema.resources.each do |resource| %> ## <%= resource.title %> <%= resource.description %> ### Properties <% resource.properties.each do |property| %> * <%= property.name %> <% if property.description %> * <%= property.description %> <% end %> <% property.options.each do |key, value| %> * <%= key %>: <%= value %> <% end %> <% end %> <% resource.links.each do |link| %> ### <%= link.endpoint %> <%= link.description %> ``` <%= link.method %> <%= link.example_path %><%= link.query_string %> HTTP/1.1 <%= "Content-Type: #{link.content_type}\n" if link.has_request_body? -%> Host: <%= schema.host_with_port %> <%= "\n" + link.request_body if link.has_request_body? -%> ``` ``` HTTP/1.1 <%= link.response_status %> <%= "Content-Type: application/json" if link.has_response_body? -%> <%= "\n#{link.response_body}\n" if link.has_response_body? -%> ``` <% end %> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jdoc-0.3.1 | template.md.erb |
jdoc-0.3.0 | template.md.erb |