Skip to content

Commit 50b4270

Browse files
committed
fix: curl example
1 parent 4492d6c commit 50b4270

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,8 @@ The web service can be consumed as follows:
4343
```bash
4444
curl --request POST \
4545
--url https://numero.vivekn.dev/api/v1/eval \
46-
--data '{
47-
"expression": "x + sin(max(2, 333))",
48-
"variables": {
49-
"x": 100
50-
}
51-
}'
46+
--header "Content-Type: application/json" \
47+
--data '{"expression":"x + sin(max(2, 333))","variables":{"x":100}}'
5248
```
5349

5450
## documentation

docs/numero/eval.bru

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ body:json {
1414
{
1515
"expression": "x + sin(max(2, 333))",
1616
"variables": {
17-
"y": 100
17+
"x": 100
1818
}
1919
}
2020
}

0 commit comments

Comments
 (0)