The source for REST API specifications for Microsoft Azure.
Перейти к файлу
Siddique Juman 1bd0ceabe6 Azure Gov Profile (#5821)
* Azure Gov Profile

* Azure Gov Profile
2019-05-01 11:08:19 -07:00
.github Adding ARM section to the template (#4569) 2018-11-29 09:17:27 -08:00
.vscode [Merge is planed on 2019/04/29] Move scripts from this repo. (#5719) 2019-04-29 11:28:37 -07:00
arm-compute Update skus for Debian, SLES and Ubuntu (#5043) 2019-01-28 10:52:23 -08:00
documentation fix: Remove BOM for Avacodo errors (#5623) 2019-04-15 10:06:38 -07:00
profile Azure Gov Profile (#5821) 2019-05-01 11:08:19 -07:00
profiles chore: Renormalize line endings in other files (#5596) 2019-04-11 16:58:14 -07:00
scripts [Merge is planed on 2019/04/29] Move scripts from this repo. (#5719) 2019-04-29 11:28:37 -07:00
specification fix: alertsmanagement/resource-manager/Microsoft.AlertsManagement (#5784) 2019-05-01 10:30:21 -07:00
test [Merge is planed on 2019/04/29] Move scripts from this repo. (#5719) 2019-04-29 11:28:37 -07:00
.editorconfig chore: Enable whitespace trimming in JSON files (#4791) 2018-12-06 09:50:01 +05:30
.gitattributes chore: Add initial .gitattributes for line endings (#4746) 2019-04-06 07:51:33 -07:00
.gitignore Switch `breaking-changes` and `momentOfTruth` scripts to TypeScript (#5643) 2019-04-15 15:20:03 -07:00
.travis.yml [Merge is planed on 2019/04/29] Move scripts from this repo. (#5719) 2019-04-29 11:28:37 -07:00
CODEOWNERS Update CODEOWNERS (#5794) 2019-04-29 16:08:05 -07:00
LICENSE Adding semantic and model validator to CI (#910) 2017-02-06 12:37:59 -08:00
README.md typo: README.md (#4541) 2018-11-26 13:24:09 -08:00
azure-pipelines.yml Update rest-api-spec-scripts to 0.2 and remote travis-ci jobs (except… (#5742) 2019-04-23 18:16:53 -07:00
package.json [Merge is planed on 2019/04/29] Move scripts from this repo. (#5719) 2019-04-29 11:28:37 -07:00
preproduction-azure-pipelines.yml [Merge is planed on 2019/04/29] Move scripts from this repo. (#5719) 2019-04-29 11:28:37 -07:00
specificationRepositoryConfiguration.json Rename sdkAutomationConfiguration.json to specificationRepositoryConfiguration.json (#5679) 2019-04-17 09:14:12 -07:00
tsconfig.json modelValidation2 and semanticValidation2 (#5765) 2019-04-25 16:09:05 -07:00

README.md

Repo Status

Azure REST API Specifications

Description

This repository is the canonical source for REST API specifications for Microsoft Azure.

Basics

If you're a spec author looking for information about all of the repositories and steps in the pipeline, go to the adx-documentation-pr repository. Make sure to join the Github Azure organization to get access to that repo.

Latest improvement: Microsoft employees can try out our new experience at OpenAPI Hub - online experience for using our validation tools and finding your workflow.

Please check the announcements page for any new updates since your last visit.

Getting started

Directory Structure

The structure of the directory should strictly follow these rules:

  1. Profile: The profile holder contains the profiles' definition MD files. these files will contain information and references to the snapshots of the RPs' Resource types or Dataplane API versions that represent a specific profile.

  2. Specification: This folder the is root folder for all Specs (Management and Dataplane) related docs.

  3. {RP-Name} Folders - each RP will have a separate folder

  4. 'resource-manager' and 'data-plane' Folders: the RPs can put specs in one of two categories: resource-manager (for ARM resources) and data-plane (for everything else) . The autorest configuration file (readme.md) for the RP should be inside this folder

  5. 'preview' and 'stable' Folders: Varying levels of stability exist in our repository. Each API Version folder should be categorized as either still accepting breaking changes, or no longer accepting breaking changes. This is not a direct analog for whether or not an API Version has the "-preview" suffix or not. SDKs that are generated from 'preview' folder items should indicate to their customers in the most idiomatic way that breaking changes may still be coming.

  6. API versions: this folder will be the direct child of the category folder. there will be one such folder per resource type or dataplane service version. This folder will contain the OpenAPI validation Specs (Swaggers previously) and the examples folder.

  7. Examples: the example folder will contain the x-ms-examples files. it will reside under the APIs or Resources' version folders as different APIs or Resource types version can have different examples.

  8. Notes:

    • folder names should be singular (ie, 'profile' not 'profiles' ) -- this removes ambiguity for some non-english speakers.
    • generic folder names should be lower-case
    • proper-name/product name/namespace folders can be PascalCased (ie, "KeyVault")
    • files are whatever case you think is good for your soul.

The structure should appear like so:

.
\---specification
|    +---automation
|    |   \---resource-manager
|    |       \---Microsoft.Automation
|    |           \---stable
|    |               \---2015-10-31
|    |                   \---examples
|    +---batch
|    |   +---data-plane
|    |   |   \---Microsoft.Batch
|    |   |       +---stable
|    |   |       |   +---2015-12-01.2.2
|    |   |       |   +---2016-02-01.3.0
|    |   |       |   +---2016-07-01.3.1
|    |   |       |   +---2017-01-01.4.0
|    |   |       |       \---examples
|    |   |       \---preview
|    |   |           \---2017-05-01.5.0
|    |   \---resource-manager
|    |       \---Microsoft.Batch
|    |           +---stable
|    |           |   +---2015-12-01
|    |           |   +---2017-01-01
|    |           |       \---examples
|    |           \---2017-05-01
|    |               \---examples
|    +---billing
|        \---resource-manager
|            \---Microsoft.Billing
|                \---stable
|                |   +---2017-02-27-preview
|                |       \---examples
|                +---preview
|                    \---2017-04-24-preview
|                        \---examples
\--- readme.md

Currently, the specifications are expected to be in Swagger JSON format

Next steps

The next step in the process after a spec is completed is to generate SDKs and API reference documentation. Go to the Azure Developer Experience guide for more information.


This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.