Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optional API functionality to run the program via HTTP #42

Closed
wants to merge 1 commit into from

Conversation

GGontijo
Copy link

@GGontijo GGontijo commented Oct 1, 2024

This PR adds an option to run the program as an API, addressing issue #7.

You can now use the --use-api flag to start an HTTP server and interact with the program via and endpoint. The --api-port option allows setting the server port, and when using the API mode, interactive prompts are skipped.

The CLI mode remains unchanged for users who prefer it.

Closes issue #7.

@GGontijo GGontijo closed this Oct 7, 2024
@GGontijo GGontijo deleted the api-functionality branch October 7, 2024 01:04
@GGontijo GGontijo restored the api-functionality branch October 7, 2024 01:16
@GGontijo GGontijo deleted the api-functionality branch October 7, 2024 01:17
@GGontijo GGontijo restored the api-functionality branch October 7, 2024 01:17
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.

REST API
1 participant