We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4357ed5 commit 6c267cbCopy full SHA for 6c267cb
assets/scripts/responses.js
@@ -503,7 +503,7 @@ const endpoints = {
503
description: 'Match time of completion'
504
},
505
],
506
- sampleUrl: `https://api.mcsrranked.com/users/3c8757790ab0400b8b9e3936e0dd535b/seasons`
+ sampleUrl: null
507
508
'matches/': {
509
title: `Get Recent Matches`,
@@ -887,6 +887,10 @@ function getResponseExample(endpoint) {
887
}
888
889
function getSampleResponse(url, id) {
890
+ if (url == `'null'`) {
891
+ $(`#${id}`).html(`<pre>This endpoint doesn't support sample response. :(</pre>`);
892
+ return;
893
+ }
894
$(`#${id}`).html(`<pre>Loading...</pre>`);
895
fetch(url).then(r => r.json()).then(json => {
896
const limitArraysToFive = (obj) => {
0 commit comments