1
0
Fork 0
forked from fun/fun

Moved all docs from ./docs/ to ./web/documentation/ to be available on the website. No code changes. (0.40.5)

This commit is contained in:
Johannes Findeisen 2026-04-10 23:27:55 +02:00
commit 567fa73796
224 changed files with 4584 additions and 1139 deletions

View file

@ -0,0 +1,43 @@
---
layout: page
published: true
noToc: true
noComments: false
noDate: false
title: Fun - json_like_api.fun (CGI)
subtitle: Documentation for json_like_api.fun (CGI)
description: Documentation for json_like_api.fun (CGI)
permalink: /documentation/examples/data/htdocumentation/json_like_api/
lang: en
tags:
- documentation
- handbook
- installation
- usage
- introduction
- help
- guide
- howto
- docs
- specifications
- specs
- repl
---
# json_like_api.fun (CGI)
- 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)