markjprice / apps-services-net8

Repository for the Packt Publishing book titled "Apps and Services with .NET 8" by Mark J. Price
95 stars 47 forks source link

Chapter 8 Online section Spaces in http file cause error. #8

Closed Pip1987 closed 4 months ago

Pip1987 commented 4 months ago

the http file for visual studio 2022 does not accept spaces. Lines like GET {{base_address}}products/?$filter=startswith(ProductName,'Ch') or (UnitPrice gt 50) must be written as GET {{base_address}}products/?$filter=startswith(ProductName,'Ch')%20or%20(UnitPrice%20gt%2050)

Pip1987 commented 4 months ago

Believe this is a visual studio issue, as reading through https://learn.microsoft.com/en-us/aspnet/core/test/http-files?view=aspnetcore-8.0#unsupported-syntax.