Comments (1)
Generator group APIs based on the operationId
. Please add operationId for each of your API in swagger.
{
"openapi": "3.0.1",
"servers": [
{
"url": "http://apiurl.com"
}
],
"info": {
"title": "Import API",
"version": "v1"
},
"paths": {
"/api/import/controller1/ApplicationClusterPackage": {
"post": {
"tags": [
"controller1"
],
"operationId": "ApplicationClusterPackage",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Apicontroller1ApplicationClusterPackage"
}
}
},
"text/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Apicontroller1ApplicationClusterPackage"
}
}
},
"application/*+json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Apicontroller1ApplicationClusterPackage"
}
}
}
}
},
"responses": {
"200": {
"description": "Success"
}
}
}
},
"/api/import/controller1/BackupPolicy": {
"post": {
"tags": [
"controller1"
],
"operationId": "BackupPolicy",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Apicontroller1BackupPolicy"
}
}
},
"text/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Apicontroller1BackupPolicy"
}
}
},
"application/*+json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Apicontroller1BackupPolicy"
}
}
}
}
},
"responses": {
"200": {
"description": "Success"
}
}
}
},
"/api/import/controller1/BladeEnclosure": {
"post": {
"tags": [
"controller1"
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Apicontroller1BladeEnclosure"
}
}
},
"text/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Apicontroller1BladeEnclosure"
}
}
},
"application/*+json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Apicontroller1BladeEnclosure"
}
}
}
}
},
"responses": {
"200": {
"description": "Success"
}
}
}
}
},
"components": {
"schemas": {
"Apicontroller1ApplicationClusterPackage": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int32"
},
"name": {
"type": "string",
"nullable": true
},
"code": {
"type": "string",
"nullable": true
},
"description": {
"type": "string",
"nullable": true
},
"startDate": {
"type": "string",
"format": "date-time",
"nullable": true
},
"endDate": {
"type": "string",
"format": "date-time",
"nullable": true
},
"status": {
"type": "string",
"nullable": true
},
"owner": {
"type": "string",
"nullable": true
},
"preferredNode": {
"type": "string",
"nullable": true
},
"applicationImpact": {
"type": "integer",
"format": "int32"
},
"supplier": {
"type": "string",
"nullable": true
},
"bil": {
"type": "string",
"nullable": true
},
"supportHours": {
"type": "string",
"nullable": true
},
"externalreference": {
"type": "string",
"nullable": true
},
"importStatus": {
"type": "string",
"nullable": true
},
"globalSession": {
"type": "string",
"nullable": true
},
"rfsReference": {
"type": "string",
"nullable": true
},
"logTime": {
"type": "string",
"format": "date-time"
}
},
"additionalProperties": false
},
"Apicontroller1BackupPolicy": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"description": "Auto generated : do not fill out",
"format": "int32"
},
"name": {
"type": "string",
"nullable": true
},
"code": {
"type": "string",
"nullable": true
},
"description": {
"type": "string",
"nullable": true
},
"startDate": {
"type": "string",
"format": "date-time",
"nullable": true
},
"endDate": {
"type": "string",
"format": "date-time",
"nullable": true
},
"status": {
"type": "string",
"description": "values (in production,archived)",
"nullable": true
},
"owner": {
"type": "string",
"nullable": true
},
"applicationImpact": {
"type": "integer",
"format": "int32"
},
"backupPolicyType": {
"type": "string",
"nullable": true
},
"retention": {
"type": "string",
"nullable": true
},
"externalreference": {
"type": "string",
"description": "3th part CI unique identifier",
"nullable": true
},
"importStatus": {
"type": "string",
"nullable": true
},
"globalSession": {
"type": "string",
"description": "Unique identifier for the calling session",
"nullable": true
},
"rfsReference": {
"type": "string",
"nullable": true
},
"logTime": {
"type": "string",
"description": "Auto generated : do not fill out",
"format": "date-time"
}
},
"additionalProperties": false
},
"Apicontroller1BladeEnclosure": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int32"
},
"name": {
"type": "string",
"nullable": true
},
"code": {
"type": "string",
"nullable": true
},
"description": {
"type": "string",
"nullable": true
},
"startDate": {
"type": "string",
"format": "date-time",
"nullable": true
},
"endDate": {
"type": "string",
"format": "date-time",
"nullable": true
},
"status": {
"type": "string",
"description": "Values (In Production,In Repair/Maintenance,Ordered,Out of Production,\r\nPre-Production,\r\nRemoved,\r\nReserved,\r\nScrapped)",
"nullable": true
},
"owner": {
"type": "string",
"nullable": true
},
"applicationImpact": {
"type": "integer",
"format": "int32"
},
"endOfSupport": {
"type": "string",
"format": "date-time",
"nullable": true
},
"model": {
"type": "string",
"nullable": true
},
"productNumber": {
"type": "string",
"nullable": true
},
"serialNumber": {
"type": "string",
"nullable": true
},
"supplier": {
"type": "string",
"nullable": true
},
"primaryIpaddress": {
"type": "string",
"nullable": true
},
"bil": {
"type": "string",
"nullable": true
},
"supportHours": {
"type": "string",
"nullable": true
},
"externalreference": {
"type": "string",
"nullable": true
},
"importStatus": {
"type": "string",
"nullable": true
},
"globalSession": {
"type": "string",
"nullable": true
},
"rfsReference": {
"type": "string",
"nullable": true
},
"logTime": {
"type": "string",
"format": "date-time"
}
},
"additionalProperties": false
}
}
}
}
from autorest.powershell.
Related Issues (20)
- In V4 the generated extended command is missing parameters
- Move some generated files from root folder to subfolder HOT 1
- [Feature] Validate directives
- Need a way to sleep in the test script HOT 3
- Build-module will overwrite updated example files when renaming.
- Media content-type header is not being generated for input file types. HOT 3
- [Autorest] optional parameter is set to be required in VMware swagger
- Module will be created and inited many times in one session when `-Parallel` is used. HOT 2
- Monitor Metric Get-AzMetricsBatch encode name parameter twice HOT 1
- [Feature] Generate cmdlet to Add/remove elements for a complex array parameter HOT 1
- [Feature] Generate parameter description with possbile values. HOT 2
- Parameter Capability is an array, enum is the items, value should be generated HOT 2
- Dockerfile needs updating HOT 1
- Test-Module: Import Az.Accounts should not be required HOT 3
- Infinite recursion issue when traversing object properties HOT 2
- Remove use of write-information as it pollutes information stream when loading Az-modules
- format url is invalid type when generating with autorest 3.x HOT 2
- Add support for 'operation-location' for dataplane LRO(Long Running Operations) HOT 2
- Module fails to build due to duplicate definitions HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autorest.powershell.