question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature Request] Automatic encoding of $ breaks OData APIs

See original GitHub issue
  • Insomnia Version: v5.6.3
  • Operating System: Linux

Details

Making a request like http://example.com/abc?$expand=my_expansion actually makes a request like http://example.com/abc?%24expand=my_expansion (encoding the $ to a %24).

This can be painful because it means it’s impossible to ever pass any options to any OData API, since they all require a literal $ option prefix: http://docs.oasis-open.org/odata/odata/v4.0/os/part2-url-conventions/odata-v4.0-os-part2-url-conventions.html#system-query-optionsurl5.1.

I’ve now seen from https://github.com/getinsomnia/insomnia/issues/417 that there’s an option to disable this encoding, request by request, but it’s a bit awkward when 100% of my requests need this to be individually turned off, for a major API standard. Lots of other tools have this problem too, annoyingly, but as a useful datapoint Swagger disabled this behaviour, asked for feedback from anybody who does need this encoded, and got zero further responses.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
gschiercommented, Nov 16, 2017

@Atvaark that commit should address your issue ^

0reactions
gschiercommented, Nov 16, 2017

Going to close this in favor of #605

Please move all further discussion there 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why not OData? | Documentation - ServiceStack Docs
Performance will suffer due to dependencies on late binding and encoding/decoding between boundaries within the same service. This is ultimately where many auto...
Read more >
Build formatter extensions in ASP.NET Core OData 8 and ...
In this post, I will create formatter extensions in an OData web service and request/response hooks in an OData client application to generate/ ......
Read more >
SAP SuccessFactors HXM Suite OData API: Reference Guide ...
The OData API feature is enabled for all instances by default, unless you request to manually turn it off. Related Information.
Read more >
OData Batching with ASP.NET Core - YouTube
OData (Open Data Protocol) can be considered an extension to RESTthat that defines an additional set of conventions for building and ...
Read more >
OData Query Options | Mendix Documentation
If the OData query is too long to be sent as a GET request, clients can send the query as a POST request...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found