Hacker News new | past | comments | ask | show | jobs | submit login

What do other folks here think of how MS handles query params, specifically stuff like 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'



Aren't things like $filter, $orderBy etc. straight out of the OData standard[1].

[1] https://www.odata.org/


It 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.


At first look I think using spaces is a bad idea but maybe it’s ok.


yeah seeing spaces is kinda weird IMO




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: