mapEndpointsById() — supabase Function Reference
Architecture documentation for the mapEndpointsById() function in Reference.generated.script.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 5c5e362d_826d_df1a_72f8_d427ad32c0bc["mapEndpointsById()"] eff95f24_f3b8_b5c3_e4a7_5dfa320c3c6f["writeApiReferenceSections()"] eff95f24_f3b8_b5c3_e4a7_5dfa320c3c6f -->|calls| 5c5e362d_826d_df1a_72f8_d427ad32c0bc f9f2b457_8e93_ce1a_7a61_59c0fd35d747["writeSelfHostingReferenceSections()"] f9f2b457_8e93_ce1a_7a61_59c0fd35d747 -->|calls| 5c5e362d_826d_df1a_72f8_d427ad32c0bc style 5c5e362d_826d_df1a_72f8_d427ad32c0bc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/docs/features/docs/Reference.generated.script.ts lines 74–93
function mapEndpointsById(
spec: any,
getId = (details: any) => details.operationId
): Map<string, IApiEndPoint> {
const endpoints = spec.paths
const endpointsById = new Map<string, IApiEndPoint>()
Object.entries(endpoints as Record<string, any>).forEach(([path, methods]) => {
Object.entries(methods as Record<string, any>).forEach(([method, details]) => {
endpointsById.set(getId(details), {
id: getId(details),
path,
method: method as 'get' | 'post' | 'put' | 'delete' | 'patch',
...details,
})
})
})
return endpointsById
}
Domain
Subdomains
Source
Frequently Asked Questions
What does mapEndpointsById() do?
mapEndpointsById() is a function in the supabase codebase.
What calls mapEndpointsById()?
mapEndpointsById() is called by 2 function(s): writeApiReferenceSections, writeSelfHostingReferenceSections.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free