Skip to content
New issue

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

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

Already on GitHub? # to your account

Adding API Endpoints #2

Merged
merged 9 commits into from
Jan 13, 2025
Merged

Adding API Endpoints #2

merged 9 commits into from
Jan 13, 2025

Conversation

lazyperson1020
Copy link

Port 8503 is used for API

@lazyperson1020
Copy link
Author

lazyperson1020 commented Dec 16, 2024

The following curl requests are supported

curl http://localhost:8503/api/filings
# Process filings (replace with actual accession number)
curl -X POST http://localhost:8503/api/filing/0000320193-23-000077/parse
curl -X POST http://localhost:8503/api/filing/0000320193-23-000077/clean
curl -X POST http://localhost:8503/api/filing/0000320193-23-000077/summarize
# Download filing
curl -X POST http://localhost:8503/api/filings/download \
-H "Content-Type: application/json" \
-d '{
    "ticker": "AAPL",
    "form_type": "10-K",
    "limit": 5,
    "after_date": "2023-01-01"
}'

@juntao juntao merged commit 8f6cbc7 into LlamaEdge:main Jan 13, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants