LoginSignup
1
0

More than 3 years have passed since last update.

API Gatewayでモックにレスポンスヘッダを設定する

Posted at

やりたいこと

API Gateway (REST API)のMock統合で、任意のレスポンスヘッダを返すようにしたい。

image.png

やりかた

Moge: Fuga

というレスポンスヘッダを返すようにする。

まずメソッドレスポンスでヘッダー追加を行う。
image.png

次に統合レスポンスでヘッダ追加を行う。
マッピングの値'Fuga'とシングルクォートで囲む必要があることに注意。
image.png

まったくAPI Gatewayは分かりづらい。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0