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

Api center #27617

Merged
merged 17 commits into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
cae0299
Merge branch 'main' of github.com:Azure/azure-rest-api-specs into api…
markcowl Jan 9, 2024
4c8ad6c
Removing deuplicate definition
markcowl Jan 9, 2024
1cd09db
Fix example formatting and some operation signatures
markcowl Jan 9, 2024
1d5a06a
Merge branch 'api-center-tsp' of github.com:Azure/azure-rest-api-spec…
markcowl Jan 9, 2024
ec77ee4
Merge branch 'api-center-tsp' of github.com:Azure/azure-rest-api-spec…
markcowl Jan 31, 2024
17c165f
Add API version 2023-10-01-preview [Import] (#27385)
pracagrawal Jan 31, 2024
1fc2f86
Mjmadhu playwrighttesting microsoft.azure playwright service 2023 10 …
mjmadhu Jan 31, 2024
f3cd692
HDInsight: onboard new apiversion 2023-11-01-preview (#27306)
dw511214992 Jan 31, 2024
3efb341
[Azure AI - Health Insights] - Typespec revision for Health Insights …
asaflevi-ms Jan 31, 2024
68030f1
[ci-fix.md] Add known issues to "Swagger LintDiff for TypeSpec" (#27573)
mikeharder Jan 31, 2024
dfd7afd
Adding new version 2024-01-01-preview for updating monitor Properties…
apoorvasingh130 Feb 1, 2024
eca452e
[Hub Generated] Review request for Microsoft.ContainerService/aks to …
FumingZhang Feb 1, 2024
6a5d5f0
Add AppPlatform 2024-01-01-preview (#27113)
saragluna Feb 1, 2024
b422f17
Azure Deployment Manager is being decommissioned. Deleting the Rest A…
rohantagaru Feb 1, 2024
784dcbc
updating preview tag (#27555)
mwesigwaguma Feb 1, 2024
750a829
Fixing response codes for importSpecification
markcowl Feb 1, 2024
fc289fd
Merging with upstream
markcowl Feb 1, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixing response codes for importSpecification
  • Loading branch information
markcowl committed Feb 1, 2024
commit 750a829e34c92d623ef3a30a589e915de3e220ba
11 changes: 9 additions & 2 deletions specification/apicenter/ApiCenter.Management/ApiDefinition.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ interface ApiDefinitions {
@doc("Returns a collection of API definitions.")
list is ArmResourceListByParent<ApiDefinition>;
@doc("Imports the API specification.")
importSpecification is ArmResourceActionNoContentAsync<
importSpecification is ArmResourceActionAsync<
ApiDefinition,
ApiSpecImportRequest
ApiSpecImportRequest,
ApiImportSuccess
>;
@doc("Exports the API specification.")
exportSpecification is ArmResourceActionAsync<
Expand All @@ -50,3 +51,9 @@ interface ApiDefinitions {
ApiSpecExportResult
>;
}

/** The API specification was successfully imported. */
model ApiImportSuccess {
/** The response status code */
@statusCode code: 200;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2955,6 +2955,9 @@
}
],
"responses": {
"200": {
"description": "The API specification was successfully imported."
},
"202": {
"description": "Resource operation accepted.",
"headers": {
Expand All @@ -2969,9 +2972,6 @@
}
}
},
"204": {
"description": "Action completed successfully."
},
"default": {
"description": "An unexpected error response.",
"schema": {
Expand Down Expand Up @@ -3477,6 +3477,10 @@
}
}
},
"ApiImportSuccess": {
"type": "object",
"description": "The API specification was successfully imported."
},
"ApiKind": {
"type": "string",
"description": "The kind of the API",
Expand Down