Hi, I am sorry to ask here, but it seems I didn’t...
# documentation
s
Hi, I am sorry to ask here, but it seems I didn’t find the answer to my question in the documentation. Which is an ideomatic response from
provide_state
endpoint on provider? How is this response to be used next? In many of the examples and real world project I’ve seen, it returns simply JSON
{ "result": state }
. And I was wondering what benefit I could get from configuring this response?
m
The state needn't return anything, an HTTP 200 is all that is actually needed. The main thing is it should mutate your provider to allow the scenario to work.
s
Hence, it makes no difference which body I return from this function?
m
correct
👍 1
Which language are you using here, btw?
s
Python one love 🙂 However, we have a huge number of projects in PHP and JS, so I guess I have to deal with that too
m
We really don’t explain that endpoint very well, I’ll make a note of that for dealing with tomorrow
👍 1
With JS, it’s all wrapped up in the JS DSL so it’s much nicer. It just looks like a native JS function
I think PHP is more like Python though