-
Notifications
You must be signed in to change notification settings - Fork 129
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
Get entity api #5456
Get entity api #5456
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.
LGTM, but I may not be the best expert, you may want to get Larry's review.
* @return Entity list paged response. | ||
*/ | ||
Response<Models::TableEntity> GetEntity( |
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.
The comment doesn't match the Response<T>
. It isn't a paged response.
if (GetParam() == AuthType::Key) | ||
{ | ||
EXPECT_TRUE(true); | ||
return; | ||
} |
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.
Why do we have this type of parameterized test if it doesn't make sense here? Deserves a comment.
auto const httpStatusCode = rawResponse->GetStatusCode(); | ||
if (httpStatusCode != Core::Http::HttpStatusCode::Ok) | ||
{ | ||
throw Core::RequestFailedException(rawResponse); | ||
} |
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.
Do we have a test for the non-happy error path here?
to get just one entity , this api was also requested in the api review
Pull Request Checklist
Please leverage this checklist as a reminder to address commonly occurring feedback when submitting a pull request to make sure your PR can be reviewed quickly:
See the detailed list in the contributing guide.