Ask a Question
How can I make a parameter optional in a microservice endpoint?
about 19 hours ago by Eva Ramirez
How can I make a parameter optional in a microservice endpoint to avoid a 400 "Parameter requires property" error when the optional parameter is not provided? For example, I have an endpoint public async Task DoStuff(long? BeamId, string? OAuthId) and calls without OAuthId (e.g., {"BeamId": 12345}) result in this error.