Skip to content
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

Add REST API Documentation Links #4557

Conversation

alzimmermsft
Copy link
Member

Fixes #4496

Adds link to REST API documentation in the JavaDocs for Storage Queues.

gapra-msft and others added 8 commits July 12, 2019 11:57
* SAS implementation

* Fixed some minor formatting issues

* Fixed checkstyle problems and test issue
Removes RawClients from Storage Blobs
…to ContainerClient (Azure#4376)

* Removed raw clients

* Added deleteContainer to StorageClient

* Added getAppendBlob with snapshot to ContainerClient
@alzimmermsft alzimmermsft added Storage Storage Service (Queues, Blobs, Files) Client This issue points to a problem in the data-plane of the library. labels Jul 24, 2019
@alzimmermsft alzimmermsft self-assigned this Jul 24, 2019
Copy link
Contributor

@sima-zhu sima-zhu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the REST link better to put before code snippet? It is a reference for code description to me.
Is it better to have @see before the URL link?
https://docs.oracle.com/javase/6/docs/technotes/tools/windows/javadoc.html#@see

@alzimmermsft
Copy link
Member Author

Is the REST link better to put before code snippet? It is a reference for code description to me.
Is it better to have @see before the URL link?
https://docs.oracle.com/javase/6/docs/technotes/tools/windows/javadoc.html#@see

I would think of the link to the REST API documentation as further information beyond the method description and example, which would lead it to either be after the example or within a @see tag. The @see is limited in the formatting it allows, it would end up being something like @see <a href="link">The Azure Docs</a>

Copy link
Contributor

@sima-zhu sima-zhu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you going to make changes to the file service as well?

@alzimmermsft alzimmermsft changed the base branch from storage-post-review1-dev to master July 26, 2019 17:18
@conniey
Copy link
Member

conniey commented Jul 26, 2019

There are a lot of resource_manager files. Did you edit those too? 🤔 2157 files is a lot. lol

@@ -108,6 +108,9 @@ public URL getQueueUrl() {
*
* {@codesnippet com.azure.storage.queue.queueAsyncClient.create}
*
* <p>For more information, see the
* <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/create-queue4">Azure Docs</a>.</p>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of generic "Azure Docs", it's nice to see where this links to like: "Azure Docs: Create queue"

Copy link
Member

@samvaity samvaity Jul 26, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, even I think something like this "Azure Docs: Create queue" could be useful!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, will this mean, that we will need to update the azure docs format in blob api too, to ensure consistency?

@alzimmermsft
Copy link
Member Author

There are a lot of resource_manager files. Did you edit those too? 🤔 2157 files is a lot. lol

Was re-targeting the merge to go into master instead of a feature branch.

@@ -124,6 +127,9 @@ public URL getQueueUrl() {
*
* {@codesnippet com.azure.storage.queue.queueAsyncClient.create#map}
*
* <p>For more information, see the
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding Rest docs link in javadocs,
Is this some standard guideline that all track 2 SDKs need to follow ?
Also, what happens when REST API docs link updates to a new version which doesn't correspond to our implemented SDK?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't a guideline for Track 2 SDKs, more of a nice to have feature given the depth of complexity in some of the Storage REST APIs. Additionally, Blobs has REST API doc links in previous versions and in Preview 1, so it is being consistent with it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@g2vinay in general, changes to our rest surface are only additive, and each parameter that was an addition at some point in time has a minimum version prominent in the description. If there is ever a breaking change to our rest surface, it is handled on a case by case basis. However, we don't diverge documentation pages. I would be impressed if one of these links became obsolete or problematic.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh. So I'm looking into our links a bit more. It seems that we may break links, but I'm having trouble finding a scenario where we would direct you to the wrong one.

@alzimmermsft alzimmermsft merged commit 71e8d07 into Azure:master Jul 30, 2019
@alzimmermsft alzimmermsft deleted the AzStorage_Add_REST_Docs_Link_to_JavaDocs_in_Queues branch July 30, 2019 21:11
sima-zhu pushed a commit to sima-zhu/azure-sdk-for-java that referenced this pull request Jul 30, 2019
* Added links REST API documentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Additional Information Link to REST API in Queue JavaDocs
7 participants