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

Issue# 109 - Added APIs #111

Merged
merged 3 commits into from
Jan 20, 2025
Merged

Issue# 109 - Added APIs #111

merged 3 commits into from
Jan 20, 2025

Conversation

aditya566
Copy link
Collaborator

Added APIs in api_diagnostics.py for the following methods:

build_seasonal_plot_classic
build_seasonal_plot_stl
build_seasonal_plot_mstl

# Define the input model using Pydantic


Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please remove these empty spaces if possible?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -3,6 +3,7 @@

def main():
uvicorn.run("src.pycatcher.api_catch:app", host="127.0.0.1", port=8000, reload=True)
uvicorn.run("src.pycatcher.api_diagnostics:app", host="127.0.0.1", port=8000, reload=True)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we launch both the endpoints in the same IP address?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it is possible. But, maybe not the way I coded it. It was hard to test this locally. Nonetheless, I updated api_run.py and changed the code to make sure the port conflict doesn't arise.

# Define the output model


Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you also please remove these 2 new lines

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@jpamarthi
Copy link
Collaborator

@aditya566 please merge the new changes from main to your branch

@aditya566
Copy link
Collaborator Author

Addressed the comments in this pull request

Copy link
Collaborator

@jpamarthi jpamarthi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jpamarthi jpamarthi merged commit c958ef1 into main Jan 20, 2025
1 check passed
@jpamarthi jpamarthi deleted the uday_010825 branch January 20, 2025 03:00
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.

2 participants