Add Query String Support #2
Reference in New Issue
Block a user
Delete Branch "query_string_support"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Allow clients to send every parameter (including
X-API-Key) as query string.Makes it possible for clients whch can not send headers or bodys to interact with the API.
Implementation
Check for API key in params if not present in header. No further changes needed as RoR already includes query strings in
params.Note: Query string params will take precedence over body params. This change does also allow for
X-API-Keyto be present in body instead of header or query string.