File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,6 @@ Examples:
2121# Basic usage (URL-encoded)
2222curl " http://localhost:8000/compute?input=21%2B21"
2323
24- # Alternative URL-encoded formats
25- curl " http://localhost:8000/compute?input=21%20%2B%2021"
26- curl " http://localhost:8000/compute?input=21+21" # Some clients handle this
27-
2824# With custom timeout (URL-encoded)
2925curl " http://localhost:8000/compute?input=21%2B21&timeout=5.0"
3026```
@@ -62,14 +58,20 @@ curl -X POST http://localhost:8000/compute \
6258
6359### Response
6460
65- Both endpoints return a JSON response:
61+ The response is a JSON object with a ` result ` field.
6662
6763``` json
6864{
6965 "result" : 42
7066}
7167```
7268
69+ ``` json
70+ {
71+ "result" : " Hello, Monic!"
72+ }
73+ ```
74+
7375## Notes
7476
7577- The ` input ` field is required for both GET and POST requests
You can’t perform that action at this time.
0 commit comments