@@ -21,23 +21,39 @@ <h4 id="{{operation.slug}}--parameters">
21
21
</ tr >
22
22
</ thead >
23
23
< tbody >
24
- {% for param in operation.parameters %}
25
- < tr >
26
- < td > < code > {{ param.name }}</ code > </ td >
27
- < td class ="opacity-70 "> {{ param.schema.type }}</ td >
28
- < td class ="opacity-70 "> {{ param.in }}</ td >
29
- < td class ="opacity-70 ">
30
- {{ param.descriptionHTML }}
31
- {% if param.name == 'accept' and param.in == 'header' and operation.x-github.previews.size > 0 %}
24
+ <!--
25
+ Previews require an `accept` header. These used to be documented
26
+ as `operation.parameters` but have moved to `operation.x-github.previews`
27
+ -->
28
+ < tr >
29
+ < td > < code > accept</ code > </ td >
30
+ < td class ="opacity-70 "> string</ td >
31
+ < td class ="opacity-70 "> header</ td >
32
+ < td class ="opacity-70 ">
33
+ < p >
34
+ {% if operation.hasRequiredPreviews %}
35
+ This API is under preview and subject to change.
36
+ {% else %}
37
+ Setting to < code > application/vnd.github.v3+json</ code > is recommended.
38
+ {% endif %}
39
+ {% if operation.x-github.previews.size > 0 %}
32
40
< a href ="#{{operation.slug}}-preview-notices ">
33
41
{% if operation.x-github.previews.size > 1 %}
34
- {{ site.data.ui.products.rest.reference.see_preview_notices }}.
42
+ {{ site.data.ui.products.rest.reference.see_preview_notices }}
35
43
{% else %}
36
- {{ site.data.ui.products.rest.reference.see_preview_notice }}.
44
+ {{ site.data.ui.products.rest.reference.see_preview_notice }}
37
45
{% endif %}
38
46
</ a >
39
47
{% endif %}
40
- </ td >
48
+ </ p >
49
+ </ td >
50
+ </ tr >
51
+ {% for param in operation.parameters %}
52
+ < tr >
53
+ < td > < code > {{ param.name }}</ code > </ td >
54
+ < td class ="opacity-70 "> {{ param.schema.type }}</ td >
55
+ < td class ="opacity-70 "> {{ param.in }}</ td >
56
+ < td class ="opacity-70 "> {{ param.descriptionHTML }}</ td >
41
57
</ tr >
42
58
{% endfor %}
43
59
{% for bodyParam in operation.bodyParameters %}
0 commit comments