Javascript – In a RESTful API how should you handle optional query parameters
I'm currently dealing with a .net API that aims to be RESTful. One of the endpoints I'm working with has two optional query parameters. The following usage is allowed: /endpoint/search /endpoint/search?from=01/02/23 /endpoint/search?from=01/02/23&to=01/03/23 This endpoint however returns a 400 when you…