2020-12-05

2020-12-05 Saturday - Variations in API Filter Syntax

Variations in API Filter Syntax

Doing a bit of research today on variations in how different API implementations have chosen to support filter syntax. This blog post is a placeholder for organizing additional examples that I am working collect and organize.

1.0 References

  1. https://en.wikipedia.org/wiki/Query_string 
    1. " Various ad hoc limitations on request-line length are found in practice."
    2. "The common workaround for these problems is to use POST instead of GET and store the parameters in the request body."
  2. RFC 3986 - Uniform Resource Identifier (URI): Generic Syntax
  3. https://www.programmableweb.com/category/all/apis 

2.0 Query Syntax Examples

2.1 Elastic Search Query Syntax:

2.2 Github.com 

  1. https://docs.github.com/en/free-pro-team@latest/rest/reference/search  
    • NOTE: Syntax, request & response examples shows on this page
    • The Search API does not support queries that:
      • "are longer than 256 characters (not including operators or qualifiers)."
      • "have more than five AND, OR, or NOT operators."
    • "GitHub Search API provides up to 1,000 results for each search."
    • Note: Uses the page metaphor: "Results per page (max 100)
    • TO-DO: verify if the API still uses the "per_page" parameter
  2. https://docs.github.com/en/free-pro-team@latest/github/searching-for-information-on-github/understanding-the-search-syntax
  3. https://docs.github.com/en/free-pro-team@latest/github/searching-for-information-on-github/searching-on-github

3.0 Review Backlog: Other API collections to examine:

  1. Wikipedia
  2. Twitter
  3. YouTube 
  4. Box
  5. DropBox
  6. LinkedIn
  7. Yelp 
  8. Indeed
  9. Fadcebook
  10. Twilio 
  11. Etsy
  12. PayPal
  13. Ebay
  14. Concur
  15. Uber
  16. SoundCloud
  17. Rotten Tomatoes 
  18. Reddit
  19. Thomson Reuters
  20. Basecamp
  21. Kiva
  22. Fitbit
  23. Vimeo
  24. Stripe
  25. Salesforce
  26. Coupa.com
  27. SAP
  28. Google
  29. AWS
  30. Azure

4.0 Additional Suggested Reading

  1. https://apievangelist.com/
  2. http://apistylebook.com/  
  3. https://www.moesif.com/blog/technical/api-design/REST-API-Design-Filtering-Sorting-and-Pagination/ 
  4. https://www.progress.com/blogs/rest-api-industry-debate-odata-vs-graphql-vs-ords
 

5.0 Suggested Books


 


No comments:

Copyright

© 2001-2021 International Technology Ventures, Inc., All Rights Reserved.