-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmarkdown.mustache
executable file
·118 lines (94 loc) · 2.33 KB
/
markdown.mustache
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
#API Document
## BasePath: {{basePath}}
## Api Version: {{apiVersion}}
## Resources
{{#apiDocuments}}
### {{index}}. {{resourcePath}}
#### Overview
{{{description}}}
{{#apis}}
#### {{index}}.{{apiIndex}} `{{path}}`
{{#operations}}
##### {{index}}.{{apiIndex}}.{{opIndex}} {{nickname}}
**{{httpMethod}}** `{{path}}`
{{summary}}
{{{notes}}}
###### URL
{{url}}
###### Parameters
{{#parameters}}
- {{paramType}}
<table border="1">
<tr>
<th>Parameter</th>
<th>Required</th>
<th>Description</th>
<th>Data Type</th>
</tr>
{{#paras}}
<tr>
<th>{{name}}</th>
<td>{{required}}</td>
<td>{{description}}</td>
<td>{{#linkType}}<a href="#{{linkType}}">{{type}}</a>{{/linkType}}{{^linkType}}{{type}}{{/linkType}}</td>
</tr>
{{/paras}}
</table>
{{/parameters}}
{{#responseClass}}
###### Response
[{{className}}](#{{classLinkName}}){{^genericClasses}}{{/genericClasses}}{{#genericClasses}}< [{{className}}](#{{classLinkName}}) >{{/genericClasses}}
{{/responseClass}}
###### Errors
<table border="1">
<tr>
<th>Status Code</th>
<th>Reason</th>
</tr>
{{#errorResponses}}
<tr>
<td>{{code}}</td>
<td>{{reason}}</td>
</tr>
{{/errorResponses}}
</table>
{{#samples}}
###### Samples
{{/samples}}
{{#samples}}
{{sampleDescription}}
- Sample Request
```
{{{sampleRequest}}}
```
- Sample Response
```
{{{sampleResponse}}}
```
{{/samples}}
- - -
{{/operations}}
{{/apis}}
{{/apiDocuments}}
## Data Types
{{#dataTypes}}
## <a name="{{name}}">{{name}}</a>
<table border="1">
<tr>
<th>type</th>
<th>required</th>
<th>access</th>
<th>description</th>
<th>notes</th>
</tr>
{{#items}}
<tr>
<td>{{#linkType}}<a href="#{{linkType}}">{{type}}</a>{{/linkType}}{{^linkType}}{{type}}{{/linkType}}</td>
<td>{{#required}}required{{/required}}{{^required}}optional{{/required}}</td>
<td>{{#access}}{{{access}}}{{/access}}{{^access}}-{{/access}}</td>
<td>{{#description}}{{{description}}}{{/description}}{{^description}}-{{/description}}</td>
<td>{{#notes}}{{{notes}}}{{/notes}}{{^notes}}-{{/notes}}</td>
</tr>
{{/items}}
</table>
{{/dataTypes}}