-
-
Notifications
You must be signed in to change notification settings - Fork 217
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
[REST-compliance] Create a test to be sure APIs are REST compliant #1284
Comments
Thinking twice, not sure this is doable and correct because of exceptions like:
|
@hdurix : it's like "chips" :D |
Maybe to handle the exceptions, in the test, add 2 hard coded lists : List<String> singularEndedWithSExceptions = List.of("codespace",..);
List<String> pluralNotEndedWithSExceptions = List.of("feet", ...) And if a word in the uri does not match the rule, check if it's present in corresponding list of exceptions. |
Yep |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See if there is a way to create a test to be sure all JHipster Lite's APIs are REST compliant (more details in #1273).
Could be something like a integration tests getting all the exposed APIs (not sure there is easier with Spring, to check), and checking that:
/api/
s
s
Check if those rules can be applied for every URIs. If yes, keep this test and redirect to a documentation when failing.
The text was updated successfully, but these errors were encountered: