mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-12-02 02:41:22 +01:00
beautify documentation
This commit is contained in:
1 parent
bb29bb54b4
commit
7f82dba4b9
4 files changed
+51
-62
No files matched your search
@@ -7,13 +7,14 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
let apiUrl = process.env.apiUrl;
|
let apiUrl = process.env.apiUrl;
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
apiUrl: apiUrl,
|
apiUrl: apiUrl,
|
||||||
endpointUrl: apiUrl + "/swagger/index.html",
|
endpointUrl: apiUrl + "/swagger/index.html",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
@@ -3,35 +3,21 @@
|
|||||||
<h1 class="primary--text">Basic Fetching Tutorial</h1>
|
<h1 class="primary--text">Basic Fetching Tutorial</h1>
|
||||||
|
|
||||||
<span>Example to get votes of a given YouTube video ID:</span>
|
<span>Example to get votes of a given YouTube video ID:</span>
|
||||||
<a href="https://youtube.com/watch?v=kxOuG8jMIgI" target="_blank"
|
<a href="https://youtube.com/watch?v=kxOuG8jMIgI" target="_blank">kxOuG8jMIgI</a><br /><br />
|
||||||
>kxOuG8jMIgI</a
|
|
||||||
><br /><br />
|
|
||||||
|
|
||||||
<h2>Example Request:</h2>
|
<h2>Example Request:</h2>
|
||||||
<span><b>Request URL:</b></span>
|
<span><b>Request URL:</b></span>
|
||||||
<a
|
<a :href="apiUrl + '/votes?videoId=kxOuG8jMIgI'" target="_blank"
|
||||||
:href="apiUrl + '/votes?videoId=kxOuG8jMIgI'"
|
v-text="apiUrl + '/votes?videoId=kxOuG8jMIgI'" /><br />
|
||||||
target="_blank"
|
<span><b>Request Method:</b>
|
||||||
v-text="apiUrl + '/votes?videoId=kxOuG8jMIgI'"
|
<a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/GET" target="_blank">HTTP/GET</a></span><br />
|
||||||
/><br />
|
<span><b>Headers:</b></span><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">
|
<code class="code">
|
||||||
Accept: text/html,application/xhtml+xml,application/xml;q=0.9<br />
|
Accept: text/html,application/xhtml+xml,application/xml;q=0.9<br />
|
||||||
Pragma: no-cache<br />
|
Pragma: no-cache<br />
|
||||||
Cache-Control: no-cache<br />
|
Cache-Control: no-cache<br />
|
||||||
Connection: keep-alive </code
|
Connection: keep-alive </code><br />
|
||||||
><br />
|
<span><b>Response:</b></span><br />
|
||||||
<span><b>Response:</b></span
|
|
||||||
><br />
|
|
||||||
<div class="code">
|
<div class="code">
|
||||||
<code style="background-color: rgba(0, 0, 0, 0)">
|
<code style="background-color: rgba(0, 0, 0, 0)">
|
||||||
{<br />
|
{<br />
|
||||||
@@ -47,12 +33,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<br /><br />
|
<br /><br />
|
||||||
<v-alert border="left" color="orange" text type="info">
|
<v-alert border="left" color="orange" text type="info">
|
||||||
<span>An invalid YouTube ID will return status code 404 "Not Found".</span
|
<span>An invalid YouTube ID will return status code 404 "Not Found".</span><br />
|
||||||
><br />
|
<span>An incorrectly formatted YouTube ID will return 400 "Bad
|
||||||
<span
|
Request".</span>
|
||||||
>An incorrectly formatted YouTube ID will return 400 "Bad
|
|
||||||
Request".</span
|
|
||||||
>
|
|
||||||
</v-alert>
|
</v-alert>
|
||||||
|
|
||||||
<a :href="endpointUrl" target="_blank" v-text="endpointUrl" />
|
<a :href="endpointUrl" target="_blank" v-text="endpointUrl" />
|
||||||
@@ -60,19 +43,21 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.code {
|
.code {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background: #353535;
|
background: #353535;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
apiUrl: process.env.apiUrl,
|
apiUrl: process.env.apiUrl,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
@@ -7,11 +7,12 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
apiUrl: process.env.apiUrl,
|
apiUrl: process.env.apiUrl,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
@@ -20,10 +20,12 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
li {
|
li {
|
||||||
margin-top: 0.5em;
|
margin-top: 0.5em;
|
||||||
}
|
}
|
||||||
b {
|
|
||||||
font-weight: 900 !important;
|
b {
|
||||||
}
|
font-weight: 900 !important;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
Reference in new issue
Block a user