質問編集履歴

3

valificationsを追記

2021/05/24 01:03

投稿

ts21
ts21

スコア32

test CHANGED
File without changes
test CHANGED
@@ -60,7 +60,7 @@
60
60
 
61
61
  ```
62
62
 
63
- curl https://api.test.hogeapp.io/v2/{12345678-90ab-cdef-1234-567890abcdef}/plans \
63
+ curl https://api.test.hogeapp.io/v2/valifications/{12345678-90ab-cdef-1234-567890abcdef}/plans \
64
64
 
65
65
  -X PUT \
66
66
 
@@ -72,7 +72,7 @@
72
72
 
73
73
  ```
74
74
 
75
- curl https://api.test.hogeapp.io/v2/12345678-90ab-cdef-1234-567890abcdef/plans \
75
+ curl https://api.test.hogeapp.io/v2/valifications/12345678-90ab-cdef-1234-567890abcdef/plans \
76
76
 
77
77
  -X PUT \
78
78
 
@@ -84,7 +84,7 @@
84
84
 
85
85
  ```
86
86
 
87
- curl https://api.test.hogeapp.io/v2/id={12345678-90ab-cdef-1234-567890abcdef}/plans \
87
+ curl https://api.test.hogeapp.io/v2/valifications/id={12345678-90ab-cdef-1234-567890abcdef}/plans \
88
88
 
89
89
  -X PUT \
90
90
 
@@ -96,7 +96,7 @@
96
96
 
97
97
  ```
98
98
 
99
- curl https://api.test.hogeapp.io/v2/id=12345678-90ab-cdef-1234-567890abcdef/plans \
99
+ curl https://api.test.hogeapp.io/v2/valifications/id=12345678-90ab-cdef-1234-567890abcdef/plans \
100
100
 
101
101
  -X PUT \
102
102
 

2

追記

2021/05/24 01:03

投稿

ts21
ts21

スコア32

test CHANGED
File without changes
test CHANGED
@@ -69,3 +69,39 @@
69
69
  -H "Authorization: Bearer ***********"
70
70
 
71
71
  ```
72
+
73
+ ```
74
+
75
+ curl https://api.test.hogeapp.io/v2/12345678-90ab-cdef-1234-567890abcdef/plans \
76
+
77
+ -X PUT \
78
+
79
+ -H "Connect-Type: application/json" \
80
+
81
+ -H "Authorization: Bearer ***********"
82
+
83
+ ```
84
+
85
+ ```
86
+
87
+ curl https://api.test.hogeapp.io/v2/id={12345678-90ab-cdef-1234-567890abcdef}/plans \
88
+
89
+ -X PUT \
90
+
91
+ -H "Connect-Type: application/json" \
92
+
93
+ -H "Authorization: Bearer ***********"
94
+
95
+ ```
96
+
97
+ ```
98
+
99
+ curl https://api.test.hogeapp.io/v2/id=12345678-90ab-cdef-1234-567890abcdef/plans \
100
+
101
+ -X PUT \
102
+
103
+ -H "Connect-Type: application/json" \
104
+
105
+ -H "Authorization: Bearer ***********"
106
+
107
+ ```

1

追記

2021/05/24 00:46

投稿

ts21
ts21

スコア32

test CHANGED
File without changes
test CHANGED
@@ -47,3 +47,25 @@
47
47
  https://api.test.hogeapp.io/v2/verifications/{id}/plans
48
48
 
49
49
  ```
50
+
51
+ idについては、以下の様なフォーマットでしたので、文字列を入れることになりそうです 
52
+
53
+ id string <uuid> Example: 12345678-90ab-cdef-1234-567890abcdef
54
+
55
+
56
+
57
+ ## やったこと
58
+
59
+ 次の様な指定でcurlしてみましたが404が返ってきました
60
+
61
+ ```
62
+
63
+ curl https://api.test.hogeapp.io/v2/{12345678-90ab-cdef-1234-567890abcdef}/plans \
64
+
65
+ -X PUT \
66
+
67
+ -H "Connect-Type: application/json" \
68
+
69
+ -H "Authorization: Bearer ***********"
70
+
71
+ ```