Should the API definitions be source-controlled? #12023
Unanswered
wkurniawan07
asked this question in
Q&A
Replies: 2 comments 2 replies
-
@wkurniawan07 do you mean that:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm in support of this proposal (have answered many support issues related to this) but was wondering if you had any examples where the above condition may not be easily fulfilled? Not very clear to me why this is the case. @wkurniawan07 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, we ask frontend devs to generate the API definitions from the backend with the command
./gradlew generateTypes
.This certainly works and has served us well, but there has always been an alternative: to commit the API definitions in the source control, and shift the burden of updating to whoever's updating API definitions instead.
Quite clearly, the benefit of committing API definitions in source control outweighs the cost, granted the synchronization can be guarded (which is a very strict condition that may not be so easily fulfilled). Is it time to shift the practice?
Beta Was this translation helpful? Give feedback.
All reactions