2.9 KiB
2.9 KiB
id, title, challengeType, forumTopicId, dashedName
id | title | challengeType | forumTopicId | dashedName |
---|---|---|---|---|
bd7158d8c443edefaeb5bdff | リクエストヘッダーパーサー マイクロサービス | 4 | 301507 | request-header-parser-microservice |
--description--
https://request-header-parser-microservice.freecodecamp.rocks/ と同様の機能を持つフルスタック JavaScript アプリを構築してください。 プロジェクトに取り組むにあたり、以下の方法のうち 1 つを用いてコードを記述します。
- GitHub リポジトリをクローンし、ローカル環境でプロジェクトを完了させる。
- Replit 始動プロジェクトを使用して、プロジェクトを完了させる。
- 使い慣れたサイトビルダーを使用してプロジェクトを完了させる。 必ず GitHub リポジトリのすべてのファイルを取り込む。
完了したら、プロジェクトの動作デモをどこか公開の場にホストしてください。 そして、Solution Link
フィールドでデモへの URL を送信してください。 必要に応じて、プロジェクトのソースコードへのリンクを GitHub Link
フィールドへ送信してください。
--hints--
サンプルの URL ではなく、自分で作成したプロジェクトを提供する必要があります。
(getUserInput) => {
assert(
!/.*\/request-header-parser-microservice\.freecodecamp\.rocks/.test(
getUserInput('url')
)
);
};
/api/whoami
へのリクエストに対して、ipaddress
キーに IP アドレスを持つ JSON オブジェクトを返す必要があります。
(getUserInput) =>
$.get(getUserInput('url') + '/api/whoami').then(
(data) => assert(data.ipaddress && data.ipaddress.length > 0),
(xhr) => {
throw new Error(xhr.responseText);
}
);
/api/whoami
へのリクエストに対して、language
キーに優先言語を持つ JSON オブジェクトを返す必要があります。
(getUserInput) =>
$.get(getUserInput('url') + '/api/whoami').then(
(data) => assert(data.language && data.language.length > 0),
(xhr) => {
throw new Error(xhr.responseText);
}
);
/api/whoami
へのリクエストに対して、software
キーにソフトウェアを持つ JSON オブジェクトを返す必要があります。
(getUserInput) =>
$.get(getUserInput('url') + '/api/whoami').then(
(data) => assert(data.software && data.software.length > 0),
(xhr) => {
throw new Error(xhr.responseText);
}
);
--solutions--
/**
Backend challenges don't need solutions,
because they would need to be tested against a full working project.
Please check our contributing guidelines to learn more.
*/