-
Notifications
You must be signed in to change notification settings - Fork 105
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
Entity Web API generation #597
Entity Web API generation #597
Conversation
…plugin into entity-web-api-generation
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 @bohdan-harniuk, thank you for this cool improvement. Please check the below suggestions, and additionally I have a concern regarding the checkbox and what happens if you don't select the pointed checkboxes.
So, basically we should have them as dependency or make them individually, because the end-user may not need the Admin UiComponents, but needs only the WebAPI required files.
Please let me know if there are any questions.
Thank you.
@@ -26,12 +27,14 @@ public DeleteEntityControllerFileData( | |||
final @NotNull String entityName, | |||
final @NotNull String moduleName, | |||
final @NotNull String acl, | |||
final @NotNull String entityId | |||
final @NotNull String entityId, | |||
final boolean isDeleteCommandHasInterface |
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.
Let's replace this one to a more readable version: hasDeleteCommandInterface
or deleteCommandHasInterface
.
final boolean isDeleteCommandHasInterface | |
final boolean hasDeleteCommandInterface |
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.
@@ -35,7 +37,8 @@ public SaveEntityControllerFileData( | |||
final @NotNull String entityId, | |||
final @NotNull String dtoName, | |||
final @NotNull String dtoInterfaceName, | |||
final boolean isDtoWithInterface | |||
final boolean isDtoWithInterface, | |||
final boolean isSaveCommandHasInterface |
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.
Same here.
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.
*/ | ||
public UiComponentDataProviderData( | ||
final String name, | ||
final String path, | ||
final String entityName, | ||
final String entityIdFieldName | ||
final String entityIdFieldName, | ||
final boolean isQueryHasInterface |
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.
Same here
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.
Hello, @eduard13! Thank you for the great ideas in your code review! What was done:
Thank you!!! Now it looks better! Could you please proceed with the code review? |
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.
Good job 👍
Description (*)
This PR adds the possibility of generating REST API endpoints for managing entity generated with the entity creator feature.
What was done:
Contribution checklist (*)