Skip to content

collectionPathFor

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/libs/parser-core/src/openapi/param-source-inference.ts

The collection that lists the values for {param}: everything up to the segment before it. /projects/{projectId}/projects. Composes for nested resources, so /projects/{projectId}/documents/{documentId}/projects/{projectId}/documents.

Signature

ts
function collectionPathFor(path: string, param: string): string | null

Parameters

NameType
pathstring
paramstring

Returns: string | null

Was this page helpful?

Download as PDF