You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am migrating from springfox to spring rest docs so I can move forward with the spring boot 2.2 upgrade. The thing is I don't want to constantly update the adoc file to add include::{snippets}/directory/curl-request.adoc[] or operation::directory[] when more tests are added. Is there a more automated way like including wildcards to include recursively all snippets in generated-snippets directory?
Also a bonus question, I have in my configuration alwaysDo(document("{class-name}/{method-name}") but the method names include a -when the method name has a word with all caps likeGIVENbecomesg-i-v-e-n. I would like it to be given`.
Thanks!
The text was updated successfully, but these errors were encountered:
Is there a more automated way like including wildcards to include recursively all snippets in generated-snippets directory?
Not as part of REST Docs itself. I believe that you can't automate this as you'll have to manually write some documentation to explain the purpose of the new endpoint. If you disagree with that, you could write something yourself that generates the main doc file based on what snippets REST Docs has generated.
Also a bonus question, I have in my configuration alwaysDo(document("{class-name}/{method-name}") but the method names include a - when the method name has a word with all caps like GIVEN becomes g-i-v-e-n. I would like it to be given.
This isn't possible at the moment. Please open a separate issue and I'll have a think about whether the current behaviour should be considered a bug, a plug-point is needed, or both.
I am migrating from springfox to spring rest docs so I can move forward with the spring boot 2.2 upgrade. The thing is I don't want to constantly update the adoc file to add
include::{snippets}/directory/curl-request.adoc[]
oroperation::directory[]
when more tests are added. Is there a more automated way like including wildcards to include recursively all snippets ingenerated-snippets
directory?Also a bonus question, I have in my configuration
alwaysDo(document("{class-name}/{method-name}") but the method names include a
-when the method name has a word with all caps like
GIVENbecomes
g-i-v-e-n. I would like it to be
given`.Thanks!
The text was updated successfully, but these errors were encountered: