-
Notifications
You must be signed in to change notification settings - Fork 15
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
Adding validations to rest APIs #226
base: master
Are you sure you want to change the base?
Adding validations to rest APIs #226
Conversation
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.
PR looks good to me. @rishabhsharma22 can you please check if any updated packages are not breaking any features.
server/app/main.py
Outdated
|
||
# api to get mlmd file from cmf-server | ||
@app.get("/mlmd_pull/{pipeline_name}", response_class=HTMLResponse) | ||
async def mlmd_pull(info: Request, pipeline_name: str): | ||
async def mlmd_pull(pipeline_name: str, request: MLMDPullRequest): |
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.
It's not a good practice to include body in GET request. "exec_id" id can be part of uri
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.
Hi @shreyas-kulkarni09, I changed the mlmd_pull request to accept exec_id as a query parameter instead of in the JSON body. Thanks for the heads-up!
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.
Comments are good to have changes not a blocker. If suggested changes don't break other functionalities can be done as part of this issue or we can have separate issue for it
PR looks good to me. I think the issue that @shreyas-kulkarni09 has raised must be addressed and we are good to merge it. |
27ca4fc
to
a8c44c1
Compare
a8c44c1
to
c0ed27e
Compare
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.
PR looks good to me.
Related Issues / Pull Requests
Description
Using Pydantic library, added validations to rest APIs
What changes are proposed in this pull request?
Checklist:
uses Google-style formatting and any other formatting that is supported by mkdocs and plugins this project
uses.