-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom query parameter #3
Comments
According to the JSON:API spec, query parameter names must contain at least one non-lowercase character. (The rules are a bit more complex, but that's the simple version.) For example, |
By the way, in your case, if you use the string value directly, |
Hello, I'll use
Yea I though so, I just tried different ways to test the scenario. |
Hello,
I'm trying to add a custom query parameter for POST method.
Reason/Use-case
I have a multi-tenant api, and the caller has to provide a name of his tenant - so api would know, which part of the database it should use.
Problem
I've found this custom-query-parameters in docs and example here
I've tried
and also
Query.String("spot")
I also tried it in creating
jsonApiContext
to make it "globally" available, by parsingHttpContext
directly.But I get this error every time:
Should I register my custom query parameters somehow first? Is it against json-api specification?
Thanks in advance!
The text was updated successfully, but these errors were encountered: