GET/api/guilds/{slug}
「ギルド」の分類の、情報を読み出す API。ログインした本人として呼ぶ。
- 要約
ギルドのページ(紹介・出展・メンバー(3 人未満は人数だけ)・成績)
- 呼び方と印
ログイン
URL に付ける値(パラメータ)
経路の中の波かっこの部分と、URL の ? の後ろに付ける値。「必須」の印があるものは省けない。
slugpath必須string/^[a-z0-9-]{1,64}$/
返るもの(応答)200 · application/json
成功したときに返る形。入れ子の欄は、その行を押すと開く・閉じる。「任意」の印がある欄は返らないことがある。
guildobjectbasicProfile任意objectnameKana任意string | null長さ ≤240organizationType任意string | null長さ ≤80baseUniversities任意array<string>件数 ≤20foundedYearMonth任意string | null/^(19[5-9]\d|20\d\d|2100)-(0[1-9]|1[0-2])$/studentMemberCount任意integer | null0–100000activitySummary任意string | null長さ ≤2000catchphrase任意string | null長さ ≤40
memberCount任意integer | nullmemberScale任意string | nullidstringslugstringnamestringcolorstringimageUrlstring | nullsource"spikes" | "local"universityNamestring | nullorgKind"university" | "highschool" | nullgenresarray<string>descriptionstring | nulllinksarray<object>kindstringurlstringtitle任意string
mediaarray<object>kind"youtube" | "vimeo" | "image" | "link"urlstringtitlestring | null
foundedYearinteger | nulllastConfirmedYearinteger | nullregisteredMembersinteger | nullpublicUrlstring | nullsyncedAtstring | null
isMinebooleanboothsarray<object>idstringnamestringlogoUrlstring | nulllocationstring | nullschedule"allday" | "timed"whenstringlivebooleancheckedInbooleanpinobject | nullxnumberynumbercolorstring | null
mapobject | nullidstringnamestringwidthnumberheightnumberurlstring
membersobjectmode"list" | "count"countintegerpeoplearray<object> | nullidstringnamestringavatarUrlstring | nulltitlestring | nullorgNamestring | null
moreinteger
statsobjectpointsnumberrankinteger | nulltotalintegerraceobjectrankinteger | nullpointsnumbertotalintegerwindowMininteger
失敗したとき(エラー)
失敗したときの状態コードと、その意味。本文の error の値で、プログラムが失敗の種類を見分けられる。
- 400入力の誤り(error = invalid_input など)
- 401未ログイン(unauthorized)/ Bearer が無効(invalid_token。WWW-Authenticate 付き)
- 403権限が無い
- not_found
呼び出しの見本
そのまま試せる呼び出しの例。curl と fetch をタブで切り替える。ID やトークンは自分の値に置き換える。
curl "https://bounty.spikes.4s.link/api/guilds/{slug}" \
-H "Authorization: Bearer $BEARER_AUTH"