beautify documentation

This commit is contained in:
Front committed 2021-12-27 18:46:11 -05:00
1 parent bb29bb54b4
commit 7f82dba4b9
4 files changed
+17 -28

No files matched your search

@@ -16,4 +16,5 @@ export default {
};
},
};
</script>
+13 -28
View File
@@ -3,35 +3,21 @@
<h1 class="primary--text">Basic Fetching Tutorial</h1>
<span>Example to get votes of a given YouTube video ID:</span>
<a href="https://youtube.com/watch?v=kxOuG8jMIgI" target="_blank"
>kxOuG8jMIgI</a
><br /><br />
<a href="https://youtube.com/watch?v=kxOuG8jMIgI" target="_blank">kxOuG8jMIgI</a><br /><br />
<h2>Example Request:</h2>
<span><b>Request URL:</b></span>
<a
:href="apiUrl + '/votes?videoId=kxOuG8jMIgI'"
target="_blank"
v-text="apiUrl + '/votes?videoId=kxOuG8jMIgI'"
/><br />
<span
><b>Request Method:</b>
<a
href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/GET"
target="_blank"
>HTTP/GET</a
></span
><br />
<span><b>Headers:</b></span
><br />
<a :href="apiUrl + '/votes?videoId=kxOuG8jMIgI'" target="_blank"
v-text="apiUrl + '/votes?videoId=kxOuG8jMIgI'" /><br />
<span><b>Request Method:</b>
<a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/GET" target="_blank">HTTP/GET</a></span><br />
<span><b>Headers:</b></span><br />
<code class="code">
Accept: text/html,application/xhtml+xml,application/xml;q=0.9<br />
Pragma: no-cache<br />
Cache-Control: no-cache<br />
Connection: keep-alive </code
><br />
<span><b>Response:</b></span
><br />
Connection: keep-alive </code><br />
<span><b>Response:</b></span><br />
<div class="code">
<code style="background-color: rgba(0, 0, 0, 0)">
{<br />
@@ -47,12 +33,9 @@
</div>
<br /><br />
<v-alert border="left" color="orange" text type="info">
<span>An invalid YouTube ID will return status code 404 "Not Found".</span
><br />
<span
>An incorrectly formatted YouTube ID will return 400 "Bad
Request".</span
>
<span>An invalid YouTube ID will return status code 404 "Not Found".</span><br />
<span>An incorrectly formatted YouTube ID will return 400 "Bad
Request".</span>
</v-alert>
<a :href="endpointUrl" target="_blank" v-text="endpointUrl" />
@@ -65,6 +48,7 @@
background: #353535;
border-radius: 3px;
}
</style>
<script>
@@ -75,4 +59,5 @@ export default {
};
},
};
</script>
+1
View File
@@ -14,4 +14,5 @@ export default {
};
},
};
</script>
@@ -23,7 +23,9 @@
li {
margin-top: 0.5em;
}
b {
font-weight: 900 !important;
}
</style>