C
C#2y ago
.tree

✅ Consuming REST API in MAUI

I'm pretty new to MAUI and I want to make an app that gets some data from a REST API and presents it, pretty simple. However I am unsure how this works in MAUI. Are there good tutorials or examples?
1 Reply
sibber
sibber2y ago
the gui framework isnt relevant use HttpClient id create a service for the api too that makes the request, deserializes, and returns the data as a c# object
Want results from more Discord servers?
Add your server
More Posts
Help refactor please? I might have missed something big here [Answered]is there maybe a better way of writing this? ```cs foreach (Experience experience in User.Profile.Ex❔ Models data is not showing in view with help of ViewDataI have created model and passed its data with ViewData like this- Controller Code--> IEnumerable<Se✅ Software architecture for front-end translationsI've an .NET 7 Blazor WebAssembly Hosted web application meant to be deployed in a industrial enviro❔ Help with designing a functional container objectHi, I could use some input for a functional container/result object I'm working on. I want it (the s❔ Enumerable.Current is not null in debug mode but assigns null to variableI know I'm not exactly following the best practices with the reader but this code should work none tJSON Array to build a complex object isn't letting me create multiple different properties inside itHi! I'm having an issue serializing a JSON object to create a Microsoft Band WebTile. Here is my cod❔ Proper mocking for Unit Testing (NUnit)```csharp public class TargetServiceSetEndDateAsTwoMonthsOut : PreProcessorAction<CreateTargetServic❔ My code repeats my menu everytime a invalid character is added - i want to display a error messageMy menu works but I want to display a error message if the user enters a invalid character. I was t❔ problem datetime```c EndSeason = 25/11/2022 05:45, ``` ```c public DateTime EndSeason { get; set; } ```❔ Url.ActionLink is generating full URLs, not relative onesI am using `@Url.ActionLink("ActionName", "ControllerName", new { Route = "values" })` in my .cshtml