Overview
This service runs a simple HTTP server using BusyBox that serves files from thedata/ directory. It provides raw data that KrakenD can fetch, transform, and aggregate.
Port
The Fake API runs on port 8000:How It Works
The service uses a BusyBox container runninghttpd to serve static files:
data/ folder are accessible via HTTP requests.
Adding Custom Data Files
You can easily add or modify data by placing files in thedata/ directory:
- Create your data file (JSON, XML, or RSS)
- Save it in the
data/folder - Access it at
http://localhost:8000/your-file.json
The service automatically serves any file you add to the
data/ directory - no restart required.Example Endpoints
Here are some examples of how to use the Fake API:JSON Data
XML Data
RSS Feeds
Usage in KrakenD
The KrakenD configuration references the Fake API as a backend host:File Structure
The typical structure for data files:This is a development/demo service only. In production environments, you would connect KrakenD to real backend services and APIs.