Query strings

A query string is data that's sent as part of the URL that is not suitable for use as part of the hierarchical structure of the URL (where / separates between different levels of the hierarchy). Typically, the query string is the part that comes after the question mark in the URL and uses the & sign to separate between the different values. For example, the GiveNTake application allows the user to search for products in a specific location, and to constraint the search only to products that have an image attached to them. This API is exposed through a URL in the following format:

/api/products/searchcategory/category/subcategory?location=XXX&imageonly=true

ASP.NET Core automatically matches any value in the query string to a ...

Get Hands-On Full-Stack Web Development with ASP.NET Core now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.