Add swagger for operations APIs#2682
Add swagger for operations APIs#2682zjpjack wants to merge 5 commits intoAzure:masterfrom zjpjack:msft-jizen/features
Conversation
Automation for azure-sdk-for-nodeEncountered a Subprocess error: (azure-sdk-for-node)
Command: ['/usr/local/bin/autorest', '/tmp/tmpto3v75a4/rest/specification/resources/resource-manager/readme.md', '--license-header=MICROSOFT_MIT_NO_VERSION', '--node-sdks-folder=/tmp/tmpto3v75a4/sdk', '--nodejs', '--use=@microsoft.azure/autorest.nodejs@^2.1.43'] AutoRest code generation utility [version: 2.0.4262; node: v7.10.1]
(C) 2018 Microsoft Corporation.
https://aka.ms/autorest
Loading AutoRest core '/root/.autorest/@microsoft.azure_autorest-core@2.0.4278/node_modules/@microsoft.azure/autorest-core/dist' (2.0.4278)
Loading AutoRest extension '@microsoft.azure/autorest.nodejs' (^2.1.43->2.1.59)
Loading AutoRest extension '@microsoft.azure/autorest.modeler' (2.3.44->2.3.44)
[Exception] No input files provided.
Use --help to get help information. |
Automation for azure-libraries-for-javaA PR has been created for you based on this PR content. Once this PR will be merged, content will be added to your service PR: |
Automation for azure-sdk-for-pythonA PR has been created for you based on this PR content. Once this PR will be merged, content will be added to your service PR: |
Automation for azure-sdk-for-goA PR has been created for you: |
…into msft-jizen/features
| "type": "string", | ||
| "description": "Operation description." | ||
| } | ||
| } |
There was a problem hiding this comment.
Please mark all properties are readonly given user cannot update any of these
"readOnly": true,
| "$ref": "#/definitions/OperationsList" | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
though this API is not page-able, it's recommended to add the extension
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
this will instruct code-gen to avoid emitting a wrapper model for the array
refer this
There was a problem hiding this comment.
Gets all the solution operations
| "$ref": "#/definitions/OperationDefinition" | ||
| }, | ||
| "description": "The array of solution operations." | ||
| } |
There was a problem hiding this comment.
Add property since we recommended to apply x-ms-pageable in the API
"nextLink": {
"readOnly": true,
"type": "string",
"description": "URL to get the next set of operation list results if there are any."
}
see this
| "OperationsList": { | ||
| "properties": { | ||
| "operations": { | ||
| "type": "array", |
| "$ref": "#/definitions/OperationsList" | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
though this API is not page-able, it's recommended to add the extension
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
this will instruct code-gen to avoid emitting a wrapper model for the array
refer this
| "description": { | ||
| "type": "string", | ||
| "description": "Operation description." | ||
| } |
| "OperationsList": { | ||
| "properties": { | ||
| "operations": { | ||
| "type": "array", |
| "description": "The array of feature operations." | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
please see comments below related to marking properties as readonly, applying x-ms-pagable extension and adding nextLink property. Please apply same here for Features operation apis.
| "description": "The array of resource operations." | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
Add property since we recommended to apply x-ms-pageable in the API
"nextLink": {
"readOnly": true,
"type": "string",
"description": "URL to get the next set of operation list results if there are any."
}
see this
| "$ref": "#/definitions/OperationsList" | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
Gets all the solution operations
|
@zjpjack is this PR still valid? if so please address the comments. If you are planning to send different PR at later point please close this. |
|
@AutorestCI regenerate azure-sdk-for-python |
|
@zjpjack any update? if this PR is still valid please address the comments, If you are planning to send a different PR then we can close this. |
|
@zjpjack closing this due to lack of response (~3 months). Feel free to open a new PR when you are ready to update the spec. thanks! |
Automation for azure-sdk-for-rubyNothing to generate for azure-sdk-for-ruby |
Next Steps to MergeImportant checks have failed. As of today they are not blocking this PR, but in near future they may.Addressing the following failures is highly recommended:
Comment generated by summarize-checks workflow run. |
Next Steps to MergeImportant checks have failed. As of today they are not blocking this PR, but in near future they may.Addressing the following failures is highly recommended:
Comment generated by summarize-checks workflow run. |
Add swagger for Microsoft.Resources, Microsoft.Solutions and Microsoft.Features operations APIs.
This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.
PR information
api-versionin the path should match theapi-versionin the spec).Quality of Swagger