Closed zmoon closed 2 years ago
No, but try with https://play-api.fortan-lang.org.
After #34 is implemented, you'll need to set the Origin: play.fortran-lang.org
header in the request for it to be accepted.
No, but try with https://play-api.fortan-lang.org/.
Thanks, here is the updated example for reference:
curl \
--location \
--request POST 'https://play-api.fortran-lang.org/run' \
--header 'Content-Type: application/json' \
--data-raw '{
"code": "program hello\r\n print *, \"Hello, World!\"\r\nend program hello\r\n",
"programInput": "",
"libs" : []
}'
:point_up: I did have to change the quoting of "Hello, World!" for it to work for me
Good catch, do you mind a quick PR to fix the snippet in the README? Thanks!
Is this example from the readme
supposed to work with
https://play.fortan-lang.org
? I tried but get a response ofWondering about linking code samples in FortranTipBrowser to this playground. I guess what would be more useful for that would be being able to pass the script in URL query parameters, as is possible with Godbolt.