Fix Dev tools generate info script

- Removed head and patch methods
This commit is contained in:
Desvelao 2020-09-29 15:21:41 +02:00
parent 7921941559
commit 2609b45e81
No known key found for this signature in database
GPG Key ID: DC70AEDF0377DBC1
2 changed files with 1 additions and 9 deletions

View File

@ -82,7 +82,7 @@ const main = async () => {
accum[httpMethodUppercase] = [...accum[httpMethodUppercase], formatEndpoint({...endpointData[httpMethod], path: endpointPath, method: httpMethodUppercase}, jsonData, documentationData)]
});
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[]}>[]
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

View File

@ -10001,13 +10001,5 @@
]
}
]
},
{
"method": "HEAD",
"endpoints": []
},
{
"method": "PATCH",
"endpoints": []
}
]