Skip to content

Comments

Add swagger for operations APIs#2682

Closed
zjpjack wants to merge 5 commits intoAzure:masterfrom
zjpjack:msft-jizen/features
Closed

Add swagger for operations APIs#2682
zjpjack wants to merge 5 commits intoAzure:masterfrom
zjpjack:msft-jizen/features

Conversation

@zjpjack
Copy link
Contributor

@zjpjack zjpjack commented Mar 16, 2018

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

  • The title of the PR is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
  • Except for special cases involving multiple contributors, the PR is started from a fork of the main repository, not a branch.
  • If applicable, the PR references the bug/issue that it fixes.
  • Swagger files are correctly named (e.g. the api-version in the path should match the api-version in the spec).

Quality of Swagger

@zjpjack zjpjack requested a review from a user March 16, 2018 19:34
@AutorestCI
Copy link

AutorestCI commented Mar 16, 2018

Automation for azure-sdk-for-node

Encountered 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']
Finished with return code 1
and output:

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.

@AutorestCI
Copy link

AutorestCI commented Mar 16, 2018

Automation for azure-libraries-for-java

A 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:
AutorestCI/azure-libraries-for-java#154

@AutorestCI
Copy link

AutorestCI commented Mar 16, 2018

Automation for azure-sdk-for-python

A 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:
Azure/azure-sdk-for-python#2570

@AutorestCI
Copy link

AutorestCI commented Mar 16, 2018

Automation for azure-sdk-for-go

A PR has been created for you:
Azure/azure-sdk-for-go#2019

"type": "string",
"description": "Operation description."
}
}
Copy link
Member

Choose a reason for hiding this comment

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

Please mark all properties are readonly given user cannot update any of these

"readOnly": true,

"$ref": "#/definitions/OperationsList"
}
}
}
Copy link
Member

Choose a reason for hiding this comment

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

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Gets all the solution operations

"$ref": "#/definitions/OperationDefinition"
},
"description": "The array of solution operations."
}
Copy link
Member

Choose a reason for hiding this comment

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

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",
Copy link
Member

Choose a reason for hiding this comment

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

"readOnly": true,

"$ref": "#/definitions/OperationsList"
}
}
}
Copy link
Member

Choose a reason for hiding this comment

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

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."
}
Copy link
Member

Choose a reason for hiding this comment

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

Mark all properties are readonly, ref this

"OperationsList": {
"properties": {
"operations": {
"type": "array",
Copy link
Member

Choose a reason for hiding this comment

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

"readOnly": true

"description": "The array of feature operations."
}
}
}
Copy link
Member

Choose a reason for hiding this comment

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

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."
}
}
}
Copy link
Member

Choose a reason for hiding this comment

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

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"
}
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Gets all the solution operations

@anuchandy
Copy link
Member

@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.

@lmazuel
Copy link
Member

lmazuel commented Apr 20, 2018

@AutorestCI regenerate azure-sdk-for-python

@anuchandy
Copy link
Member

@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.

@anuchandy
Copy link
Member

@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!

@anuchandy anuchandy closed this Jun 12, 2018
@AutorestCI
Copy link

AutorestCI commented Jun 12, 2018

Automation for azure-sdk-for-ruby

Nothing to generate for azure-sdk-for-ruby

@github-actions
Copy link

Next Steps to Merge

Important 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:
  • ⚠️ The check named SDK Validation Status has failed. Refer to the check in the PR's 'Checks' tab for details on how to fix it and consult the aka.ms/ci-fix guide


Comment generated by summarize-checks workflow run.

@github-actions
Copy link

github-actions bot commented Nov 11, 2025

Next Steps to Merge

Important 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:
  • ⚠️ The check named SDK Validation Status has failed. Refer to the check in the PR's 'Checks' tab for details on how to fix it and consult the aka.ms/ci-fix guide


Comment generated by summarize-checks workflow run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants