LoginSignup
0
0

More than 3 years have passed since last update.

【Amazon API Gateway】 リソース作成時に "Resource's path part only allow a-zA-Z0-9...." って怒られた

Last updated at Posted at 2021-01-31

エラー内容

Amazon API Gatewayで
以下の図のようなリソースを作成しようと、
Image from Gyazo
こう入力したら、
Image from Gyazo
こんなエラーが出て怒られた。

Resource's path part only allow a-zA-Z0-9._- and curly braces at the beginning and the end.


解決方法

以下のようにやったら、うまくいった。

まずitemsだけ作成
アクション>リソースの作成
Image from Gyazo
以下スクショのとおり入力
Image from Gyazo
itemsができた
Image from Gyazo

つぎに、このままの状態でもう1回、アクション>リソースの作成
Image from Gyazo

以下入力
Image from Gyazo

{iid}が追加された
Image from Gyazo

この状態で、メソッドの追加
Image from Gyazo

今回のケースではGETを選ぶ
Image from Gyazo

あとはセットアップ
Image from Gyazo

以上です。

0
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
0
0