How pauloreloy/multiapi works
This small Python program loads an API definition, substitutes input values into its endpoint, makes an HTTP GET request, and prints successful JSON responses. The shown handler demonstrates a CEP lookup; the configuration contents are not included, so the external service and endpoint cannot be identified. LogBuffer is a separate singleton utility, and the sampled code does not show it being used.
Main entry points: APIClient.py API Client · handler.py CLI Handler · api.json API Config
Components 7
Runtime
- CLI Handler
handler.py - API Client
classes/APIClient.py - API Config
config/api.json - Log Buffer
classes/logbuffer.py
Other components
- User
- HTTP API
- Console Output
Connections 6
- User → CLI Handler: runs
- CLI Handler → API Client: creates, calls
handler.py - API Client → API Config: loads
classes/APIClient.py - API Client → HTTP API: sends GET
classes/APIClient.py - HTTP API → API Client: returns response
classes/APIClient.py - CLI Handler → Console Output: prints JSON
handler.py