https://github.com/pzaino/fapi
Ultra simple and fast "File API" for data and logs collection
https://github.com/pzaino/fapi
golang logging rest-api
Last synced: 9 months ago
JSON representation
Ultra simple and fast "File API" for data and logs collection
- Host: GitHub
- URL: https://github.com/pzaino/fapi
- Owner: pzaino
- License: agpl-3.0
- Created: 2025-03-25T00:16:37.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-10-02T01:00:51.000Z (9 months ago)
- Last Synced: 2025-10-02T01:20:09.840Z (9 months ago)
- Topics: golang, logging, rest-api
- Language: Go
- Homepage:
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FAPI (File API)
A simple file API for logs, tests and other file operations via REST API.
I use it to collect logs and test results from my integration tests running in other Docker containers. It may be useful to you as well.
## Features
- Generates files out of received data
- Each request creates a new file with a unique name
- Supports multiple endpoints for different file types (e.g., logs, test results)
- Health and readiness checks for container orchestration systems
- Has a "catch-all" endpoint so no need to modify your code and tests to use it
## Building
```bash
./autobuild.sh
```
This will create a `bin` directory with the compiled binaries.
## Using the healthCheck tool
### Health check for API container
./check --host=api --port=8989 --check=health
### Readiness check for API container
./check --host=api --port=8989 --check=readiness --timeout=2s