Operations
FUNCTION
@skmtc/core 0.63.4toEndpointName
Generates endpoint name in the camelCase{method}Api{path} format.
Signature
import { toEndpointName } from '@skmtc/core'
toEndpointName(operation: OasOperation): stringParameters
The OpenAPI operation
Example
const op = new OasOperation({ method: 'post', path: '/users/{id}/profile' });
console.log(toEndpointName(op)); // 'createApiUsersIdProfile'Returns
string
Camel-cased endpoint name