We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
URL: /api/inventory/access-switches/?$select=description,uuid odata_select = request.GET.get('$select') queryset = apply_odata_query(queryset, odata_select)
odata_select = request.GET.get('$select')
queryset = apply_odata_query(queryset, odata_select)
Raises an issue: odata_query.exceptions.ParsingException: Failed to parse at: Token(type=':', value=':', lineno=1, index=4)"
But same works for $filter as below URL: /api/inventory/access-switches/?$filter=(contains(tolower(description), 'httrf'))
odata_filter = request.GET.get('$filter') queryset = apply_odata_query(queryset, odata_filter)
odata_filter = request.GET.get('$filter')
queryset = apply_odata_query(queryset, odata_filter)
The text was updated successfully, but these errors were encountered:
Hi @TO-TMuzaffarov, unfortunately, $select is not yet supported at the moment.
$select
I could definitely see this as the next feature to add, and I suppose it wouldn't be too difficult. I'll have a crack at this soon and report back.
Thanks for your feedback!
Sorry, something went wrong.
@OliverHofkens so: odata-query is in fact a parser just for $filter, isn't it?
$filter
At the moment it is, yes. But I'm definitely planning on expanding support to the full OData spec in the future!
OliverHofkens
No branches or pull requests
URL: /api/inventory/access-switches/?$select=description,uuid
odata_select = request.GET.get('$select')
queryset = apply_odata_query(queryset, odata_select)
Raises an issue:
odata_query.exceptions.ParsingException: Failed to parse at: Token(type=':', value=':', lineno=1, index=4)"
But same works for $filter as below
URL: /api/inventory/access-switches/?$filter=(contains(tolower(description), 'httrf'))
odata_filter = request.GET.get('$filter')
queryset = apply_odata_query(queryset, odata_filter)
The text was updated successfully, but these errors were encountered: