質問編集履歴

1

products/?id=hogeの部分をproducts?id=hogeに変更

2018/05/21 22:42

投稿

tomboy
tomboy

スコア6

test CHANGED
File without changes
test CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  サーバー仕様書によると、
10
10
 
11
- http://hoge.com/api/products/?id=hoge
11
+ http://hoge.com/api/products?id=hoge
12
12
 
13
13
  にPOSTすることでidがhogeの製品の画像をuploadすることができるようなのですが、
14
14
 
@@ -72,7 +72,7 @@
72
72
 
73
73
  var xhr = new XMLHttpRequest();
74
74
 
75
- xhr.open('POST', 'http://hoge.com/api/products/?id=hoge', true);
75
+ xhr.open('POST', 'http://hoge.com/api/products?id=hoge', true);
76
76
 
77
77
  xhr.setRequestHeader('Content-Type', contentType);
78
78