Skip to content

Unable to pass query string parameters to .NET Core Web API running in Lambda #1166

Discussion options

You must be logged in to vote

@sudarshankonge Somehow I'm unable to reproduce the issue. Here are the brief steps used for testing:

  1. Using Visual Studio 2022, created a Serverless WebAPI project that targets .NET 6.0.
  2. Replaced the default generated ValuesController with the following code:
using Microsoft.AspNetCore.Mvc;

namespace LambdaWebAPINet6_Issue1164.Controllers;

[Route("api/[controller]")]
public class ValuesController : ControllerBase
{
    [ProducesResponseType(typeof(TimeSeriesResponse), StatusCodes.Status200OK)]
    [HttpGet("/api/v1/stock-exchange/{stockExchange}/time-series/{stockExchangeSymbol}")]
    public ActionResult<TimeSeriesResponse> GetTimeSeries(
        [FromRoute] string stockExchange,

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ashishdhingra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
guidance Question that needs advice or information. response-requested Waiting on additional info and feedback. Will move to close soon in 7 days. module/aspnetcore-support
2 participants
Converted from issue

This discussion was converted from issue #1164 on May 02, 2022 16:12.