mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-06 09:55:18 +00:00
Fix Dev tools generate info script
- Removed head and patch methods
This commit is contained in:
parent
7921941559
commit
2609b45e81
@ -82,7 +82,7 @@ const main = async () => {
|
|||||||
accum[httpMethodUppercase] = [...accum[httpMethodUppercase], formatEndpoint({...endpointData[httpMethod], path: endpointPath, method: httpMethodUppercase}, jsonData, documentationData)]
|
accum[httpMethodUppercase] = [...accum[httpMethodUppercase], formatEndpoint({...endpointData[httpMethod], path: endpointPath, method: httpMethodUppercase}, jsonData, documentationData)]
|
||||||
});
|
});
|
||||||
return accum;
|
return accum;
|
||||||
}, ['GET', 'PUT', 'POST', 'DELETE', 'HEAD', 'PATCH'].reduce((accum, httpMethod) => ({...accum, [httpMethod]: []}), {}));
|
}, ['GET', 'PUT', 'POST', 'DELETE'].reduce((accum, httpMethod) => ({...accum, [httpMethod]: []}), {}));
|
||||||
// Map extracted endpoints to <{ method: ('GET' | 'PUT' | 'POST' | 'DELETE' | 'HEAD'), endpoints: endpoint[]}>[]
|
// Map extracted endpoints to <{ method: ('GET' | 'PUT' | 'POST' | 'DELETE' | 'HEAD'), endpoints: endpoint[]}>[]
|
||||||
const resultEndpoints = Object.keys(extractedEndpoints).map(httpMethod => ({method: httpMethod, endpoints: extractedEndpoints[httpMethod].sort(sortAlphabeticalByNameProp)}));
|
const resultEndpoints = Object.keys(extractedEndpoints).map(httpMethod => ({method: httpMethod, endpoints: extractedEndpoints[httpMethod].sort(sortAlphabeticalByNameProp)}));
|
||||||
// Create the directory, if this doesn't exist, where the output file will be created
|
// Create the directory, if this doesn't exist, where the output file will be created
|
||||||
|
@ -10001,13 +10001,5 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
|
||||||
{
|
|
||||||
"method": "HEAD",
|
|
||||||
"endpoints": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"method": "PATCH",
|
|
||||||
"endpoints": []
|
|
||||||
}
|
}
|
||||||
]
|
]
|
Loading…
Reference in New Issue
Block a user