-
Notifications
You must be signed in to change notification settings - Fork 76
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
[v6] Generate useful README files #594
Comments
None of the languages are currently generating heavy readmes here's what the other languages do right now: Python: Readme with general information about Azure Management, nothing specific about the generated library. I have started a conversation with the Autorest crew to see if we can reach agreement on consistent Readmes across languages. I would propose we generate a README with the following information: Service Description: From the swagger I'm reluctant about generating samples, usually samples are hand-picked and carefully crafted to describe a set of steps that are meaningful for each service. For example a service may be interested to show the following hero scenario 1. authenticate 2. create and entity 3. poll the creation operation until completed 4. list all the entities where another service may have a very different flow. If we want to provide samples, I think Python's approach is reasonable, where they point users to https://github.com/Azure-Samples/azure-samples-python-management Python sample README: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/containerservice/azure-mgmt-containerservice/README.md /cc: @lmazuel, @sarangan12 |
Maybe we could at least provide one simple example for customers just like track1 mgmt. SDK? Otherwise it may cause user's confusion on how to use the track2 SDK once we publish it. @nickzhums How do you think of it? |
it will be great if we can show how to authenticate and make a simple request in README for Track 2 package (this is what track 1 package currently has, so would be a bummer if we don't continue it in track 2) |
@qiaozha As discussed in our meeting, I discussed the link idea with the rest of the autorest crew. The general consensus was that the samples link should be pointing towards the samples repository. |
If that's the case, Could you point the sample link of mgmt. plane SDK to https://github.com/Azure-Samples/azure-samples-js-management this repo. Thanks |
@sarangan12 Would the link be passed via a flag to the auto rest command? |
@deyaaeldeen Can you update this issue with the current status? Last week, there were several changes that went into the readme file. Can you please confirm if that resolves this issue? |
Auto generate useful Readme files with code samples in Typescript that demonstrates the use of the generated SDK.
We need to make sure generated samples are valid and can be run. Previous Autorest.Typescript had some issues generating invalid samples, see #576
The text was updated successfully, but these errors were encountered: