-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
src/pycatcher/api_diagnostics.py
Outdated
# Define the input model using Pydantic | ||
|
||
|
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
src/pycatcher/api_run.py
Outdated
@@ -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) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
src/pycatcher/api_diagnostics.py
Outdated
# Define the output model | ||
|
||
|
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@aditya566 please merge the new changes from main to your branch |
Addressed the comments in this pull request |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Added APIs in api_diagnostics.py for the following methods:
build_seasonal_plot_classic
build_seasonal_plot_stl
build_seasonal_plot_mstl