File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
core/src/main/kotlin/org/evomaster/core/problem/rest/builder Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -50,13 +50,22 @@ object CreateResourceUtils {
50
50
POST /x
51
51
POST /x/{id}/y
52
52
GET /x/{id}/y
53
- not going to save the position of last POST, as same as target
53
+ not need to save the position of last POST, as same as target
54
54
55
55
however, might also be in the case of:
56
56
PUT /x/{id}
57
57
GET /x/{id}
58
58
*/
59
- before.saveCreatedResourceLocation = false
59
+ /*
60
+ removing the flag here was a mistake.
61
+ even if after is not using the resource path, between "before" and "after"
62
+ there could be other calls that need it, eg:
63
+
64
+ PUT /x/{a}
65
+ PUT /x/{a}/y/{b}
66
+ DELETE /x/{a}
67
+ */
68
+ // before.saveCreatedResourceLocation = false
60
69
61
70
// the target (eg GET) needs to use the location of first POST, or more correctly
62
71
// the same location used for the last POST (in case there is a deeper chain)
You can’t perform that action at this time.
0 commit comments