asyrjasalo / RESTinstance

Robot Framework library for RESTful JSON APIs
https://asyrjasalo.github.io/RESTinstance
GNU Lesser General Public License v3.0
203 stars 84 forks source link

Modify json before use in http method #119

Closed tremkonzah closed 2 years ago

tremkonzah commented 2 years ago

Would be possible to do it with RESTinstance?

I have scenario creating JSON file for baseline request with a valid data i.e valid user id

I would like to use the same file, however I wan to modify this file on the fly before put them to the POST /my/endpoint body=my_file.json

example I want to change id to invalid id or remove the user id from json object before sent to POST

Thanks

asimell commented 2 years ago

It's not possible with RESTinstance. However, you can use for example JSONlibrary to modify the JSON before you send them using RESTinstance keywords.

asimell commented 2 years ago

We're not adding support for this as there are multiple other ways to get the same result. The point of this library is to send and validate REST requests, not modifying JSON, so closing this issue.