Resolve an API endpoint (path + method) to its corresponding action for authorization.
Authorization Middleware: This endpoint is primarily used by authorization middleware to determine which action should be checked for a given API request.
Path Matching: Supports exact matches and pattern matching with path parameters
(e.g., /api/v1/users/{user_id} matches /api/v1/users/123).
Method Matching: HTTP method must match exactly (case-sensitive).
Use Cases:
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The API path to resolve (e.g., '/api/v1/users/123')
The HTTP method
Mapping found and resolved successfully
Response model for mapping resolution (used by authorization middleware).
Unique identifier of the mapping
1
Action name mapped to this endpoint
"user:read"
URL path pattern that matched
"/api/v1/users/{user_id}"
HTTP method
"GET"
Mapping description
"Get user profile information"