EndPointBlank. VersionFinder
(end_point_blank_elixir v0.3.1)
Copy Markdown
Detects the API version for an incoming request.
Priority order (same as the Ruby, JS, and Java libraries):
- Custom
config.version_finderfunction Acceptheader (vendor MIME type)X-Api-VersionheaderContent-Typeheader (vendor MIME type)versionquery parameter- Path segment (e.g.
/v1/)
Summary
Functions
Returns the version string for the request, or nil if not detected.