A Microsoft framework for building cross-platform mobile apps using .NET and C# with native performance and user interfaces.
Hello,
Welcome to our Microsoft Q&A platform!
Yes, you can use HttpClient to consume REST Services.
Representational State Transfer (REST) is a Service, which is based on REST architecture to build the Services on the Web. REST requests are made in HTTP, using the same HTTP verbs that the Web Browsers use to retrieve the Web pages and send the data to the Servers. The verbs are given below.
- GET - It is used to retrieve the data from the Web Service.
- POST - It is used to create a new data item in the Web Service.
- PUT - It is used to update a data item in the Web Service.
- PATCH - It is used to update a data item in the Web Service, describing a set of instructions on how the item should be modified.
- DELETE - It is used to delete a data item in the Web Service.
Web Service APIs that adhere to REST are called RESTful APIs and are defined using
- A base URL.
- HTTP methods, such as GET, POST, PUT, PATCH or DELETE.
- A media type for the data, such as JavaScript Object Notation (JSON).
The simplicity of REST has helped to make it the primary method for accessing Web services in the mobile Applications.
Here is a good article about this , you can check it here: Xamarin Android - Consuming REST Services With HttpClient .
And there is sample included in above link, you can check it.
Best Regards,
Jessie Zhang
---
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.