Sha256: 3350e37a79525aacbf2a147a0e7edf3f1741cbef674c8366f122caa1d4da3a28

Contents?: true

Size: 1008 Bytes

Versions: 1

Compression:

Stored size: 1008 Bytes

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.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

<%= link.response_body %>
```

<% end %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jdoc-0.2.1 template.md.erb