832 B
832 B
| layout | published | noToc | noComments | noDate | title | subtitle | description | permalink | lang | tags | |||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| page | true | false | false | false | Fun - json_like_api.fun (CGI) | Documentation for json_like_api.fun (CGI) | Documentation for json_like_api.fun (CGI) | /documentation/examples/data/htdocumentation/json_like_api/ | en |
|
- Location: examples/data/htdocumentation/json_like_api.fun
- Category: CGI script used by HTTP server examples
Description
- Demonstrates returning JSON-like output from a CGI endpoint.
How to run
- Through one of the HTTP server examples, e.g.:
- export FUN_LIB_DIR="./lib"
- export FUN_EXEC="./build_debug/fun"
- ./build_debug/fun examples/net/http_server_cgi.fun
- Open: http://127.0.0.1:8080/json_like_api.fun
See also
- documentation/examples/httpserver.md (deep-dive)