5 ms·
What do other folks here think of how MS handles query params, specifically stuff like filtering? https://github.com/Microsoft/api-guidelines/blob/master/Guide
by jmuguy 7y ago
What do other folks here think of how MS handles query params, specifically stuff like filtering?
https://github.com/Microsoft/api-guidelines/blob/master/Guidelines.md#97-filtering https://github.com/Microsoft/api-guidelines/blob/master/Guid...
When working with the Graph API for 365 I thought it was really weird how you had to pass some params
GET https://api.contoso.com/v1.0/products?$filter=name eq 'Milk'
- Ididntdothis 7y agoAt first look I think using spaces is a bad idea but maybe it’s ok.
- wnevets 7y agoyeah seeing spaces is kinda weird IMO
- drbw 7y agoAren't things like $filter, $orderBy etc. straight out of the OData standard[1]. [1] https://www.odata.org/ https://www.odata.org/
- brenden2 7y agoIt looks weird when you write it that way, but the ' ' character gets translated into '+' when you encode the URI before making a request. If it was me, I'd prefer to see the '+' encoding than ' ' because it looks strange when it's not a valid URI.
- deleted 7y ago[deleted]