(version)
| 11 | const schemasPath = 'src/rest/data' |
| 12 | |
| 13 | async function getFlatListOfOperations(version) { |
| 14 | const flatList = [] |
| 15 | |
| 16 | if (isApiVersioned(version)) { |
| 17 | const apiVersions = allVersions[version].apiVersions |
| 18 | |
| 19 | for (const apiVersion of apiVersions) { |
| 20 | const operations = await getRest(version, apiVersion) |
| 21 | flatList.push(...createCategoryList(operations)) |
| 22 | } |
| 23 | } else { |
| 24 | const operations = await getRest(version) |
| 25 | flatList.push(...createCategoryList(operations)) |
| 26 | } |
| 27 | |
| 28 | return flatList |
| 29 | } |
| 30 | |
| 31 | function createCategoryList(operations) { |
| 32 | const catSubCatList = [] |
no test coverage detected