Skip to content

Add a hello endpoint#30

Open
gokhanpicgeta wants to merge 1 commit into
masterfrom
factory/add-a-hello-endpoint-00812cd4
Open

Add a hello endpoint#30
gokhanpicgeta wants to merge 1 commit into
masterfrom
factory/add-a-hello-endpoint-00812cd4

Conversation

@gokhanpicgeta
Copy link
Copy Markdown
Collaborator

Automated implementation by Silverpond Factory (run 00812cd4).

# Completion Summary

## Files changed

- **factory/server.py** (new): Minimal HTTP server using Python's stdlib `http.server`. Handles `GET /hello` → `{"message": "hello"}` (200 JSON). 404 for all other paths.
- **factory/cli.py**: Added `serve` command that starts the HTTP server. Options: `--host` (default `0.0.0.0`) and `--port` / `-p` (default `8080`).

## Assumptions

- No new dependencies required — used stdlib `http.server`.
- Default port 8080 is conventional for non-root HTTP services.
- The `/hello` endpoint returns JSON for easy programmatic use.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant