1
Fork 0

switch to new api in tests

This commit is contained in:
Jan-Erik Rediger 2024-06-03 21:05:13 +02:00
parent 6d6bbe0840
commit ac5f372793
2 changed files with 2 additions and 21 deletions

View file

@ -1,11 +0,0 @@
POST https://hare-exec.fly.dev/v1/exec
content-type: application/json
```
{
"sandbox": "hare",
"command": "run",
"files": {
"": "use fmt;\nexport fn main() void = {\nfmt::println(\"hello world\")!;\n};\n"
}
}
```

View file

@ -8,11 +8,7 @@ POST http://localhost:8080/v1/exec
content-type: application/json
```
{
"sandbox": "hare",
"command": "run",
"files": {
"": "use fmt;\nexport fn main() void = {\nfmt::println(\"hello world\")!;\n};\n"
}
"code": "use fmt;\nexport fn main() void = {\nfmt::println(\"hello world\")!;\n};\n"
}
```
HTTP 200
@ -26,11 +22,7 @@ POST http://localhost:8080/v1/exec
content-type: application/json
```
{
"sandbox": "hare",
"command": "run",
"files": {
"": "use fmt;\nexport fn main()\n"
}
"code": "use fmt;\nexport fn main()\n"
}
```
HTTP 200