1
Smarter Duplicate | Auto Update Reference
Source: Kong/insomnia#3586 · opened by @crimsonvspurple
Is your feature request related to a problem? Please describe.
Imagine you have 5 requests in a folder for an entity1: C, R, L, U, D.
R/U/D references response body ($.data.id) of C.
Now you want to have another entity2. So you duplicate the folder. Rename the folder to corresponding new entity2.
But now the _new_ R/U/D requests of entity2 are still referencing entity1's R. This is very time consuming and annoying to edit/update as there can be many variables per request.
Describe the solution you'd like
When duplicating _multiple_ requests, if there are variables in those requests that reference the requests being duplicated, update those references to newly duplicated requests.
Describe alternatives you've considered
> Child Requests
A new type of requests where R/U/D will be descendant of C (in example) and refer to that request in _relative_ terms. This is a much more involved solution and is very powerful and open up many more creative ways.
Imagine you have 5 requests in a folder for an entity1: C, R, L, U, D.
R/U/D references response body ($.data.id) of C.
Now you want to have another entity2. So you duplicate the folder. Rename the folder to corresponding new entity2.
But now the _new_ R/U/D requests of entity2 are still referencing entity1's R. This is very time consuming and annoying to edit/update as there can be many variables per request.
Describe the solution you'd like
When duplicating _multiple_ requests, if there are variables in those requests that reference the requests being duplicated, update those references to newly duplicated requests.
Describe alternatives you've considered
> Child Requests
A new type of requests where R/U/D will be descendant of C (in example) and refer to that request in _relative_ terms. This is a much more involved solution and is very powerful and open up many more creative ways.
No pledges yet. Be the first to back this.
Comments
Similar requests
Resolve File References
11 votes · 0 comments
Tags should be able to reference requests in other collections
1 vote · 0 comments
Array support in environment variables
6 votes · 0 comments
Access value from REQUEST payload
2 votes · 0 comments
Core - reference Authorization header in form body
1 vote · 0 comments
No comments yet.