-
Notifications
You must be signed in to change notification settings - Fork 37
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
Usage and dependency documentation #107
Comments
Thanks for the feedback! Really appreciated. Have you checked the
Can you elaborate a bit more on what you haven't found at the first glance?
Agree that those are hard to find. The idea is again that users should open one of the sample and copy them from the gradle file. I was discussing with @macisamuele about changing the |
Well yes but it's not super intuitive to go here to find example usage. Again, I eventually found it but the second time I just searched "Retrofit.Builder()" There's not many files but this was the last one I clicked on I'm generally not a fan of "throwing it over the fence" to the tests for basic usage. For OSS libs, the pattern that I personally found to work well is the basic usage followed by detailed usage in code or docs. Basically a "Getting Started" section All I was looking for something as simple as the following on the README. If agreeable, I can do a PR. Basic Usageval retrofit: Retrofit = Retrofit.Builder()
.baseUrl(baseUrl)
.addConverterFactory(GeneratedCodeConverters.converterFactory())
.build()
val defaultAPI = retrofit.create(DefaultApi::class.java) Dependencies< copy & paste deps from sample gradle file here > or < links directly to gradle file from readme > |
Please go ahead. I think it definitely makes sense to add this inside the README. We just need to specify that this is specific to a specific configuration (e.g. |
Thanks for the great project! I just wanted to suggest adding some details to the documentation regarding usage as well as dependencies.
It's true that all of these things are available in the code via tests but it's not super intuitive where to find them. As I write this I know that I found the usage; it's fairly easy but since I didn't commit it to memory I'll have to dig through the tests again.
The same is true for the dependencies for Retrofit and Moshi and whatever else I might need. I'll have to dig around in the code to find out what version is supported.
To solve this, it would be great to have something in the README that has the 3-4 lines of code needed to use the generated output as well as the list of dependencies that need to be added to the build.
Thanks!
The text was updated successfully, but these errors were encountered: